sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Can't build anything with boxes and joints!!

    Scheduled Pinned Locked Moved SketchyPhysics
    17 Posts 2 Posters 3.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      CPhillips
      last edited by

      @henkh said:

      Hi, ruby reports the following:

      LoadSketchyPhysics2()
      Error: #<NoMethodError: (eval):149: undefined method `LoadSketchyPhysics2' for main:Object>
      (eval):149

      Ooops. its:

      LoadSketchyPhysics()

      I wonder if SP could be conflicting with another plugin. What other plugins do you have installed?

      1 Reply Last reply Reply Quote 0
      • H Offline
        HenkH
        last edited by

        Hi, the Ruby console reports now:

        LoadSketchyPhysics()
        C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/controlPanel.rb:69: warning: already initialized constant JointControllerStruct
        C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/inspector.rb:96: warning: already initialized constant CurrentVersion
        C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/inspector.rb:97: warning: already initialized constant VersionText
        createSelectionObserver
        PhysicsObjectInspector initialized
        true

        About other plugins: in Sketchup only the SketchyPhysics 2 plugin. I use no plugins at other tools, only what is normally installed together with the tools.

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by

          Well it looks like it is loading ok. But it doesnt make any sense. The error is
          Error: #<NameError: uninitialized constant Win32_VK_LCONTROL>

          That means the value Win32_VK_LCONTROL isnt defined. But it is defined at the top of SketchyPhysics\ClearConsole.rb. If that file is loading then I don't see how that can be an error.

          Try manualy loading that file and see if there are any errors

          load 'SketchyPhysics/clearconsole.rb'

          1 Reply Last reply Reply Quote 0
          • H Offline
            HenkH
            last edited by

            Hi, I think the problem is solved. I did what you proposed and the ruby result was:

            load 'SketchyPhysics/clearconsole.rb'
            true

            Again I compared the virtual WinXP and the Vista setup, but found that they were equal. Then I decided to reinstall SketchUp on another location and here is the new ruby result:

            load 'SketchyPhysics/clearconsole.rb'
            C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:4: warning: already initialized constant Win32_VK_LSHIFT
            C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:5: warning: already initialized constant Win32_VK_LCONTROL
            true

            And indeed the Box and the Joints worked. Probably there is something wrong with the protection of my Vista setup and I will try to find out later.

            CPhillips, thanks for all your effort to resolve the problem and thanks also for your fine package.

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by

              @henkh said:

              Hi, I think the problem is solved. I did what you proposed and the ruby result was:

              load 'SketchyPhysics/clearconsole.rb'
              true

              Again I compared the virtual WinXP and the Vista setup, but found that they were equal. Then I decided to reinstall SketchUp on another location and here is the new ruby result:

              load 'SketchyPhysics/clearconsole.rb'
              C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:4: warning: already initialized constant Win32_VK_LSHIFT
              C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:5: warning: already initialized constant Win32_VK_LCONTROL
              true

              And indeed the Box and the Joints worked. Probably there is something wrong with the protection of my Vista setup and I will try to find out later.

              CPhillips, thanks for all your effort to resolve the problem and thanks also for your fine package.

              It looks like ClearConsole is not being loaded at startup. The first time you did the load it worked succesfully. The second load just reports that the constants were being redefined in the second load.

              It sounds like you might have a bad SketchyPhysics.rb. That is the file that loads clear console. Could you look in your Plugins\SketchyPhysics.rb and see if the line "Load 'SketchyPhysics/ClearConsole.rb' is in it?

              1 Reply Last reply Reply Quote 0
              • H Offline
                HenkH
                last edited by

                Hi, to answer your question, yes, the line "Load 'SketchyPhysics/ClearConsole.rb' is in it. Of the rb scripts the following are being loaded during SketchUp startup:
                sketchyphysicstool.rb
                sketchyphysicsutil.rb
                JointTool.rb
                SketchyReplay.rb
                JointConnectionTool.rb
                controlPanel.rb
                inspector.rb
                PrimsTool.rb

                The following scripts are NOT loaded, not even manually:
                attributes.rb
                clearConsole.rb
                BoxPrimTool.rb

                For all clarity, this occurs only when SP has been installed in "C:/Program Files/Google/Google SketchUp 6/Plugins/". Installed in "C:/Google/Google SketchUp 6/Plugins/" all scripts are being loaded during startup.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CPhillips
                  last edited by

                  ClearConsole is or isn't loaded? If not than that is your problem.
                  SketchyPhysics.rb should contain this:

                  
                  def LoadSketchyPhysics
                  	load "SketchyPhysics\\sketchyphysicstool.rb"
                  	load "SketchyPhysics\\sketchyphysicsutil.rb"
                  	load "SketchyPhysics\\JointTool.rb"	
                  	load "SketchyPhysics\\SketchyReplay.rb"	
                  	load "SketchyPhysics\\attributes.rb"	
                  	load "SketchyPhysics\\clearConsole.rb"	
                      load "SketchyPhysics\\JointConnectionTool.rb"
                      load ("SketchyPhysics/controlPanel.rb") 
                      load ("SketchyPhysics/inspector.rb") 
                  	#load "SketchyPhysics\\SolidCamera.rb"	
                  end
                  
                  if( not file_loaded?("SketchyPhysics.rb") )
                  	#result = Sketchup.send_action "showRubyPanel;"
                  	
                  	LoadSketchyPhysics()
                  end		
                  file_loaded("SketchyPhysics.rb")
                  
                  

                  Attributes.rb may not be used anymore. And BoxPrimTool.rb is loaded by SketchySolids.rb

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    HenkH
                    last edited by

                    Hi, as I wrote last friday, may 16, 3 scripts are not installed at SketchUp startup: attributes.rb, clearConsole.rb and BoxPrimTool.rb.

                    I found out that the folder SketchyPhysics is the problem. I placed these scripts directly in the Plugins folder (after removal from SketchyPhysics.rb and SketchySolids.rb) and the sripts were loaded without any problem.

                    (SketchyPhysics.rb and SketchySolids.rb are installed by the installer together with the rest of SketchPhysics. Any reason why these files should not be up to date? By the way: SketchyPhysics.rb has a statement to load attributes.rb. If no longer needed than this statement could/should be removed, right?)

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CPhillips
                      last edited by

                      It sounds like your install is messed up beyond belief. I am starting to think you may be hitting the problem they talk about in this thread.

                      301 Moved Permanently

                      favicon

                      (www.sketchucation.com)

                      Its seems Vista has a problem with keeping old versions of files around. It might be the fix to another Vista problem reported by mc101.

                      You should look and see of you have any files in the directory mentioned in the post.

                      Chris

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        HenkH
                        last edited by

                        Chris, problem solved! Indeed I found the 3 scripts giving me problems in the VirtualStore (don't understand why only these 3?). After deleting the "Google" folder all problems were gone. Thanks!

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement