Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have written some code which creates a new Element Filter for Revit - I'm very happy with the result. Currently, the routine is called by clicking on a toolbar I created - all works well.
But I've now cross some code (with the help of this forum!) which allows the user to replace an existing Revit toolbar button with a custom routine and I'd like to do this.
I've got it working by duplicating the code, but really I'd like to start the original routine, but I'm unsure how to run the code.
The original routine starts with this:
namespace DetailedFilter
{
[Transaction(TransactionMode.Manual)]
public class Command : IExternalCommand
{
public Result Execute(
ExternalCommandData commandData,
ref string message,
ElementSet elements)
{
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application app = uiapp.Application;
Document doc = uidoc.Document;
etc etc
So to run this routine would I type:
DetailedFilter.command.Execute(??, ??, ??)
I'm unsure what to put in the ??s...
I'd appreciate some pointers - thanks.
Solved! Go to Solution.