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

    Sketchup kind of 'stuck' after scripts

    Scheduled Pinned Locked Moved Developers' Forum
    13 Posts 4 Posters 260 Views 4 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.
    • G Offline
      ghandi
      last edited by

      Hey Forum,

      I am experiencing issues after invoking scripts.
      Sketchup seems kind of 'stuck' after scripts are executed.
      That means I can't click or select any Object.

      I need to press spacebar once, then everything seems fine again.

      What am I missing? Any Ideas?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • voljankoV Offline
        voljanko
        last edited by

        It all depends of the letters in your scripts πŸ˜‰

        SuSolid.com - solid check - solid repair- solid intersection check - weight plugin

        1 Reply Last reply Reply Quote 0
        • G Offline
          ghandi
          last edited by

          Do you have any hints?

          I tried
          model.active_view.refresh
          or
          selection.clear

          but none helped.

          If you want me to post all that code I'll do.
          Mainly that are modified versions of Fillet.rb, Pipe_along_Path.rb.

          1 Reply Last reply Reply Quote 0
          • voljankoV Offline
            voljanko
            last edited by

            @ghandi said:

            Mainly that are modified versions of Fillet.rb, Pipe_along_Path.rb.
            First step would be to check if the original versions work ok for you.If yes,than find the differences.Than add every difference to the original(working) code.Then you will know what line makes your code not working.

            SuSolid.com - solid check - solid repair- solid intersection check - weight plugin

            1 Reply Last reply Reply Quote 0
            • G Offline
              ghandi
              last edited by

              will do.

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                I suspect that you have made a 'tool' that doesn't exit but sits there waiting for more input... without giving us some clues with your code we can't really help much more 😞

                TIG

                1 Reply Last reply Reply Quote 0
                • G Offline
                  ghandi
                  last edited by

                  So I figured the problem arises from the originalfillet.rb (attached)

                  For my modified version I mainly removed following lines
                  89-91
                  101-103
                  110-126
                  166-167

                  so these lines can't be responsible for the problem.

                  The remaining code looks normal to me.

                  I tried to locate the problem by putting returns here and there but no


                  original from http://video.suplugins.com/download/fillet.rb

                  1 Reply Last reply Reply Quote 0
                  • voljankoV Offline
                    voljanko
                    last edited by

                    Nothing is wrong.You are just "in the tool".
                    When the tool is selected,you can do just what the tool let you do.So it can be like stuck.
                    You just have to select other tools to exit this tool.

                    SuSolid.com - solid check - solid repair- solid intersection check - weight plugin

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      ghandi
                      last edited by

                      That's it.

                      So I just activate the "Select-Tool" with

                      Sketchup.active_model.select_tool(nil)

                      Is that what I want?

                      Or is there an other way to close the Tool?

                      Thank you

                      1 Reply Last reply Reply Quote 0
                      • voljankoV Offline
                        voljanko
                        last edited by

                        If you want to "close" a tool,you have to select another tool.
                        If you want to do it in code,try

                         Sketchup.send_action "selectSelectionTool;"
                        

                        ,or other tools you want.

                        SuSolid.com - solid check - solid repair- solid intersection check - weight plugin

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          ghandi
                          last edited by

                          Solved. Thank you very much.

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            @voljanko said:

                            If you want to "close" a tool,you have to select another tool.
                            If you want to do it in code,try

                             Sketchup.send_action "selectSelectionTool;"
                            

                            ,or other tools you want.

                            Does that work on OSX?

                            A safer method is Sketchup.active_model.select_tool( nil )

                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              Sketchup.send_action("selectSelectionTool:") should work cross-platform - it's only the numerical codes that are PC specific like Sketchup.send_action(10501) which is PC only whereas the equivalent Sketchup.send_action("viewTop:") works on PC & MAC...

                              TIG

                              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