Example #1
0
        public SerialCategoryGraphicOverrides(RevitDB.Category category, RevitView view)
        {
            RevitDoc document = view.Document;

            this.Category = new SerialCategoryId(category, document);
            this.IsHidden = view.GetCategoryHidden(category.Id);

            RevitDB.OverrideGraphicSettings overrideSettings = view.GetCategoryOverrides(category.Id);
            SerialOverrideGraphicSettings   serialOverride   = new SerialOverrideGraphicSettings(category, overrideSettings, document);

            if (serialOverride.IsModified)
            {
                this.GraphicOverride = serialOverride;
            }
        }