Skip to main content
Version: 2.99

AddShape.OBJECTIF

AddShape Diagram20x20

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

PropertyType Required 
container DiagramContainerElement yes
extendParentBoundsToHostThisShape boolean no

  • container: container for newly created shape
  • extendParentBoundsToHostThisShape : 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.