Export DWG to svg layer wise

1
Prasenjit
2/14/2014 12:26 PM

Hi
I am Using your cadlib4.0 for cad file conversion.
Dwg/Dxf file have a layer.Is it possible to export all layer separately into svg format?

rammi
2/14/2014 12:57 PM

Do you mean one layer per file or using the SVG group feature to emulate layers?

For the first you can use the LayerExtractorVisitor described here (in one posting near the end there is a download link, so you don't need copy&paste). For the second you have to set the ExportCadLayersAsSvgGroups property of the exporter to true.

- Rammi

Shreenithi
5/8/2019 4:40 PM

I am currently separating grouped layers and converting them to individual SVGs. I'd like to now overlay all these SVGs on top of each other with base layer being the reference. Any inputs from your end will be greatly appreciated for this problem. Thanks!

1