将dwg文件转换为pdf-开发者之家

您所在的位置:网站首页 dwg文件输出为pdf 将dwg文件转换为pdf-开发者之家

将dwg文件转换为pdf-开发者之家

2023-03-26 12:41| 来源: 网络整理| 查看: 265

问题描述

我对AutoCAD还是很陌生,并且被要求编写一个可以将.dwg文件转换为pdf的C#实用程序.我一直在谷歌搜索,还没有找到任何办法.你有什么建议吗?

I'm quite new to AutoCAD and has been asked to write a C# utility that can convert a .dwg file to pdf. I've been googling around and haven't figured out any way yet. Do you have any suggestion?

推荐答案

如果要使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.



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3