Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA with AutoCAD LT

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
gady.cohen
14347 Views, 16 Replies

VBA with AutoCAD LT

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

16 REPLIES 16
Message 2 of 17
pendean
in reply to: gady.cohen

Autodesk does not make VBA customization available in LT.
Message 3 of 17
hwalker
in reply to: gady.cohen

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
gady.cohen
in reply to: hwalker

Thank you Dean and HWalker.

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

 

Message 5 of 17
hwalker
in reply to: gady.cohen

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

Message 6 of 17
hwalker
in reply to: gady.cohen

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

Message 7 of 17
hwalker
in reply to: gady.cohen

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
in reply to: hwalker

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.

Message 9 of 17
hwalker
in reply to: steven-g

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

Message 10 of 17
steven-g
in reply to: hwalker

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
gady.cohen
in reply to: hwalker

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]
Message 12 of 17
hwalker
in reply to: gady.cohen

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

Message 13 of 17
rfilgueiras09
in reply to: hwalker

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.

Message 14 of 17
hwalker
in reply to: rfilgueiras09

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
in reply to: rfilgueiras09

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

Message 16 of 17
vinay.moogi777
in reply to: hwalker

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


@hwalkerwrote:
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.

 

Message 17 of 17
hwalker
in reply to: vinay.moogi777

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost