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

Metacommand on selection of objects

veldew
Super Contributor

Hello,

 

I would like to know if it's possible and how to make a r-clik menu item (metacommand) on multiple selected objects.

Kind of like the "copy, delete, add to favorites,.."

And if possible, how i can find the selected objects collection to process.

 

 

Thanks for your explanation !

 

Wim VdV

 

3 Replies

Got it working, however, it does not work in the left pane, ex on the libraries list.

Any way of doing that also ?

 

Thanks !

 

kr,

Wim VdV

Hi,

 

I tried your configuration, but it only shows my menu command when 1 object(library) is selected.

Any other config i need to do ?

 

kr,

Wim VdV

imrankhatyan
Trusted Contributor

 

Add the following in parameterization of Menu Command

 

[MenuItem]
CommandComponent = [MACRO]
Category = Action
ShowOnObject = 0
ShowOnSelection = 1
ShowOnCollection = 1

 

Use Invoke on Collection method in the macro

 

Sub InvokeOnCollection(mgcolObjects)

 

end sub