sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Tool in another tool

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 397 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.
    • M Offline
      Matt666
      last edited by

      Hi !
      Sorry I can't say it clearly in English (in French either!)...

      Can anyone tell me how to create a script that not stops a tool already in use ?
      Which functions should I use ?

      Exemple :

      • Start line tool
      • Place the first point
      • Start zoom window tool and zoom somewhere in the drawing
      • Place the end point of the line. Zoom window tool has not annulate line tool...

      Thank you !

      Frenglish at its best !
      My scripts

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        The only thing I can think of for your example is to create a custom tool that gets the start point, then gets a zoom window, then gets the second point.

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • N Offline
          NewOne
          last edited by

          @matt666 said:

          Hi !
          Can anyone tell me how to create a script that not stops a tool already in use ?
          Which functions should I use ?

          Exemple :

          • Start line tool
          • Place the first point
          • Start zoom window tool and zoom somewhere in the drawing
          • Place the end point of the line. Zoom window tool has not annulate line tool...

          Sketchup does this without need of any rubyscript... I have started LineTool, placed the first point (click-release), then went on "Camera" Toolbar, clicked on Zoom Window icon (also works with Ctrl+Shift+W from keyboard), zoomed on a certain spot on the viewport and placed the second point of the line. It worked!

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by

            Thank you RickW and NewOne

            I wanted to say native SU zoom window tool did exactly what I want...
            You can use it inside another tool started...

            In autolisp, the "def" function is called "defun"

            (defun c;'name of the tool' ('arguments'/'local variables'))
            

            But when you want to do a tool can be used inside another lisp started, you can delete "c:"

            (defun 'name of the tool' ('arguments'/'local variables'))
            

            Without "c:" you can use all function when another tool is active !

            @unknownuser said:

            It worked!
            Yes ! And I want to do a tool which can be used inside another active tool !! πŸ˜„

            I'm afraid... My english is veeery pooor... πŸ˜• πŸ˜•
            Sorry....

            Another example : I want to have 3D coordinates of a point which is given by middle of two points clicked before. Ruby can easily do that.
            But I also want to use this coordinate as second point of a line, or center of the circle, opposite angle of a rectangle, etc...
            So inside an active tool ! β˜€

            Frenglish at its best !
            My scripts

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

              @unknownuser said:

              I want to have 3D coordinates of a point which is given by middle of two points clicked before. Ruby can easily do that.
              But I also want to use this coordinate as second point of a line, or center of the circle, opposite angle of a rectangle, etc...
              So inside an active tool ! β˜€

              How is going on your project to run a tool inside an existing active tool?
              I'm very curious to know if is somthing possible or not. If so, it could solve lots of annoyng problems (middle between two points, many types of tangents, and so on). Let me know something. πŸŽ‰
              Thanx!

              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