AddShape.OBJECTIF
AddShape 
This edition primitive addresses the creation of a new shape in a diagram.
Usage
[DiagramShape <value> =]
DIAGRAM::AddShape(container=<container_path>[,options]) in (<diagram_path>);
or
[DiagramShape <value> =]
AddShape(container=<container_path>[,options]) in (<diagram_path>);
where
- \<container_path> adresses a
DiagramContainerElement - \<diagram_path> adresses a
Diagram
Configuration
| Property | Type | Required |
|---|---|---|
container | DiagramContainerElement | yes |
extendParentBoundsToHostThisShape | boolean | no |
container: container for newly created shapeextendParentBoundsToHostThisShape: flag indicating if parent container should be extended in order to fully contain newly created shape
Examples
myShape = DIAGRAM::AddShape(container=topLevel) in (myDiagram);
Creates a new shape in Diagram identified by 'myDiagram' expression, at top-level, and assign this new shape to 'myShape'
myShape = DIAGRAM::AddShape(
container=myContainerShape,
extendParentBoundsToHostThisShape=true) in (myDiagram);
Creates a new shape in Diagram identified by 'myDiagram' expression, inside shape identified by 'myContainerShape' expression, and assign this new shape to 'myShape'
Javadoc
Java class: AddShape
See also
CreateDiagram: This edition primitive addresses the creation of a new diagram.AddConnector: This edition primitive addresses the creation of a new connector in a diagram.GraphicalAction: This edition primitive allows to set a given graphical property for a diagram element.