Arguments in Plugin Menu

9 views
Skip to first unread message

Martin

unread,
Jun 15, 2012, 8:33:41 AM6/15/12
to soft...@listproc.autodesk.com
Hi, I'm writing an Plugin and I have my main Command with 1 argument.

I would like to add two Menu Items with these two arguments but I have no idea how to do it.

I want to do something like the Extract Polygons (keep) and Extract Polygons (delete).
Both options trigger the same ExtractFromComponents command with 2 different arguments.

So far I created 2 RegisterMenu, but the oMenu.AddCommandItem only allows me to call the command without arguments.

Any hint is appreciated.

Thanks,

M.Yara

Eric Thivierge

unread,
Jun 15, 2012, 8:42:51 AM6/15/12
to soft...@listproc.autodesk.com
AddCallbackItem which refers to a function within the same plugin. You can call that command with different arguments in the two callback functions.

--------------------------------------------
Eric Thivierge
http://www.ethivierge.com

Martin

unread,
Jun 15, 2012, 8:47:21 AM6/15/12
to soft...@listproc.autodesk.com
Thanks Eric!

It seems exactly what I wanted. I'll give it a try.

M.Yara
Reply all
Reply to author
Forward
0 new messages