This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstudio_dir = Sketchup.read_default("OpenStudio", "OpenStudioDir") | |
openstudio_modeleditor_rb = File.join(openstudio_dir, "Ruby/openstudio_modeleditor.rb") | |
load(openstudio_modeleditor_rb) | |
$OPENSTUDIO_SKETCHUPPLUGIN_NAME = "OpenStudio" | |
$OPENSTUDIO_SKETCHUPPLUGIN_VERSION = "3.0.0" | |
$OPENSTUDIO_SKETCHUPPLUGIN_LAUNCH_GETTING_STARTED_ON_START = false | |
plugin_path = 'C:\Users\alang\Downloads\openstudio-sketchup-plugin-master\openstudio-sketchup-plugin-master\plugin' | |
puts "your old Ruby path is #{$:}" | |
puts | |
$: << plugin_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstudio_dir = Sketchup.read_default("OpenStudio", "OpenStudioDir") | |
openstudio_dir = 'C:\openstudioapplication-1.0.0' | |
openstudio_modeleditor_rb = File.join(openstudio_dir, "Ruby/openstudio_modeleditor.rb") | |
load(openstudio_modeleditor_rb) | |
a = OpenStudio::Modeleditor::OSProgressBar.new | |
a.setWindowTitle("Hello") | |
a.setValue(50) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstudio_dir = Sketchup.read_default("OpenStudio", "OpenStudioDir") | |
openstudio_modeleditor_rb = File.join(openstudio_dir, "Ruby/openstudio_modeleditor.rb") | |
load(openstudio_modeleditor_rb) | |
$OPENSTUDIO_SKETCHUPPLUGIN_NAME = "OpenStudio" | |
$OPENSTUDIO_SKETCHUPPLUGIN_VERSION = "3.0.0" | |
$OPENSTUDIO_SKETCHUPPLUGIN_LAUNCH_GETTING_STARTED_ON_START = false | |
plugin_path = 'C:\Users\macumber\Downloads\openstudio-sketchup-plugin-master\openstudio-sketchup-plugin-master\plugin' | |
puts "your old Ruby path is #{$:}" | |
puts | |
$: << plugin_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<measure> | |
<schema_version>3.0</schema_version> | |
<name>create_bar_from_building_type_ratios</name> | |
<uid>6e3a14f8-c3c7-4e03-bc51-bef8a52e1a05</uid> | |
<version_id>59bab9e9-5674-4aff-b83c-279235291b4c</version_id> | |
<version_modified>20200718T235820Z</version_modified> | |
<xml_checksum>2AF3A68E</xml_checksum> | |
<class_name>CreateBarFromBuildingTypeRatios</class_name> | |
<display_name>Create Bar From Building Type Ratios</display_name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// here we are going to create a dummy job to attach to the datapoint for saving job state | |
runmanager::Workflow workflow = project().analysis().problem().createWorkflow(toQueue,openstudio::path()); | |
runmanager::Job job = workflow.create(openstudio::path(), | |
openstudio::path(), | |
openstudio::path(), | |
std::vector<URLSearchPath>()); | |
runmanager::JobFactory::optimizeJobTree(job); | |
// can only set status on externally managed jobs | |
job.makeExternallyManaged(); |