- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi:
I want to trig some Revit transactions from my own WPF window or page.
But I as well want to take advantage of the Revit built-in External Command function. Because I can return success, failed or canceled signal back to Revit main process, and Revit can handle it by popping out a built-in dialog conaining error message and highlighting the error elements.
For example:
I click a button in my own WPF dialog. In the Click event handler, I'd like to call some method like "PostExternalCommand( IExternalCommand myOwnClassInstance) ". And inside this ExternalCommand.Execute(), I can do lots of different tasks as my wish.
The point is that I only have to wrap some codes in the same class, and reuse it both in my own WPF dialog, and in Revit RibbonTab.
Is there any idea?
thanks a lot!
Solved! Go to Solution.