Skip to main content
Solved

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

  • Nov 3, 2017 2:33 PM UTC
  • 2 replies
  • 86 views

lazarlubomir
Contributor
Forum|alt.badge.img+11

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
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+26
  • Contributor
  • Best Answer
  • Nov 3, 2017 2:44 PM UTC

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+11
  • Author
  • Contributor
  • Nov 3, 2017 9:04 PM UTC

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