Skip to main content
Question

SVG Writer, how to generate a svg with a 1,1 scale

  • September 10, 2018
  • 4 replies
  • 45 views

Hello,

I am new to FME, so I'm asking just in case someone faced the same problem as I do.

I am trying to convert an autocad DWG file to an SVG file.

I succeeded in generating the SVG by mapping an autocad reader to an SVG writer, but the generated SVG contains a transformation :

<g fill="none" stroke="black" stroke-width="0.885356531023703" transform="translate(0,6886.85) scale(1, -1)">

My svg is consummed by a js componnent which doesn't support scales other than (1,1)

I tried to use a scaler transformer with 1x/-1y factors but it was unsuccessful

Is there any way to fix this ?

4 replies

trentatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • September 13, 2018

Hello @b_lec

One thought that might work for the Scaling factor is to try and use the rotator. Are you able to try that? If that does not work, you can submit a support case and we can take a more in-depth look at this.

 


  • Author
  • September 14, 2018
trentatsafe wrote:

Hello @b_lec

One thought that might work for the Scaling factor is to try and use the rotator. Are you able to try that? If that does not work, you can submit a support case and we can take a more in-depth look at this.

 

@trentarsafe : scale (1,-1) is more a mirror translation than a rotation, so I don't think rotator will do the job

 

 


xiaomengatsafe
Safer
Forum|alt.badge.img+3
b_lec wrote:
@trentarsafe : scale (1,-1) is more a mirror translation than a rotation, so I don't think rotator will do the job

 

 

Hi @b_lec I think we'll need to work with you further on this scenario. Would you mind getting in touch with us directly through a case, and include your workspace and source data? Thank you!

 


  • Author
  • September 17, 2018
xiaomengatsafe wrote:
Hi @b_lec I think we'll need to work with you further on this scenario. Would you mind getting in touch with us directly through a case, and include your workspace and source data? Thank you!

 

@XiaomengAtSafe

 

Just opened a case and here are my workspace / source dwg : acad2svg.zip

 

 


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