Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can one Macro call another Macro?

Status
Not open for further replies.

conkie

Technical User
Oct 19, 2002
1
BE
Summary: My goal is to create some kind of macro that, based on some (diesel) conditions, calls another macro out of four.

Hi, I often have to print a lot of files that need time consuming changes in plot settings. There are 4 cases, with proper plot settings.

I use Acad 2000 Lt, so i cannot use Autolisp programming. So I wrote 4 scripts that does this 'converting' and printing. On top of this I made 4 Buttons (Custom Toolbar Macro's) that loads these scripts for me and appointed each an Accelerator Key, e.g. [CTRL + TOOLBAR + 3]. This works fine, although it seems that there must be an easier way. At this point I did not go for a Menu Macro because I do not yet see the advantages.

Anyway, now I want to make 1 super Button to work for all four cases. I managed to distinguish between my 4 cases by comparing the first two letters of the filename (based on nested Diesel expressions). Now I want this Toolbar Macro to call one of my 4 previous Toolbar Macro's by their Accelerator Key, but somehow this doesn't work.

Can a Custom Toolbar Macro (CTM) call another CTM? Or do I need another approach like using Menu Macro's instead of Toolbar Macro's? I actually want to declare and call my own functions like one does in C-programming.

Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top