Solved

How to extract relative position of point in connection to another?

  • 3 November 2017
  • 2 replies
  • 1 view

Badge +1

Hello,

please, I need to solve one spicy problem. I have autocad_insert entity (block reference) composed by insert point and text point (label). Distance between these two point is variable, so I need to extract relative position of text point to block insert point. Is any possibility there to extract difference in X,Y?

Thank You so much!

Lubo

icon

Best answer by erik_jan 3 November 2017, 15:44

View original

2 replies

Userlevel 2
Badge +12

You should be able to do this using the ExpressionEvaluator or any other transformer that has the Arithmetic Editor.

The attribute values for the insertion and text points x and y) should be available if you expose them on the reader feature type.

Same for autocad_text_x_pos and autocad_text_y_pos

Badge +1

Yes, thank You so much! I solved it by non-exploding of block, then I expose X/Y of attribute label and then I used ExpressionEvaluator as You supposed to count difference between X/Y of attribute label and X/Y of insert point.

Thank You for tip!

Lubo

Reply