Flowsheet BaseAdd Flowsheet Object 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
The newly created ISimulationObject, or Nothing if the type name is unrecognised.
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
C#
public ISimulationObject AddFlowsheetObject(
string typename,
string objname
)VB
Public Function AddFlowsheetObject (
typename As String,
objname As String
) As ISimulationObjectParameters
- typename String
- The display name of the object type.
- objname String
- The tag/name to assign to the new object.
Return Value
ISimulationObjectThe newly created ISimulationObject, or Nothing if the type name is unrecognised.