Skip to main content
Question

How do I read AutoCAD text rotation which is not numeric?

  • February 26, 2020
  • 2 replies
  • 10 views

wunderkind
Forum|alt.badge.img

I have been provided with a set of dwgs which have autocad text in it and rotation values expressed in degrees e.g. '96d'. I need to read the value as '96', how do I do this? This is the first time I've seen the rotation units expressed this way. When I translate the dwgs the rotation values do not translate into text or numbers. I'm converting the CAD files into Esri fgdb feature classes and have AutoCAD 2019.

 

2 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 26, 2020

You can use the StringReplacer transformer to get rid of the "d" by using a RegEx replacing d$ by nothing.

Then you will end up with the numeric value.

Hope that helps.


becchr
Influencer
Forum|alt.badge.img+25
  • Influencer
  • February 27, 2020

Hi @wunderkind, this is just representational in autocad, depending on the working units in the dwg-file.

When you read the rotation attribute (autocad_rotation) in FME this will be a real number, not text. At least, this is what i see on my dwg's.


Reply


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