FlowsheetBaseAddFlowsheetObject Method

Creates a simulation object by type name at the default position (50, 50) and assigns the given object name.

Definition

Namespace: DWSIM.FlowsheetBase
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
public ISimulationObject AddFlowsheetObject(
	string typename,
	string objname
)

Parameters

typename  String
The display name of the object type.
objname  String
The tag/name to assign to the new object.

Return Value

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

Implements

IFlowsheetAddFlowsheetObject(String, String)

See Also