Skip to main content
Solved

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

  • November 3, 2017
  • 2 replies
  • 21 views

lazarlubomir
Contributor
Forum|alt.badge.img+10

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • 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+10
  • Author
  • Contributor
  • 165 replies
  • 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