VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running a vba application

1 REPLY 1
Reply
Message 1 of 2
viktors.zilinskis
274 Views, 1 Reply

Running a vba application

Hello!

Is it possible to assign a vba script to a command, menu item or a command buttton?

BR,
Viktors
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: viktors.zilinskis

Yes. There is probably more than 1 way to do it. We define the
"commandname" in acaddoc.lsp like this:
(defun C:LoadCityRoadTagMacro ()

(VL-VBARUN "d:\\acad\\vba\\City_Road_Tags.dvb!Main")

)

In this case, the command is now "LoadCityRoadTagMacro". In CUI, define
your button and assign the command to it as shown in the attachment.

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

Post to forums  

Autodesk Design & Make Report

”Boost