FormFlowsheetAddFlowsheetObject Method

Adds a simulation object of the named type to the flowsheet at the default position (50, 50) and returns it.

Definition

Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
public ISimulationObject AddFlowsheetObject(
	string typename,
	string objname
)

Parameters

typename  String
The display name of the object type (as returned by GetAvailableFlowsheetObjectTypeNames).
objname  String
The user-visible tag for the new object.

Return Value

ISimulationObject
The created ISimulationObject, or Nothing if the type name is unrecognised.

Implements

IFlowsheetAddFlowsheetObject(String, String)

See Also