.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running Macro from Ribbon button

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
mnav
1031 Views, 4 Replies

Running Macro from Ribbon button

Hi

I have created a ribbonbar in autocad 2012 using API and  c#.

On ribbon button i am executing a Command method which display a wizard for copying some files.

now i want to run a macro before excuting the ribbon button command methood.

which display a messagebox with yes and no 

if user click yes command method will excutes itself and display wizard for copy files

if user click no command method will not execute and return.

 

this will allow user to use macro for customizing the file copy process.

 

can some body help how i can achive this.

 

thanks a lot.

 

4 REPLIES 4
Message 2 of 5
Ed.Jobe
in reply to: mnav

Here's some info on prompting the user.

Ed

EESignature

Message 3 of 5
mnav
in reply to: mnav

thanks for your reply but i want to run a macro not the editor prompt.  i want to run a macro which decide to continue with command of abort it.

 

any help how to run and macro from ribbon button and abort button command if you dont want to continue.#

 

thanks

 

Message 4 of 5
mnav
in reply to: mnav

Got it..... here is the code if somebody looking for it

 

AcadApplication.RunMacro(@"C:\Test\AutocadVBA\NavTest.dvb!Module1.navTest");

 

thanks

Message 5 of 5
Ed.Jobe
in reply to: mnav

Sorry, I misunderstood what you wanted. Your question sounded like you wanted the menu macro to prompt the user. You didn't ask on how to run a vba macro.

Ed

EESignature

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost