Skip to main content
Question

ACAD to SVG

  • June 7, 2023
  • 2 replies
  • 126 views

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+23
  • Safer
  • 720 replies
  • June 12, 2023

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+23
  • Safer
  • 720 replies
  • June 13, 2023

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.