且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将dwg文件转换为pdf

更新时间:2023-11-11 22:39:10

如果要使AutoCAD自动化,只需使用 DWG到PDF.pc3 打印机发送一个命令以绘制适当的布局即可.如果您使用的是COM,则需要的是 SendStringToExecute() SendCommand().

If you are automating AutoCAD then just simply send a command to plot the appropriate layout using the DWG to PDF.pc3 printer. You're looking for SendStringToExecute() or SendCommand() if you are using COM.

对于您而言,C#实在是太过分了.请参见AutoCAD Publish 命令.

C# is overkill for this, even if you are batch-plotting thee are commands built into AutoCAD for this. See the AutoCAD Publish command.

根据下面的评论进行编辑.您应该查看 https://developer.autodesk.com/api/autocadio/-AutoCAD作为Web服务.

Edit in response to comment below. You should look at https://developer.autodesk.com/api/autocadio/ - it's AutoCAD as a web service.