Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Jan 16, 2018
3
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
 
Replies continue below

Recommended for you

.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