Hello,
I'm trying to assign a DesignSpecification:ZoneAirDistribution
object, through an EnergyPlus measure, to Controller:MechanicalVentilation
and Sizing:Zone
objects, and I ultimately want to assign a controller list to an AirLoopHVAC
.
I was trying the following to edit my objects, but when I open the idf file after running the measure, the edits aren't shown in the objects despite successful runs ... I checked the WorkspaceObject, Workspace, and IdfObject documentations to figure what I may be doing wrong, but it's not clear.
sizingZone = workspace.getObjectsByType("Sizing:Zone").at(0).idfObject
sizingZone.setString(22,"DSZAD")
workspace.insertObject(sizingZone).get
controller = workspace.getObjectsByName("Controller Mechanical Ventilation 1",true).at(0)
controller = controller.idfObject
controller.setString(7,"DSZAD")
workspace.insertObject(controller).get
Are there any steps I'm missing? Is there a way to do what I'm trying in OpenStudio measures? Any advice is appreciated