Revision history [back]
Per Eric's comment below, the best way to do this is using the remove
call of a Workspace Object.
API documentation for the Workspace object here. You can get an instance of an object in your Workspace with the getObjectByTypeAndName
or related method call. Be careful about removing workspace objects - you may end up deleting an object needed by another object.
For a tutorial on writing EnergyPlus measures, see the EnergyPlus Measures section in the OpenStudio Measure Writer's Reference Guide provides an example.
Per Eric's comment below, the best way to do this is using the remove
call of a Workspace Object.
API documentation for the Workspace object here. You can get an instance of an object in your Workspace with the getObjectByTypeAndName
or related method call. Be careful about removing workspace objects - you may end up deleting an object needed by another object.
For a tutorial on writing EnergyPlus measures, see the EnergyPlus Measures section in the OpenStudio Measure Writer's Reference Guide provides an example.
Per Eric's comment below, The EnergyPlus Measures section in the best way to do this is using the OpenStudio Measure Writer's Reference Guide provides an example. remove
call of a Workspace Object.
API documentation for the Workspace object here. You can get an instance of an object in
With your Workspace with the object you could call getObjectByTypeAndName
, get the handle
or related method call. for the object returned, and then call removeObject
. Be careful about removing workspace objects - you may end up deleting an object needed by another object.
For a tutorial on writing EnergyPlus measures, see the EnergyPlus Measures section in the OpenStudio Measure Writer's Reference Guide provides an example.