Form FlowsheetDelete Selected Object Method
Removes the specified graphic object and its corresponding simulation object from the flowsheet.
Disconnects all attached connectors, updates Adjust/Spec/PID cross-references, and optionally prompts the user for confirmation.
Definition
Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
C#
public void DeleteSelectedObject(
Object sender,
EventArgs e,
GraphicObject gobj,
bool confirmation = true,
bool triggercalc = false
)VB
Public Sub DeleteSelectedObject (
sender As Object,
e As EventArgs,
gobj As GraphicObject,
Optional confirmation As Boolean = true,
Optional triggercalc As Boolean = false
)Parameters
- sender Object
- The event sender (can be Nothing).
- e EventArgs
- Event arguments.
- gobj GraphicObject
- The graphic object to delete.
- confirmation Boolean (Optional)
- When True (default), shows a confirmation dialog before deleting.
- triggercalc Boolean (Optional)
- Reserved; currently unused.