Creating a new component

Create a new component when you want to create a design that represents a feature or a component in a live system and want this design to be available for reuse. For example, the component can be a button or a representation of a fan.

For more information, see the Components Overview section.

To create a new component:

  1. In Graphics Editor, click FileNewComponent.
  2. In the work area, design the appearance of the component.
  3. Click File > Save As > Component.
  4. In the Components tree, select the category where you want to save the component.
  5. Click OK.
  6. In the Properties pane, in the Name box, enter the name of the component.
  7. In the Description box, enter a description for the component.
  8. The description is displayed as a tooltip for the component in the Components pane.

  9. In the Height and Width boxes, enter the size the component gets when used in a drawing.
  10. Click OK.

NOTE: When you create a new component, a work area opens and a ComponentContent root element appears in the Objects pane.

The name you give the component is also the file name the component gets when it is saved, with the suffix .tgmlcomponent. The new component is now displayed in the selected category in the Components pane, and is ready to use in other graphics.

For more information on the definition structure, see Component graphics definition structure.

For tips on component and/or TGML creation, see Best practices for creating and editing components and/or TGMLs.