Skip to main content
Solved

Find text at a specific distance

  • August 30, 2018
  • 4 replies
  • 20 views

Forum|alt.badge.img

Hi all,

In autocad, I have a file containing information I would like to merge.

Using the picture below will help to figure out the situation :

I have a block and texts. I want to add the text string "(1.00) Z=190.98" to a new attribute of my block.

Offsets between text insertion's point and block insertion's point are always the same offset x= 0.14 offset y = -1.25.

Then the next step is to compute the value. Ideally, the attribute must have the calculated value 191.26-1.40= 189.86.

 

Any ideas ?

Thanks

Arka

Best answer by stalknecht

Use the coordinates of the block and use a vertexcreator (replace with point) to create the point with the offset. Use a PointOnPointOverlayer to identify the desired point. For the last part split the text of the value and use the arithmetic calculator to get the calculated value.

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.

4 replies

stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • Best Answer
  • August 30, 2018

Use the coordinates of the block and use a vertexcreator (replace with point) to create the point with the offset. Use a PointOnPointOverlayer to identify the desired point. For the last part split the text of the value and use the arithmetic calculator to get the calculated value.


Forum|alt.badge.img
  • Author
  • 15 replies
  • September 4, 2018

Use the coordinates of the block and use a vertexcreator (replace with point) to create the point with the offset. Use a PointOnPointOverlayer to identify the desired point. For the last part split the text of the value and use the arithmetic calculator to get the calculated value.

Hi @stalknecht,

Thank you for your answer, it works !

Now I have a problem to write the "new value" as attribute of the block.

What is the best way to fill in an attribute info ?


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • September 4, 2018

Hi @stalknecht,

Thank you for your answer, it works !

Now I have a problem to write the "new value" as attribute of the block.

What is the best way to fill in an attribute info ?

Please check the following link and examples: https://knowledge.safe.com/articles/22968/getting-started-with-autocad.html

 

 


Forum|alt.badge.img
  • Author
  • 15 replies
  • September 4, 2018
Please check the following link and examples: https://knowledge.safe.com/articles/22968/getting-started-with-autocad.html

 

 

My problem is solved now (I was wrong in a transformer before the "writer").

 

Nevertheless, thank you