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

Function "Command" From lisp

Scheduled Pinned Locked Moved Developers' Forum
16 Posts 6 Posters 1.8k 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.
  • M Offline
    Matt666
    last edited by 4 Jun 2008, 12:21

    😞 😞 😞
    Grmbl
    Ok ! Thank you Didier !

    Frenglish at its best !
    My scripts

    1 Reply Last reply Reply Quote 0
    • M Offline
      Matt666
      last edited by 4 Jun 2008, 18:26

      an "entmake" in lisp ! Ok, thank you ! I will try it, even if I don't know the method !

      thank you TIG !

      Frenglish at its best !
      My scripts

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wo3Dan
        last edited by 4 Jun 2008, 22:17

        @didier bur said:

        ......Sketchup.active_model.send_action soccer.delete[Netherlands,Italy,Romania] 🀣

        Hi Didier, is this going to be your next (and shortest) SU ruby plugin to get rid of us before we even started? 😲 πŸ˜• --> 😠
        πŸ˜‰
        Wo3Dan

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 5 Jun 2008, 10:23

          @didier bur said:

          Hi,
          In fact, send_action just performs an action which doesn't need any user input, or selects a tool (afaik).
          If you want to get the distance between 2 points, you don't need dimensions for that (d=p1.distance p2). If you want your script to draw a dimension, I think this is impossible.
          I hope I'm wrong...

          Getting distances between two points is easy as stated...
          You CAN'T make dimensions direct from Ruby, BUT you can make a dimension-component.skp (or a set of various ones) that are stored in a Plugins sub-folder - these have a 'base' length, your script then has you pick two points - it places the component at p1 and rotates it to towards p2 and also scales it by the required factor p1_to_p2 : base... Point p3 could be an offset and scale approproiately for this...

          .

          TIG

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by 9 Jun 2008, 09:26

            Hello !
            It's strange Ruby can't answer to a Sketchup pending command ! 😞 😲 πŸ˜•

            I would like to create a tool for continuous dimension. Acad like !
            1- Draw a simple dimension
            2- Retrieving the last basis point of the first dimension
            3- draw a dimension with the first basis point already given.

            If I understand, we must re-program dimension tool ?? 😲

            Frenglish at its best !
            My scripts

            1 Reply Last reply Reply Quote 0
            • M Offline
              Matt666
              last edited by 16 Jun 2008, 15:32

              Can I do smt with the observer tools ?

              When a user action is done, the observer returns the action ??? And we just have to send the action to the tool... no ? πŸ˜•

              Frenglish at its best !
              My scripts

              1 Reply Last reply Reply Quote 0
              • M Offline
                Matt666
                last edited by 25 Jun 2008, 15:34

                Sketchup.active_model.send_action coach.delete[Raymond Domenech]...

                Frenglish at its best !
                My scripts

                1 Reply Last reply Reply Quote 0
                • T Offline
                  toxicvoxel
                  last edited by 26 Jun 2008, 19:05

                  The blokes at HQ would make life a lot simpler if they could provide simple GET functions (GETPoint,GetAngle,GetDistance etc.) - quite difficult and probably beyond many to do in Ruby with a tools class. If only they would apply the Sketchup 'simplicity' ethos to the API.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Didier Bur
                    last edited by 26 Jun 2008, 19:26

                    @unknownuser said:

                    The blokes at HQ would make life a lot simpler if they could provide simple GET functions

                    I agree 1000%

                    DB

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Matt666
                      last edited by 27 Jun 2008, 05:30

                      +1... 😲 😞

                      Frenglish at its best !
                      My scripts

                      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