Form FlowsheetAdd Flowsheet Object 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
The created ISimulationObject, or Nothing if the type name is unrecognised.
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
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 (as returned by GetAvailableFlowsheetObjectTypeNames).
- objname String
- The user-visible tag for the new object.
Return Value
ISimulationObjectThe created ISimulationObject, or Nothing if the type name is unrecognised.