• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Sketchup kind of 'stuck' after scripts

Scheduled Pinned Locked Moved Developers' Forum
13 Posts 4 Posters 260 Views
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 23 Aug 2011, 14:37

    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
    • V Offline
      voljanko
      last edited by 23 Aug 2011, 14:57

      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 23 Aug 2011, 15:08

        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
        • V Offline
          voljanko
          last edited by 23 Aug 2011, 15:14

          @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 23 Aug 2011, 15:16

            will do.

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 23 Aug 2011, 15:30

              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 23 Aug 2011, 15:53

                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
                • V Offline
                  voljanko
                  last edited by 23 Aug 2011, 16:37

                  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 23 Aug 2011, 17:14

                    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
                    • V Offline
                      voljanko
                      last edited by 23 Aug 2011, 18:02

                      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 24 Aug 2011, 13:05

                        Solved. Thank you very much.

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          thomthom
                          last edited by 24 Aug 2011, 13:11

                          @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
                          • T Offline
                            TIG Moderator
                            last edited by 24 Aug 2011, 13:22

                            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
                            1 / 1
                            • First post
                              8/13
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement