Results 1 to 2 of 2

Thread: V/G Overrides - Show ... categories in this view

  1. #1
    Active Member
    Join Date
    2005-12
    Posts
    72
    Login to Give a bone
    0

    Default V/G Overrides - Show ... categories in this view

    Hi there,

    I wonder if its possible to toggle the "Show" option for categories like Model, Annotation, Analytical, ... by api. I'd like to switch them on/off but couldn't find the proper way.
    Thanks in advance..

    Show Categories.png

  2. #2
    Active Member
    Join Date
    2005-12
    Posts
    72
    Login to Give a bone
    0

    Default Re: V/G Overrides - Show ... categories in this view

    Ok I'll answer my own question for anybody who is interested

    since version 2015, you can use the following properties which have the possibility to be toggled. For a Revit Api external command :

    public class yourCommand : IExternalCommand
    {
    public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
    {
    commandData.Application.ActiveUIDocument.Document.ActiveView.AreModelCategoriesHidden = false; // set true to hide
    commandData.Application.ActiveUIDocument.Document.ActiveView.AreAnnotationCategoriesHidden = true;
    commandData.Application.ActiveUIDocument.Document.ActiveView.AreAnalyticalModelCategoriesHidden = true;
    commandData.Application.ActiveUIDocument.Document.ActiveView.AreImportCategoriesHidden = true;
    return Result.Succeeded;
    }

    public Result OnShutdown(UIControlledApplication application)
    {
    return Result.Succeeded;
    }
    }

Similar Threads

  1. Replies: 9
    Last Post: 2017-05-18, 04:54 AM
  2. Allow more family categories to show as cut in the model
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 1
    Last Post: 2015-10-30, 09:02 PM
  3. Revit Annotation/Text Types be Categories in V/G Overrides or Object Styles
    By Wish List System in forum Revit MEP - Wish List
    Replies: 0
    Last Post: 2012-05-23, 02:01 PM
  4. Show Model Categories Automatically Off
    By lhanyok in forum Revit Architecture - General
    Replies: 4
    Last Post: 2006-10-05, 08:05 PM
  5. sorting view categories
    By danilojrmercado in forum AutoCAD Sheet Set Manager
    Replies: 0
    Last Post: 2005-11-13, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •