Skip to main content
Solved

Find text at a specific distance


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.

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

4 replies

stalknecht
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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
  • September 4, 2018
stalknecht wrote:

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+19
  • Contributor
  • September 4, 2018
arka wrote:

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
  • September 4, 2018
stalknecht wrote:
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

 

 


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