Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to find text using coordinates in drawing

Status
Not open for further replies.

AFR_TAC

Aerospace
Joined
Jan 16, 2018
Messages
3
Location
BE
Hi everyone,

I'm trying to write a macro (VBA) to extract some texts from a drawing view, save it into variables and then use it in another drawing.

The coordinates (X and Y) are the only text attributes that enables me to select the needed text among the other texts in the drawing.

I am not familiar with the "search" command but is there a way to find a text by its coordinates? For example, I need to select a text located between x = 100 and x = 120, and y = 20 and y = 30.

Thank you very much for your help.

Anthony
 
Hi,

Thanks for this very interesting link.
But I could not find a way to select what is inside this rectangle.

I finally found a way to solve my issue.
First, select all texts in the view.
Then access to the coordinates (x and y separately) thanks to "selection.item(i).value".

Best Regards,

Anthony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top