Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to delete modelobject in OpenStuudio by ruby binding

I'm confused in recent how a object in openstudio to be deleted or removed? for some object such as AirLoopHVAC, it has method .remove, but for some components, such as coil, unit heater, PTAC, they don't have method to delete from model.

Using unit heater as example, I can remove it from thermal zone, remove the components in this unit heater (fan, coil, etc.) but how can I remove it completely from model, get rid off it from the list which called from model.getZoneHVACUnitHeaters ?

is there have a general method to delete or remove modelobject completely from model? I can't not find it in ModelObject Class Reference or its child hierarchy.

Sorry to ask fundamental ruby questions all the time.

how to delete modelobject in OpenStuudio by ruby binding

I'm confused in recent how a object in openstudio to be deleted or removed? for some object such as AirLoopHVAC, it has method .remove, but for some components, such as coil, unit heater, PTAC, they don't have method to delete from model.

Using unit heater as example, I can remove it from thermal zone, remove the components in this unit heater (fan, coil, etc.) but how can I remove it completely from model, get rid off it from the list which called from model.getZoneHVACUnitHeaters ?

is there have a general method to delete or remove modelobject completely from model? I can't not find it in ModelObject Class Reference or its child hierarchy.

Sorry to ask fundamental ruby questions all the time.