Skip to main content
Question

HorizontalAngleCalculator Transformer Questions

  • April 18, 2024
  • 2 replies
  • 85 views

townest
Contributor
Forum|alt.badge.img+4

Hello,

I have two questions about the HorizontalAngleCalculator transformer. 


1) I simply need the AutoCAD Angle property of a line as shown below.
 

Is HorizontalAngleCalculator the best transformer to use?  Or, better yet...is there a way to expose this property in the reader?

2)  The install message for the HorizontalAngleCalculator says it’s not not created by Safe Software, but rather by “safe-lab” implying Safe Software Lab which is kind of confusing. 

Can someone clarify what this means and whether the transformer is trust worthy?

Thank you,
Tyler

2 replies

jkr_wrk
Influencer
Forum|alt.badge.img+35
  • April 18, 2024

I guess this is not the autocad_rotation property?

You could use the LabelPointReplacer. This replaces the line with a word that is rotated on the line. Then merge this rotation back to the line.

I opened the custom transformer you mentioned and this is the main transformer inside i guess:

It extracts the coordinates of every line and calculates the angle in Rad.

@radToDeg(@atan2(@Value(_Y2)-@Value(_Y1),@Value(_X2)-@Value(_X1)))

 


tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • April 18, 2024


1) I simply need the AutoCAD Angle property of a line as shown below.
 

I think AutoCad will calculate and display the angle if required. This will not be saved in the DWG file.