Skip to content

Commit

Permalink
measure -u gbxml_import_advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen committed Jun 28, 2024
1 parent b6e6e7c commit 23941fc
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 75 deletions.
14 changes: 4 additions & 10 deletions measures/gbxml_import_advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

###### (Automatically generated documentation)

# Advanced Import Gbxml
#

## Description
This measure will bring in additional gbXML data beyond what comes in with the basic OpenStudio gbXML import.


## Modeler Description
This measure expects GbXMLReverseTranslator to already have been run on the model. This measure parses the XML and translates additional gbXML objects to OSM.


## Measure Type
ModelMeasure
Expand All @@ -19,14 +19,8 @@ ModelMeasure
## Arguments


### gbXML filename
Filename or full path to gbXML file.
**Name:** gbxml_file_name,
**Type:** String,
**Units:** ,
**Required:** true,
**Model Dependent:** false


This measure does not have any user arguments


6 changes: 3 additions & 3 deletions measures/gbxml_import_advanced/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
Dir[File.dirname(__FILE__) + '/resources/*.rb'].each { |file| require file }

# start the measure
class AdvancedImportGbxml < OpenStudio::Measure::ModelMeasure
class GbxmlImportAdvanced < OpenStudio::Measure::ModelMeasure
# human readable name
def name
# Measure name should be the title case of the class name.
return 'Advanced Import Gbxml'
return 'Gbxml Import Advanced'
end

# human readable description
Expand Down Expand Up @@ -421,4 +421,4 @@ def run(model, runner, user_arguments)
end

# register the measure to be used by the application
AdvancedImportGbxml.new.registerWithApplication
GbxmlImportAdvanced.new.registerWithApplication
119 changes: 57 additions & 62 deletions measures/gbxml_import_advanced/measure.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0"?>
<measure>
<schema_version>3.0</schema_version>
<schema_version>3.1</schema_version>
<error>Failed to infer measure name from 'C:/Users/MSTEEN/Documents/GitHub/NREL/gbxml-to-openstudio/measures/gbxml_import_advanced/measure.rb'</error>
<name>advanced_import_gbxml</name>
<uid>f82940f7-8046-4fd1-9dbb-df6411e86de2</uid>
<version_id>5bd42b97-9eac-42b7-b84d-015ddcb0d0ae</version_id>
<version_modified>20220420T154858Z</version_modified>
<version_id>34245d90-7622-429e-880a-c632ecf98cdd</version_id>
<version_modified>2024-06-28T17:39:01Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>AdvancedImportGbxml</class_name>
<display_name>Advanced Import Gbxml</display_name>
Expand Down Expand Up @@ -49,10 +50,10 @@
</attributes>
<files>
<file>
<filename>LICENSE.md</filename>
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>license</usage_type>
<checksum>CD7F5672</checksum>
<usage_type>readme</usage_type>
<checksum>0B68E96D</checksum>
</file>
<file>
<filename>README.md.erb</filename>
Expand All @@ -61,22 +62,27 @@
<checksum>703C9964</checksum>
</file>
<file>
<filename>gbXMLStandard Test Model 2016.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>D39FE3DA</checksum>
<version>
<software_program>OpenStudio</software_program>
<identifier>2.6.0</identifier>
<min_compatible>2.6.0</min_compatible>
</version>
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>070BF203</checksum>
</file>
<file>
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>readme</usage_type>
<checksum>60A34A33</checksum>
<filename>building_type_helper.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>A8B4E116</checksum>
</file>
<file>
<filename>Analytical Systems 01.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>CE91D4F3</checksum>
<filename>os_lib_adv_import.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>D2A0FD8D</checksum>
</file>
<file>
<filename>os_lib_lighting_and_equipment.rb</filename>
Expand All @@ -85,63 +91,46 @@
<checksum>E63C7739</checksum>
</file>
<file>
<filename>Test Villa Scenario 2_alt_a.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>89516D7B</checksum>
</file>
<file>
<filename>.gitkeep</filename>
<filetype>gitkeep</filetype>
<usage_type>doc</usage_type>
<checksum>00000000</checksum>
<filename>os_lib_schedules.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>C79BB5BA</checksum>
</file>
<file>
<filename>VentilationAndInfiltration.xml</filename>
<filename>200_SpacesOneZE.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>A8185257</checksum>
</file>
<file>
<filename>os_lib_schedules.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>BB445760</checksum>
<checksum>C4359438</checksum>
</file>
<file>
<filename>advanced_import_gbxml_test.rb</filename>
<filetype>rb</filetype>
<filename>25_SpacesOneZE.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>F468277A</checksum>
<checksum>44A2B39C</checksum>
</file>
<file>
<filename>os_lib_adv_import.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>24E56A45</checksum>
<filename>AirSystemAllVariations.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>F50404FF</checksum>
</file>
<file>
<version>
<software_program>OpenStudio</software_program>
<identifier>2.6.0</identifier>
<min_compatible>2.6.0</min_compatible>
</version>
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>DD0E31F0</checksum>
<filename>Analytical Systems 01.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>CE91D4F3</checksum>
</file>
<file>
<filename>200_SpacesOneZE.xml</filename>
<filename>Test Villa Scenario 2_alt_a.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>C4359438</checksum>
<checksum>89516D7B</checksum>
</file>
<file>
<filename>25_SpacesOneZE.xml</filename>
<filename>VentilationAndInfiltration.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>44A2B39C</checksum>
<checksum>A8185257</checksum>
</file>
<file>
<filename>adhoc_test.rb</filename>
Expand All @@ -150,16 +139,22 @@
<checksum>33699363</checksum>
</file>
<file>
<filename>AirSystemAllVariations.xml</filename>
<filename>advanced_import_gbxml_test.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>BC66C7B5</checksum>
</file>
<file>
<filename>gbXMLStandard Test Model 2016.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>F50404FF</checksum>
<checksum>D39FE3DA</checksum>
</file>
<file>
<filename>building_type_helper.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>A8B4E116</checksum>
<filename>gbxml - on -peoplehalftime.xml</filename>
<filetype>xml</filetype>
<usage_type>test</usage_type>
<checksum>7AB4E205</checksum>
</file>
</files>
</measure>

0 comments on commit 23941fc

Please sign in to comment.