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 TugboatEng 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 line by its 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 find line located in an area of a drawing and change their properties.

The coordinates are the only attributes that enables me to select the needed line among the other lines in the drawing.



I have recently done a similar work with texts and I succeded.

I used the "Selection.search" command to select all texts and then:

Selection.Item(i).Value.X to access to the coordinates (same for Y).



I'am using a similar approach to select all lines.

But then, I don't find the attributes to access the coordinates of the points of the line:

Selection.Item(i).Value.???



Does anybody know how to manage that ?

Thank you very much for your help.

Anthony
 
.GetOrigin myArrary
or
.GetCoordinates myArray

methods. One of those, I can't remember exactly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top