Hi,
I want to trigger the External command through the UI which is invoked by the Other External command.
I want to trigger different External commands Using Single UI. I should be able to run the External commands separately also.
Thanks,
Kiran K
|
Hi,
I want to trigger the External command through the UI which is invoked by the Other External command.
I want to trigger different External commands Using Single UI. I should be able to run the External commands separately also.
Thanks,
Kiran K
Kiran,
It would likely be better to structure the application to call the interfaces directly from the DLL. This may not be possible if you didn't write the external command, but if you did, you should consider refactoring the code so you can call it directly by referencing the dll and calling exposed methods.
HTH,
Check out the samples in the Revit API Software Development Kit. It is easy to overlook, but one of the samples is called "RvtSamples" which creates a menu for all the other samples (over 100 total) and it only requires one entry in the Revit.ini file. Sounds to me like what you want.
My experience is that 2009 is easier to follow than 2010 (with the ribbon) but once you understand how 2009 works, you can get 2010 to work also.
You can certainly run a command from an external application, and it's a great method. The OP had asked about running a command from another command. Since individual commands run in their own transactions I would still suggest calling functions directly.
Hi,
I have already the entry in the revit.ini File but my aim is to run the the extrenal command from the seperate UI which will be created by me and all the external commands will be triggred through it. The UI will Contain the Entry of all the External commands and I will select that Command and Run it. Instead if going through Tools-> External Commands.
Thanks,
Kiran K