The Symbol Styles dialog allows you to customize the styles of individual symbols. However, you can customize a style sheet to hide unnecessary style attributes from the Symbol Style dialog for specific element kinds.

  • If you hide an attribute from the Symbol Style dialog for a specific element kind, ensure the style sheet is applied to the entire project, not a single view, to affect the style of the specified element symbols in all views.
  • Currently, you can hide attributes from the Symbol Style dialog only via the Textual Editor.

Hiding style attributes from the Symbol Style dialog

To hide style attributes from the Symbol Style dialog for specific element kinds


  1. Open a style sheet in the Textual Editor.
  2. Within the body of the part definition of a style sheet, locate the part usage element that redefines style.
  3. Within the body of the redefining element, do the following:
    1. Import the DS_Styles::CoreStylesComponents::KerMLStyles package.
    2. Declare an attribute usage and apply the InvisibleInDialog metadata to it, then redefine the style attribute you want to hide from the Symbol Style dialog for the element kind specified in the rule's condition.
  4. Synchronize modifications.

part def NewStyleSheet :> DS_Styles::CoreStylesComponents::StyleSheet {
    part partRule :> rule {
        part :>> condition : DS_Styles::CoreStylesComponents::Predicates::ByElementMetaclassCondition {
            ref item :>> elementMetaclass = SysML::Systems::PartUsage.metadata;
        }
        part :>> style : DS_Styles::CoreStylesComponents::KerMLStyles::ShapeStyle {
            private import DS_Styles::CoreStylesComponents::KerMLStyles::*;
            #InvisibleInDialog attribute :>> fillColor;   // the style attribute Fill Color is hidden from the Symbol Style dialog for part usages
        }
    }
}