Skip to content

Commit

Permalink
Merge pull request #107 from openstudiocoalition/106_OpenStudioPolicy
Browse files Browse the repository at this point in the history
Fix #106 - OpenStudioPolicy.xml couldn't be loaded correctly due to deprecated IDD object
  • Loading branch information
macumber authored Jul 9, 2020
2 parents 3592ebd + ab54242 commit 7f4e3d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/model_editor/AccessPolicyStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

#include <QXmlDefaultHandler>
#include <QXmlReader>
#include <QXmlSimpleReader>
#include <QXmlInputSource>
#include <QXmlAttributes>

#include "AccessPolicyStore.hpp"

Expand Down
10 changes: 2 additions & 8 deletions src/openstudio_lib/library/OpenStudioPolicy.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by Daniel Macumber (NREL) -->
<ROOT>
<POLICY IddObjectType="OS_AirLoopHVAC_SupplyPlenum">
<rule IddField="Thermal Zone" Access="LOCKED"/>
Expand Down Expand Up @@ -765,11 +764,6 @@
<rule IddField="Air Inlet Node Name" Access="HIDDEN"/>
<rule IddField="Air Outlet Node Name" Access="HIDDEN"/>
</POLICY>
<POLICY IddObjectType="OS_AirTerminal_SingleDuct_Uncontrolled">
<rule IddField="Availability Schedule Name" Access="HIDDEN"/>
<rule IddField="Inlet Air Node Name" Access="HIDDEN"/>
<rule IddField="Zone Supply Air Node Name" Access="HIDDEN"/>
</POLICY>
<POLICY IddObjectType="OS_AirTerminal_SingleDuct_ParallelPIU_Reheat">
<rule IddField="Availability Schedule Name" Access="HIDDEN"/>
<rule IddField="Supply Air Inlet Node Name" Access="HIDDEN"/>
Expand Down Expand Up @@ -1236,7 +1230,7 @@
<rule IddField="Nominal Floor to Ceiling Height" Access="LOCKED"/>
</POLICY>
<POLICY IddObjectType="OS_DefaultConstructionSet">
<rule IddField="Name" Access="LOCKED"/>
<!--<rule IddField="Name" Access="LOCKED"/>-->
<rule IddField="Default Exterior Surface Constructions Name" Access="LOCKED"/>
<rule IddField="Default Interior Surface Constructions Name" Access="LOCKED"/>
<rule IddField="Default Ground Contact Surface Constructions Name" Access="LOCKED"/>
Expand All @@ -1248,7 +1242,7 @@
<rule IddField="Site Shading Construction Name" Access="LOCKED"/>
</POLICY>
<POLICY IddObjectType="OS_DefaultScheduleSet">
<rule IddField="Name" Access="LOCKED"/>
<!--<rule IddField="Name" Access="LOCKED"/>-->
<rule IddField="Hours of Operation Schedule Name" Access="LOCKED"/>
<rule IddField="Number of People Schedule Name" Access="LOCKED"/>
<rule IddField="People Activity Level Schedule Name" Access="LOCKED"/>
Expand Down

0 comments on commit 7f4e3d2

Please # to comment.