Research on methods for converting DWG format to SVG format
In response to the challenge of integrating DWG format files directly into web applications, a method is proposed to extract 2D graphic elements and framework elements from DWG files and convert them into SVG format. The method involves using the ObjectARX toolkit to traverse the file's graphic elements and framework hierarchy, thereby forming an object structure tree. Subsequently, the characteristics of objects with different data types are analyzed to determine their original drawing methods. Correspondences between objects in CAD and elements in SVG are established, allowing for the transformation of CAD objects' original drawing methods into suitable drawing methods for corresponding SVG objects. The resulting graphics are redrawn using SVG syntax. This method is implemented as an AutoCAD plugin, ensuring control over sensitive information and mitigating the potential risks of data leakage associated with the use of third-party conversion tools.
Authors
- E.L. Li
- Yi Zheng (ORCID: https://orcid.org/0000-0001-5141-0729)
- Lifeng Liu (ORCID: https://orcid.org/0000-0002-2384-6506)
- Yu Pu (ORCID: https://orcid.org/0000-0003-1743-3278)
- Xiaodong Meng
Institutions
- PowerChina (China) (CN)
- Clean Energy (United States) (US)
Publication Details
- Published
- 2025-06-30
- DOI
- https://doi.org/10.1117/12.3066749
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00