Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

I need to draw a path in AutoCAD for a robotic

Status
Not open for further replies.

HeavenlySolid

Electrical
Dec 1, 2005
74
I need to draw a path in AutoCAD for a robotic dispensing application. Does anyone know how to get the coordinate data from AutoCAD into Visual Basic 2005?
 
Replies continue below

Recommended for you

Are you talking about a polyline or something like that?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
I’m using AutoCAD 2004 and it has a VBA editor, maybe we can write a small macro to analyze the shape (polyline?) and dump its coordinate data to a text file.

Then I could just read that in from VB.net. Do you have any idea where to go to get a sample VBA macro that does this?
 
Hopefully this is not too late! Once you path is drawn out do a listing (LI command) but make sure the UCS is in a position whereby the X and Y values are useful to you. Invoke F2 key and X & Y values will be presented to you. Highlight for Copy to clipboard and Paste into you spreadheet. Since there will be extraneous info, you will have to modify your spreasheet so that only X and Y's will show up. Note Copy to and Paste from will allow only a certain amount of info, therefore, you may have to repeat copy and Paste several times
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor