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

    [Plugin] Double line

    Scheduled Pinned Locked Moved Plugins
    91 Posts 38 Posters 54.9k Views 38 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Didier

      Excellent idea - I was working on something similar, mine was called 'mline' - you beat me to it ! Well done.

      I can't get 'C' to work closing the loop - I have a short cut for circle that's 'c' so it dumps into that. Perhaps having something like shift+enter to close might do it ?

      .

      TIG

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

        @didier bur said:

        Hi,

        @unknownuser said:

        I can't get 'C' to work closing the loop - I have a short cur for circle that's 'c' so it dumps into that. Perhaps having something like shift+enter to close might do it ?

        I noticed that also at the office on a standard install of SU, at home my PC doesn't have the "c" shortcut...
        BTW, how to detect the Shift+enter keys pressed ?
        I was thinking of a "x" shortcut instead but Shift+enter is more intuitive.

        @honolulu: no, no additionnal files required. Maybe a glitch with the pushpull if you are on Mac ?
        @Pilou: want always more, hey ? i'll try to do it...

        The code is basically "if key1== enter AND key2== shift then..." For example

        def onKeyDown(key,repeat,flags,view)
        ###...
          @key="shift" if key==CONSTRAIN_MODIFIER_KEY
        ###...  
        end#def
        

        TIG

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          Patch published today. Shortcut for "close" changed to "x" instead of "c".

          DB

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Damned I have x for X-Ray πŸ’š
            So my previous trick will work fine again πŸ˜„

            @unknownuser said:

            Just write any number like 1
            then backspace for erase it
            then write x
            then Enter

            It's like Glen Gould but works πŸ’š

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

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

              @didier bur said:

              Patch published today. Shortcut for "close" changed to "x" instead of "c".

              Didier

              Using "X" is a good choice: x is usually reserved for copying - e.g. x3 to make copies within other commands and isn't a shortcut... If like Pilou you want to use 'X' as a shortcut for something like X-ray you need to remember to use 3x for copies rather than x3, as the latter will invoke X-ray rather than make copies ! Persoanlly I use Alt+X for X-ray mode...

              TIG

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                @unknownuser said:

                use 'X' as a shortcut for something like X-ray you need to remember to use 3x for copies rather than x3

                cool little trick πŸ€“

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • F Offline
                  Fletch
                  last edited by

                  Great work, Didier! Thanks so much for sharing!

                  a couple little things:
                  when I choose "show axis"... it does not show... whether or not I have it pop the wall up.

                  After drawing a wall, I exit the tool, then I want to draw a double line vertically on a face, so I choose to use the tool again... set width to 12", no face, no close. I draw a vertical line from top edge to bottom edge of the wall face. I hit enter for it to draw the double line. I get this.


                  doublelinebug.jpg

                  Fletch
                  Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Ben Ritter
                    last edited by

                    Thank you very much Didier.

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lapx
                      last edited by

                      Thanks D! I'll have to try it out sometime.

                      1 Reply Last reply Reply Quote 0
                      • Didier BurD Offline
                        Didier Bur
                        last edited by

                        Hi,

                        @unknownuser said:

                        when I choose "show axis"... it does not show...

                        Axis is drawn with guide lines (construction lines). Do you have them visible ?
                        Remember axis will only be visible if justification is "Center".

                        @unknownuser said:

                        draw a vertical line from top edge to bottom edge of the wall face. I hit enter for it to draw the double line. I get this.

                        Oh yes, I noticed that here too. The part of line up the wall is always exactly half the width of the wall 😲
                        As a matter of fact, this is normal: for the script to work in 3D, I had to compute the geometric plane on which the first two segments are drawn. Thus if you click only one segment, two points aren't enough to define the plane of the base. In this case the script considers that the plane is the red-green plane. And your points have the same projection on the red-green plane. So an error occurs. Hope I'm clear, hem,hem...
                        But I'll try to fix that if I can.

                        DB

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

                          Hi!
                          c=circle
                          x=explode.
                          Generally the letters are bad idea.
                          Could it be just cntl click for for close?

                          1 Reply Last reply Reply Quote 0
                          • CadFatherC Offline
                            CadFather
                            last edited by

                            i second that

                            1 Reply Last reply Reply Quote 0
                            • Didier BurD Offline
                              Didier Bur
                              last edited by

                              Hi,
                              Everybody will agree now, I hope. I finally got the double-click detection to work, so a double-clic will close a shape.
                              Another small enhancement: when you draw only one segment on an existing face, it takes the face as the base geometric plane (to solve Fletch's issue).
                              Download it at the top of topic.
                              Regards,

                              DB

                              1 Reply Last reply Reply Quote 0
                              • pilouP Offline
                                pilou
                                last edited by

                                Users presure πŸ˜„ πŸ‘

                                Frenchy Pilou
                                Is beautiful that please without concept!
                                My Little site :)

                                1 Reply Last reply Reply Quote 0
                                • CadFatherC Offline
                                  CadFather
                                  last edited by

                                  Thank you Master Didier!

                                  1 Reply Last reply Reply Quote 0
                                  • daikuD Offline
                                    daiku
                                    last edited by

                                    Well, that last fix broke it for me. 😞 I like doing one wall at a time, and it now lays them down flat instead of upright. I'm adding walls to an existing framework, so there are planes adjacent to where I'm adding the wall. PS: if I could undo one wall at a time, that would be great - if I make a mistake and undo, I lose all the work I've done with the tool so far. Thanks, CB.

                                    Clark Bremer
                                    http://www.northernlightstimberframing.com

                                    1 Reply Last reply Reply Quote 0
                                    • Didier BurD Offline
                                      Didier Bur
                                      last edited by

                                      Hi,

                                      @unknownuser said:

                                      if I could undo one wall at a time, that would be great

                                      Done. Download it again... πŸŽ‰

                                      DB

                                      1 Reply Last reply Reply Quote 0
                                      • EarthMoverE Offline
                                        EarthMover
                                        last edited by

                                        Didier,

                                        Thanks for the plugin, it's great! Any plans to incorporate a double line function for an arc type tool as well?

                                        3D Artist at Clearstory 3D Imaging
                                        Guide Tool at Winning With Sketchup
                                        Content Creator at Skapeup

                                        1 Reply Last reply Reply Quote 0
                                        • Didier BurD Offline
                                          Didier Bur
                                          last edited by

                                          Why not...

                                          DB

                                          1 Reply Last reply Reply Quote 0
                                          • Mike LuceyM Offline
                                            Mike Lucey
                                            last edited by

                                            Thanks Didier πŸ‘

                                            Support us so we can support you! Upgrade to Premium Membership!

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

                                            Advertisement