将dwg文件转换为pdf [英] Convert dwg file to pdf

查看:69
本文介绍了将dwg文件转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对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.

这篇关于将dwg文件转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆