AutoCAD 2013/2014/2015

Reply
Distinguished Contributor
Posts: 211
Registered: ‎11-06-2006
Message 1 of 2 (72 Views)

Adding a buttom to a tool bar that triggers a VB code.

72 Views, 1 Replies
08-13-2012 10:03 AM

Hi:

 

I have a couple of VB pieces of code that set up the standards of my company. What I want to do create a buttom in my Workspace -within a tab created by me with the CUI tools- and trigger my VB code.

 

 

How is possible to create this buttom?

 

Thanks in advance

 

 

 

Rafael

*Pro
Posts: 2,510
Registered: ‎05-13-2003
Message 2 of 2 (55 Views)

Re: Adding a buttom to a tool bar that triggers a VB code.

08-14-2012 01:59 PM in reply to: RafaelMoreno

You'll get better help posting in the customization group.

 

In the meantime, I think the general form of a CUI macro to run VBA is:

 

^C^C^P(command "-vbaload" "MyVB")(command "-vbarun" "MyVB")(command "vbaunload" "MyVB") 

 

(Note that the macro needs one space after the last parenthesis.)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube