Form FlowsheetAdd Object(Object Type, Int 32, Int 32, String, String) Method
Adds a new simulation object with an explicit unique ID at the given surface coordinates and returns the created object.
Definition
Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
C#
public ISimulationObject AddObject(
ObjectType t,
int xcoord,
int ycoord,
string id,
string tag
)VB
Public Function AddObject (
t As ObjectType,
xcoord As Integer,
ycoord As Integer,
id As String,
tag As String
) As ISimulationObjectParameters
- t ObjectType
- The type of object to add.
- xcoord Int32
- X coordinate on the drawing surface.
- ycoord Int32
- Y coordinate on the drawing surface.
- id String
- The explicit unique name (GUID-based) to assign to the new object.
- tag String
- Optional user-visible tag for the new object.