Created
July 27, 2020 00:36
-
-
Save alang-1/65604c208496eb729840816955c36956 to your computer and use it in GitHub Desktop.
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 | |
puts "your new Ruby path is #{$:}" | |
load("openstudio/lib/PluginManager.rb") | |
your old Ruby path is ["C:/openstudioapplication-1.0.0/Ruby", "C:/openstudioapplication-1.0.0/Ruby", "C:/openstudioapplication-1.0.0/Ruby", "C:/Program Files/SketchUp/SketchUp 2020/Tools/RubyStdLib", "C:/Program Files/SketchUp/SketchUp 2020/Tools/RubyStdLib/platform_specific", "C:/Program Files/SketchUp/SketchUp 2020/Tools", "C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins"] | |
your new Ruby path is ["C:/openstudioapplication-1.0.0/Ruby", "C:/openstudioapplication-1.0.0/Ruby", "C:/openstudioapplication-1.0.0/Ruby", "C:/Program Files/SketchUp/SketchUp 2020/Tools/RubyStdLib", "C:/Program Files/SketchUp/SketchUp 2020/Tools/RubyStdLib/platform_specific", "C:/Program Files/SketchUp/SketchUp 2020/Tools", "C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins", "C:\\Users\\alang\\Downloads\\openstudio-sketchup-plugin-master\\openstudio-sketchup-plugin-master\\plugin"] | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:89: warning: already initialized constant OpenStudio::Platform_Unknown | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/PluginManager.rb:89: warning: previous definition of Platform_Unknown was here | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:90: warning: already initialized constant OpenStudio::Platform_Windows | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/PluginManager.rb:90: warning: previous definition of Platform_Windows was here | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:91: warning: already initialized constant OpenStudio::Platform_Mac | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/PluginManager.rb:91: warning: previous definition of Platform_Mac was here | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:539: warning: already initialized constant OpenStudio::SketchUpWidget | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/PluginManager.rb:539: warning: previous definition of SketchUpWidget was here | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:543: warning: already initialized constant OpenStudio::Plugin | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/PluginManager.rb:543: warning: previous definition of Plugin was here | |
Model at 'C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/../resources/templates/MinimalTemplate.osm' updated from 2.7.0 to 3.0.0. | |
Error: #<NoMethodError: undefined method `inspector_dialog' for nil:NilClass> | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/RenderingColor.rb:197:in `update_entity' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/DrawingInterface.rb:173:in `draw_entity' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/ModelInterface.rb:944:in `block in attach_openstudio_model' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/ModelInterface.rb:942:in `each' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/ModelInterface.rb:942:in `each_with_index' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/interfaces/ModelInterface.rb:942:in `attach_openstudio_model' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/ModelManager.rb:227:in `attach_openstudio_model' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/ModelManager.rb:177:in `open_openstudio' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/ModelManager.rb:142:in `new_from_path' | |
C:/Users/alang/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Plugins/openstudio/lib/ModelManager.rb:117:in `new_from_skp_model' | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:165:in `start' | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:544:in `<module:OpenStudio>' | |
C:/Users/alang/Downloads/openstudio-sketchup-plugin-master/openstudio-sketchup-plugin-master/plugin/openstudio/lib/PluginManager.rb:87:in `<top (required)>' | |
<main>:11:in `load' | |
<main>:11:in `<main>' | |
SketchUp:1:in `eval' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment