
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am new to VBA and AutoCAD, I want to get the coordinates of of yellow points on picture,
only if the lines have their startpoint or endpoint at certain point(red point on the picture).
Program input: red point coordinates
if line(s) are there then:
Program output: yellow points coordinates
pseudocode:
redpoint = 0,0,0 if a line at redpoint{ MyArray = lines that have StartPoint or EndPoint at redpoint for i in MyArray Print ("Line # " + MyArray[i] + " coordinates are " + MyArray[i]StartPoint + " and " + MyArray[i]EndPoint); }
I know Im getting back the red point value again but thats ok; I am doing it
because I wont know if the redpoint is the StartPoint or EndPoint of the Lines.
I don't know if this is possible using vba in autocad, I've been looking at autodesk page but none of the
examples apply on this case, and I don't want to overdoit selecting by layer, bounding box etc,
What could be the simplest way to get my output as I need it to be.
Thank You,
Solved! Go to Solution.