Skip to main content
Solved

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


lazarlubomir
Contributor
Forum|alt.badge.img+7

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

Best answer by erik_jan

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

View original
Did this help you find an answer to your question?

2 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • November 3, 2017

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


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • November 3, 2017

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


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