简体   繁体   English

如何从也包含MarkupsCore标记的Forge Viewer中导出.dwg文件?

[英]How can I export a .dwg file from the Forge Viewer that also includes MarkupsCore markups?

I'm working on a javascript application that uses the MarkupsCore extension to create markups on a floor plan in the Autodesk Forge Viewer. 我正在使用javascript应用程序,该应用程序使用MarkupsCore扩展名在Autodesk Forge Viewer中的平面图上创建标记。 I want to export a .dwg file from the viewer, but I also want the file to contain those markups. 我想从查看器中导出.dwg文件,但我也希望该文件包含那些标记。 I basically know how to export the .dwg file, but I don't know how to combine the svg markups with the file before exporting. 我基本上知道如何导出.dwg文件,但是我不知道如何在导出之前将svg标记与文件结合在一起。 Is this even possible? 这有可能吗? If so, how? 如果是这样,怎么办?

The markups as stored/saved as SVG files, which is a XML-based format to describe geometry. 标记作为SVG文件存储/保存,这是一种基于XML的格式,用于描述几何。 And I believe you know that :-) I did a quick search and found a few articles about SVG to DXF conversion, where DXF can be imported and converted into DWG via AutoCAD engine (or Design Automation API ). 我相信您知道:-)我进行了快速搜索,找到了一些有关SVG到DXF转换的文章,可以通过AutoCAD引擎(或Design Automation API )将DXF导入并转换为DWG。

So a route would be: show DWG model, add markups, save as SVG, convert to DXF, convert again to DWG, merge into original DWG. 因此,方法是:显示DWG模型,添加标记,另存为SVG,转换为DXF,再次转换为DWG,合并为原始DWG。 I don't have such a sample nor can guarantee it will work and be accurate, sorry. 很抱歉,我没有这样的样本,也无法保证它会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM