且构网

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

[c#]将.dwg(autocad)转换为g代码的代码

更新时间:2023-11-11 22:26:16

原则上没有转换。第一个文件是AutoCAD或其他CAD的输出,即CAD文件。第二个是CAM文件,描述了技术过程。我是否甚至必须解释为什么不能仅仅因为缺乏信息而被转换为第二个?



AutoCAD文件本质上就是技术画画。在某种程度上,它甚至不是一个真正的CAD文件,它只是显示技术图纸线条所在的文件。 CAM文件基本上显示了仪器如何以什么顺序移动,以及制造过程中每个步骤的速度。这是很多额外的信息。



当然,有大量的软件可以帮助创建g代码并可能导入AutoCAD文件。您可以执行搜索并找出您需要的内容。



-SA
There is no "conversion" in principle. First file is the output of AutoCAD or other CAD, a CAD file. The second one is the CAM file, describing technological process. Do I even have to explain why one cannot be just "converted" into the second, because of the lack of information?

AutoCAD file is, essentially, just the technical drawing. In a way, it isn't even a "real" CAD file, it's just the file showing where the lines of the technical drawing are. The CAM file essentially shows how the instrument moves, in what sequence, which what speed on every step of the manufacturing process. This is a lot of additional information.

Of course, there is a good amount of software assisting creation of g-code and possibly importing AutoCAD files. You can perform the search and find out what do you need.

—SA