Layout of Included Components
Note |
|---|
This topic applies only to SWCs specified as block diagrams. |
If you add a component to your SWC (see Including a Component as a Complex Element) and place it in the drawing area, the default layout of the added component, defined in the layout editor, is displayed. If this default layout does not suit your purposes, you can react in two different ways.
One possibility is to adapt the default layout in the layout editor. Changes in the layout editor do not, however, have any influence on individual graphical occurrences of the component in
The other possibility is to adapt the layout of a specific graphical occurrence in the
Only the layout of the edited graphical occurrence is modified, neither the default layout nor the layout of other graphical occurrences of the same component in the diagram is changed automatically. This means that, if necessary, you can assign each graphical occurrence of the same component a different layout.
You can change the size of a block and move, show, or hide the ports. The following must, however, be taken into consideration:
- A graphical occurrence must at least be the size of an addition operator with two inputs.
- The minimum size of a graphical occurrence is also limited by the number of visible ports: two ports cannot have the same position.
- If the default layout contains an icon, it is cut off if the size of the graphical occurrence is smaller than the icon itself.
If you copy or cut out a graphical occurrence which has been edited in this way and insert it at a different location as described in Copying/Moving Diagram Items in the Same Diagram and Copying/Moving Diagram Items Between Diagrams (SWC Editor), the inserted graphical occurrence is assigned the layout of the copied/cut out graphical occurrence.
If you
See also
Including a Component as a Complex Element
Activating/Deactivating Flexible Layout
Copying/Moving Diagram Items in the Same Diagram
Copying/Moving Diagram Items Between Diagrams (SWC Editor)
Editing the Size of a Graphical Occurrence
Show/Hide Ports of an Included Component