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 JStephen 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
Joined
Dec 1, 2005
Messages
74
Location
PR
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?
 
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

Back
Top