FormFlowsheetAddObject(ObjectType, Int32, Int32, 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
public ISimulationObject AddObject(
	ObjectType t,
	int xcoord,
	int ycoord,
	string id,
	string tag
)

Parameters

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.

Return Value

ISimulationObject

Implements

IFlowsheetAddObject(ObjectType, Int32, Int32, String, String)

See Also