A connection between the master shape and the p4b class (in other words, when dropping the shapes on the diagram, objects of the p4b class are created) can be set up in the following way:
- The Standard variant: the master shape and the p4b class have the same name (as described in chapter “Shapes, Stencils & Templates”).
- Several master shapes can represent a class, when the property “is a master shape” is set to true (as described in the section ”Multiple Shapes for a single Class”).
- A master shape and the P4B class may also have different names.
The description of this variant can be found below.
In our example, we have created a class with the name and DB name “A” in the designer. In stencil, we have created a shape with the name “B”. Now we want that the characteristics of the master shape “B” belong to the class “A”.
In the ShapeSheet of the Master Shape “B”, we add a new user-defined cell named “P4BClass”. In the value column (value) the DB name of the desired class (in our example “A”) should be mentioned.
Now when we drop the shape “B” onto the diagram, it belongs to the class “A”.