Question

HorizontalAngleCalculator Transformer Questions

  • 18 April 2024
  • 2 replies
  • 35 views

Badge +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

Userlevel 4
Badge +18

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)))

 

Userlevel 2
Badge +12


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.

Reply