Message 1 of 6
Utilizing Native Revit Commands - Navigating Revit Dialogs with the API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create an External command that will launch the "Visibility/Graphic Overrides for ()" dialog for a view template.
With quite a lot of effort, research, and skimming JournalFiles, I have managed to figure out how to launch the native "Visibility/Graphic Overrides for (ActiveView)" dialog.
I would like to launch the "Visibility/Graphic Overrides for (ViewTemplate)" dialog with the API. Is there a way to do this? See below for a C# example method:
private void LaunchVG_VTDialog(UIApplication uiApp)
{
//commandId for Visibility/GraphicsOverride dialog
string commandId1 = "ID_VIEW_CATEGORY_VISIBILITY";
uiapp.PostCommand(RevitCommandId.LookupCommandId(commandId1));
}