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 On Fri, Jun 15, 2012 at 10:33 PM, Martin <[email protected]> wrote: > 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 >

