Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Programming AutoCAD LT with DDE and VB

Status
Not open for further replies.

PeterCharles

Mechanical
Oct 31, 2002
423
0
0
GB
I'm programming with VB to automate some repetative drawing in AutoCAD using DDE (Dynamic Data Exchange).
I can pass information FROM VB to ACAD LT but does anyone know if it possible to pass information FROM ACAD LT to my VB programme?
Any assistance would be gratefully received!
 
Replies continue below

Recommended for you

If I recall correctly, I don't believe LT support VB.
SORRY..We have about 20 seats of LT and 77 seats of LDD & ADT, about a year ago I tried to use the VB for the LT and it was a no go.
 
You can certainly pass instructions from VB to ACAD LT using DDE. I just wondered if there were any 'undocumented' features that would enable ACAD LT to pass information (in particular positional information) back to VB.
 
Thanks to those who replied.

If its of any use here is my workaround to get positional information :
1, VB starts a conversation with ACAD LT
2, VB sends '_id' command to ACAD LT
3, VB message box appears asking user to click OK when he has selected position
4, user clicks his required position on screen and coordinates are displayed in the command line
5, user highlights coordinates and uses Ctrl+C to copy to clipboard
6, user clicks OK in VCB message box
7, VB gets text from clipboard and extracts coordinate position
8, VB gets on and draws the parametric item in the required place.

It might not be clean and tidy, but it works for my problem.
 
That sounds intriguing. I have never programmed to interface with ACAD LT, other than scripts. Thanks for the info.

"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
 
Status
Not open for further replies.
Back
Top