Flowsheet BaseAdd Object(Object Type, Int 32, Int 32, String, String) Method
Creates a simulation object with an explicit ID, places its graphic on the surface, and returns the new object.
Definition
Namespace: DWSIM.FlowsheetBase
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
The newly created ISimulationObject.
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
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 create.
- xcoord Int32
- The X coordinate on the drawing surface.
- ycoord Int32
- The Y coordinate on the drawing surface.
- id String
- The unique identifier to assign to the new object.
- tag String
- A user-visible label for the new object.
Return Value
ISimulationObjectThe newly created ISimulationObject.