Add/run a script file to the ribbon

Add/run a script file to the ribbon

Anonymous
Not applicable
1,077 Views
1 Reply
Message 1 of 2

Add/run a script file to the ribbon

Anonymous
Not applicable

I am trying to add a button to a custom ribbon that will run a script file when selected. the script file is called "MORGAN_OLD-TO-NEW_LAYER_TRANSFER.SCR" and I just can't seem to get the syntax for the macro command entry in the CUI entry for this button. I've tried different permutations fo the following: ^C^C_SCRIPT c:\MORGAN\MCCO_AUTOCAD_2019\MACROS\MCCO-PT LAYER TRANSFER PACKAGE\MORGAN_OLD-TO-NEW_LAYER_TRANSFER.SCR with little to no success. I have 2 questions:

 

1. is it even possible to launce a script from a ribbon button

2. what would be the syntax to run this command without user interaction (except pushing the button)?

 

I was going to try and record a macro of the manual commands and launce this from the button but unfortunately our corporate IT has locked out the action recorder.

0 Likes
1,078 Views
1 Reply
Reply (1)
Message 2 of 2

Moshe-A
Mentor
Mentor

@Anonymous  hi,

 

a backslash '\' character in cuix file means pause (your macro is working but it waits for your input at the first '\')

replace every backslash with slash '/'  Smiley LOL

 

moshe

 

0 Likes