从dwg转换为pdf [英] convert from dwg to pdf

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

问题描述

如何将DWGautocad文件转换为c#.net中的PDF?



感谢您的帮助。

How can I convert from DWG "autocad file " to PDF in c#.net?

Thanks for any help.

推荐答案

你要问的是一件非常困难的事情。

Autocad以完全不同的格式保存绘图数据,你必须有效地访问绘图数据在内存中绘制然后将其复制到pdf文件。



DWG文件的大小可能是几GB,而等效的PDF,小于1兆。 />


将此作为代码中的元素写入是一项重大任务。

说真的,很多人工作几个月,数千英镑。



我建议你利用第三方应用程序,也许修改为插件。
It is an incredibly difficult thing you are asking.
Autocad holds drawing data in a totally different format from PDF, and you would have to access the drawing data, and effectively draw in memory then copy that to a pdf file.

A DWG file may be several GB in size, and yet the equivalent PDF, less than one meg.

It would be a major undertaking to write this as an element in your code.
Seriously, many man months of work and thousands of pounds.

I would suggest you take advantage of third party apps and maybe modify as plugins.


我必须经常这样做,因为我在AutoCAD中进行设计工作,但许多需要接收我的设计的人没有AutoCAD可用。我发现的最佳解决方案是免费实用程序CutePDF,它可以作为打印机设备安装。当我需要进行转换时,我在AutoCAD中加载绘图,绘制它,然后选择CutePDF作为打印机。弹出一个对话框,询问我想要调用的文件,以及我想要存储它的位置。结果是一个完美的PDF文件。



如果你没有AutoCAD,只想进行独立的文件转换,那就太难看了。有很多免费的转换工具,我找不到任何工作得很好。还有一些商业计划可以做到这一点,但我没有尝试过,因为我的预算不包括太多可能或可能不起作用的玩具。
I have to do this quite often, as I do my design work in AutoCAD, but many of the people who need to receive my designs don't have AutoCAD available. The best solution I've found is a free utility, CutePDF, which installs as a printer device. When I need to make the conversion, I load the drawing in AutoCAD, plot it, and select CutePDF as the printer. That pops up a dialog box to ask what I want to call the file, and where I want to store it. The result is a PDF file that works perfectly.

If you don't have AutoCAD, and just want to make a standalone file conversion, it gets ugly. There are a lot of free conversion tools out there, and none I've found works very well. There are also some commercial programs to do this, but I haven't tried them as my budget doesn't cover too many toys that may, or may not work.


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

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