Macro to show list of macros and allow me to choose which one to run next?

Macro to show list of macros and allow me to choose which one to run next?

AndyDHarlow
Enthusiast Enthusiast
871 Views
8 Replies
Message 1 of 9

Macro to show list of macros and allow me to choose which one to run next?

AndyDHarlow
Enthusiast
Enthusiast

Hi I was hoping somebody would help me with a macro question.

I have created individual macros to assign work planes, import & transform vices and create set ups (copying and transforimg vices). I was hoping to create a macro to join them all together, the problem is I have multiple vice import macros and I would like to be presented with a list of macros and be able to choose which one to run next.

Is this possible, and could anyone help me with this?

0 Likes
Accepted solutions (1)
872 Views
8 Replies
Replies (8)
Message 2 of 9

TK.421
Advisor
Advisor

this is the one i use to pick one. you'll have to change the folder path


the numbers never lie
0 Likes
Message 3 of 9

kevin.hammond3WX4X
Advocate
Advocate

You could consider creating yourself a user menu, which is access by right clicking in the whitespace around the project tree.

usermenue.JPG

https://help.autodesk.com/view/PWRM/2023/ENU/?guid=GUID-7F0556A8-484C-4B7D-B073-2B8BE4D564E2

 

0 Likes
Message 4 of 9

AndyDHarlow
Enthusiast
Enthusiast

Hi, Thanks for the assistance but I am struggling to get this to work.

 

I keep getting the error: Call to unknown function in Line 6. I have written the macro path in there but I must be doing something wrong.

 

I don't suppose you could expand a little about where I should add my own paths etc to make this work?

Sorry for asking you to spoon feed me this........

0 Likes
Message 5 of 9

AndyDHarlow
Enthusiast
Enthusiast

Hi Kevin, thanks for you reply, I have them set up in my user menu but i'm looking for it to be a bit more automated.

Message 6 of 9

TK.421
Advisor
Advisor

no worries! i'm still spoon-fed!

 

you can delete that line with the function call, & if there's an INCLUDE line you can delete that too.

 

How I use this is i keep all the macros I want in that pull down menu in a specific folder ('C/dcam/pmill4/macros/for button/'). That way the macro only looks in that specific directory and only lists the ones there. This way If i have a project that I use specific macros i can just copy them into that directory  & delete them when I'm done. Does that make sense?

TK421_0-1678890707343.png

 


the numbers never lie
0 Likes
Message 7 of 9

TK.421
Advisor
Advisor
Accepted solution

TK421_0-1678890859096.png

 


the numbers never lie
0 Likes
Message 8 of 9

AndyDHarlow
Enthusiast
Enthusiast

Perfection!.

Thanks once again for your help my friend!

Untitled.png

Message 9 of 9

TK.421
Advisor
Advisor

great! now throw that macro on a keyboard short cut & you can save some miles on your mousey driving over to the tree all the time!


the numbers never lie