Skip to main content
Question

ACAD to SVG


fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hello. I have a question please. I have a DWG resource that I need to transform to SVG. I managed to export the geometry, but I don't know how to bind the styles - line weight, transparency, etc. Can someone please advise? Thank you

2 replies

kailinatsafe
Safer
Forum|alt.badge.img+21

Hello @fmesafe.podpora​, I wonder if you can map the autocad format attributes (that store styling information) to the appropriate svg format attributes? For example, if we map autocad_color or fme_color to svg_color in an AttributeManager, does the output recieve the correct styling? Otherwise, I notice in the documetation the template file can store cascading style sheets (mind you this wouldn't directly come from the CAD). Happy to help, Kailin.


kailinatsafe
Safer
Forum|alt.badge.img+21
kailinatsafe wrote:

Hello @fmesafe.podpora​, I wonder if you can map the autocad format attributes (that store styling information) to the appropriate svg format attributes? For example, if we map autocad_color or fme_color to svg_color in an AttributeManager, does the output recieve the correct styling? Otherwise, I notice in the documetation the template file can store cascading style sheets (mind you this wouldn't directly come from the CAD). Happy to help, Kailin.

Hello again @fmesafe.podpora​, I've been thinking more about your post! Out of curiousity, what is the application are you looking to use SVG in? Alternatively, what is the goal with the SVG output or format? Depending on your use case, there may be other formats we can consider writing too! Best, Kailin.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings