See the basic procedures for working with views and view definitions.

Creating view usage and definition elements

Creating view usage and definition elements via the Textual Editor

To create view usage and definition elements via the Textual Editor


  1. In the Textual Editor, place the cursor where you want to create the element and declare the keyword: 
    1.  view def for a view definition.

    2.  view for a view usage.
  2. Specify the element name.
  3. Specify the view's features in the element body.
  4. Click the Synchronize button.

    view def 'Part Structure View' {  // view definition 
        private import Views::*;
        filter @SysML::Systems::SysML::PartUsage;
        render asNewTreeDiagram;
    }

    view 'vehicle parts view' : 'Part Structure View';  // view usage

Creating view usage and definition elements via the Create Element command

To create view usage and definition elements via the Create Element command


  1. In the Containment tree, right-click an element, and in the shortcut menu, click Create Element.

  2. In the Create Element dialog, select one of the following:
    1. view def to create a view definition element.
    2. view to create a view usage element.
  3. Name the element.
  4. Specify the view's features.

Auto-creating view definition elements via the Extract Definition command

To auto-create view definition elements via the Extract Definition command