Functions > Shared Functions
Adding an Instance of a Shared Function as a Parameterized Object
You can add an instance of a shared function to a diagram as a parameterized object.
Prerequisites
- The shared function that you want to add an instance of must already exist in the project. See Promoting a Function to a Shared Function.
Procedure
- Either:Press Space Bar and enter Add Shared Function.
In the Shared Objects Browser Window either: Right-click the shared function you want to add an instance of and select Add Shared Function.
Double-click the function you want to add an instance of.
The Add Shared Function Dialog Box displays.
If you did not access the dialog box via the Shared Objects Browser Window, select the current shared object that you want to add an instance of.
If you are adding an instance of a shared function that has a symbol associated with it, select Port Selection.
In the Select Ports table, select the ports you want to place on the object. To select multiple ports hold down the Ctrl key while selecting. If you choose to place ports individually, when you are placing ports on the diagram they will appear in the order in which you selected them in the table.
Choose whether you want to place ports Individually or As Group, or select Auto-Generate. Click OK.The cursor changes to .
Either:If you selected Auto-Generate, click where you want to place the object instance.
If you did not select Auto-Generate, click where you want to place the first corner of the object instance. Move the cursor to where you want to place the opposite corner of the object instance. A shadow box appears indicating where the instance will be added and a tooltip indicates the width of the instance and the number of ports that can fit on it. Click where you want to place the opposite corner of the object instance.
Tip If you did not select Auto-Generate, you can rotate a function instance you are placing by pressing R on the keyboard after clicking to place the first corner of the instance. Once you have placed the instance the object name will be displayed vertically to the right of the instance.
If you selected Auto-Generate, the ports are placed on the object instance automatically. Skip the remaining steps in this procedure. If you did not select Auto-Generate: The cursor changes to .
Circles indicate locations on the object instance where you can place the port(s) and dotted gray lines/boxes indicate locations outside the object instance where you can place the port(s).
If you are placing ports individually move the cursor over the location where you want to place a port. If you are placing ports as a group move the cursor over the location where you want to place the first port of the group.The cursor changes to .
Click to place the port(s).
If you are placing multiple ports individually, repeat Steps 7 and 8.
Results
The shared object instance is added to the diagram. The instance stretches to include any ports placed outside its boundaries.
In the Design Browser Window the new instance of the shared object is shown as a child node of the shared object.
Note
When you create more than one instance of a shared object, cross-references are displayed next to the instances in the diagram. See Cross-References on Objects.
Parent Topic:
Shared Functions
Capital Systems Modeler User Guide, 2512.2606
Unpublished work. © 2026 Siemens
Source: https://docs.sw.siemens.com/en-US/doc/861057055/202511026.capital_sm_user/id0916230f-1e42-47fa-b2e8-99c8a720565d · retrieved 2026-07-18