VBA with AutoCAD LT

VBA with AutoCAD LT

Anonymous
Not applicable
16,332 Views
16 Replies
Message 1 of 17

VBA with AutoCAD LT

Anonymous
Not applicable

Hi alls,

Does AutoCAD LT support VBA?

Is there an API to access and manipulate DXF "externally" from .NET environment (C# or VB)?

 

thanks,

GC

0 Likes
Accepted solutions (1)
16,333 Views
16 Replies
Replies (16)
Message 2 of 17

pendean
Community Legend
Community Legend
Autodesk does not make VBA customization available in LT.
0 Likes
Message 3 of 17

h_s_walker
Mentor
Mentor
As Dean said. HOWEVER you can run a vb exe program in LT by creating a button with the following in it ^C^C_ai_startapp yourprogram.exe But you need to make sure that yourprogram.exe is in the Base AutoCAD directory.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 4 of 17

Anonymous
Not applicable

Thank you Dean and HWalker.

Is there any API and classes for use in this MyProgram.exe?

 

0 Likes
Message 5 of 17

h_s_walker
Mentor
Mentor
Send me via PM your email address and I will email you a VB6 program I wrote with some help, which draws closed polylines (steel shapes) in autocad

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 6 of 17

h_s_walker
Mentor
Mentor
Check your emails. I've sent you my program

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 7 of 17

h_s_walker
Mentor
Mentor
Accepted solution

The other email address you gave me is being rejected. So I'm attaching the zip file here

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 8 of 17

steven-g
Mentor
Mentor

NIce, I'll be trying to figure out how that actually works for the next few months, (how it communicates with LT that is), I thought all external communication was disabled except for scripts.

0 Likes
Message 9 of 17

h_s_walker
Mentor
Mentor
Dynamic Data Exchange (whatever that is)

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 10 of 17

steven-g
Mentor
Mentor

Yup got it, I just drew my first line directly from excel VBA, as I said this will keep me occupied for months now. Smiley Very Happy Thanks

Message 11 of 17

Anonymous
Not applicable
Great !
What class package do you use? DDE? Where do I find it?

Sincerely,


Gady Cohen
Template Project Manager
VoyantHealth(tm)
Gady.Cohen@brainlab.com

Phone: +972 (3) 929-0935

www.voyanthealth.com
www.brainlab.com

[cid:image001.gif@01D004C1.62D6FC00]
0 Likes
Message 12 of 17

h_s_walker
Mentor
Mentor

Have you downloaded the zip file?

 

If you have search it for the text LINK. There are several LINKMODE,  LINKTOPIC and LINKEXECUTE.

 

If you find those and see how I've used them in the program you should be able to work out what to do

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 13 of 17

Anonymous
Not applicable

I want to modify block attributes autocad LT with vba (list of data from excel sheet). It's possible in Autocad (I have programming it and it works) but doesn't work in LT (it doesn´t support LISP, neither VBA) 😞

 

Can you help me?. Thanks.

0 Likes
Message 14 of 17

h_s_walker
Mentor
Mentor

Unfortunately not. BUT I would start by looking at the following link which tells you how to link to data from an external source

 

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoC...

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 15 of 17

Emmsleys
Alumni
Alumni

AutoCAD LT has limitations and this is one of them. 

 

I'd recommend you for you to leave your feedback here: http://www.autodesk.com/company/contact-us/product-feedback



Sarah Emmsley
Technical Support Specialist

0 Likes
Message 16 of 17

Anonymous
Not applicable

can you please share Code for me my mail id Vinay.moogi777@gmail.com


@h_s_walkerwrote:
As Dean said. HOWEVER you can run a vb exe program in LT by creating a button with the following in it ^C^C_ai_startapp yourprogram.exe But you need to make sure that yourprogram.exe is in the Base AutoCAD directory.

 

0 Likes
Message 17 of 17

h_s_walker
Mentor
Mentor

Check my replies on the previous page you will find all the information you need and a file called steel.zip as well

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes