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

    Double Line 2 (dline.rb update)

    Scheduled Pinned Locked Moved Plugins
    52 Posts 15 Posters 16.2k Views 15 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

      @jim said:

      @tig said:

      I have seen it discussed in various places - I've added it to the Tool's API notes...

      Link?

      Y'know... I don't recall... BUT I have been avoiding using onKeyDown for TAB-key for MAC compatibility for ages by using onKeyUp key==9 etc... I even teach it to my students πŸ˜’
      I've search my usual haunts... and not found a link but there must be something somewhere as I can't have dreamed up the problem alone...
      It seems to have been raised around here http://forums.sketchucation.com/viewtopic.php?p=273542#p273542 Jeff was also involved and Fredo? ...

      TIG

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

        @jim said:

        I don't see any note.

        It's currently the first item in the User Notes list [~5 hours ago] - are your pages cached ? Try refreshing them...

        TIG

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

          @jim said:

          Updated to fix Tab issue and correct start_operation for version 6+
          http://forums.sketchucation.com/viewtopic.php?f=323&t=33875

          Jim
          When you link back to something you need to get the link from the 'small-file-square' below the post's title Capture.PNG that way you link to the very page, not the thread itself... http://forums.sketchucation.com/viewtopic.php?p=297720#p297720 works
          http://forums.sketchucation.com/viewtopic.php?f=323&t=33875 does not.

          TIG

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            Of course it works. I'm not sure what problem you are having.

            Hi

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

              @jim said:

              Of course it works. I'm not sure what problem you are having.

              No - these link to different posts...
              Click on the two I gave to see the difference.
              If you have your posts sorted in chronological order it looks the same [at least initially] because the first post is at/near the top BUT if you sort in reverse order, like I do, so that the most recent posts are shown first then the initial download thread is not accessed by the click as it's by now on another page... πŸ˜•
              In passing... I not that you latest version of dline2 missed a 'start_operation' around line #287 so it's still not v6 compatible... πŸ˜’
              It's effectively defining 'double-click' to be taken as 'enter' - I note that ones 'Double ligne' and the others 'Double line' are also probably typos left over from Didier...

              TIG

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                Well, that different than "not working." I see your point.

                Hi

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

                  @jim said:

                  Well, that different than "not working." I see your point.

                  It 'wasn't working' because it wasn't 'linking to the post' but rather linking directly to the thread itself which was somewhat redundant as you were linking from within it already - not the desired result I must assume... πŸ˜‰

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    @tig said:

                    In passing... I not that you latest version of dline2 missed a 'start_operation' around line #287 so it's still not v6 compatible... πŸ˜’
                    It's effectively defining 'double-click' to be taken as 'enter' - I note that ones 'Double ligne' and the others 'Double line' are also probably typos left over from Didier...

                    I only intended to add some user-interface niceties such as persistent options for selfish reasons, and didn't look too closely at the other parts of the script. I did add version checking to the other start_operation, thanks.

                    Download link in first post. http://forums.sketchucation.com/viewtopic.php?f=323&t=33875#p297720

                    Hi

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

                      Your download link isn't working for me again [ http://forums.sketchucation.com/viewtopic.php?f=323&t=33875#p297720 viewtopic.php?f=323&t=33875#p297720 ]
                      It should be http://forums.sketchucation.com/viewtopic.php?p=297720#p297720 viewtopic.php?p=297720#p297720 ???
                      What do you get if you copy the link from the 'square' as I suggested earlier ?

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        @tig said:

                        whilst I am sure that there are very 'good reasons' for your suggested approach, I can still see little benefit to me personally to break a habit of a lifetime and actually do things 'properly' πŸ˜’

                        I might have to take your attitude on this one. πŸ˜†

                        http://forums.sketchucation.com/viewtopic.php?f=323&t=33956#p298681

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • simon le bonS Offline
                          simon le bon
                          last edited by

                          Thank you so much to both of you Dear Tig and Jim.

                          Double line works now "like a charm" in V6 πŸ‘ πŸ‘

                          +simon

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

                            Yes works fine in v6 β˜€
                            cubi.jpg

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

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by

                              @tig said:

                              @jim said:

                              No one really responded when I asked the question about begin-rescue clause with start_operation. Probably a poor choice for a topic sentence on my part.
                              http://forums.sketchucation.com/viewtopic.php?f=180&t=22338

                              Great minds think alike... fools never differ...
                              I agree that this begin-rescue way is less prone to error like your .version v. .version_number typo which screwed Pilou's v6...

                              I'm sticking with the explicit version check because it is self-explanatory. The reader can understand from the code that something has changed in SketchUp version 7.0.

                              The begin-rescue clause is cryptic, and doesn't explain anything.

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                JerryD5150
                                last edited by

                                I have downloaded and installed the original dline plugin on Sketchup 8 Pro and it seems to work fine. I have installed it on Sketcup 8 free version and it does not show up in the Draw tab. Is this plug in good only on Pro or should it work in the free version?

                                Also....
                                I have also installed the dline2 plugin and when I try to use it the settings window does not open up when I select it from the Draw menu like it did on dline.
                                Help me out someone!

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

                                  Hi,

                                  The trick is to press the TAB key anytime you want to set new parameters for your "walls". It's an enhancement by J. Foltz but I forgot to display it in the status bar.
                                  I've published a patch for dline2 on SU8 here: http://rhin.crai.archi.fr/rld/plugin_details.php?id=804

                                  Regards,
                                  dline2.jpeg

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    hebeijianke
                                    last edited by

                                    @didier bur said:

                                    Hi,

                                    The trick is to press the TAB key anytime you want to set new parameters for your "walls". It's an enhancement by J. Foltz but I forgot to display it in the status bar.
                                    I've published a patch for dline2 on SU8 here: http://rhin.crai.archi.fr/rld/plugin_details.php?id=804

                                    Regards,
                                    [attachment=0:3j3upq39]<!-- ia0 -->dline2.jpeg<!-- ia0 -->[/attachment:3j3upq39]

                                    It is not work
                                    undefined method `file_loaded?' for main:Object

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

                                      Hi,
                                      Don't know why it doesn't work on your side.
                                      Workaround: open dline2.rb in a text editor, replace the four last lines with these:

                                      #Menu
                                      #if( not file_loaded?("dline2.rb"))
                                          UI.menu("Draw").add_item("Double Line") { Sketchup.active_model.select_tool(Bur;;Dline_Tool.new) }
                                      #end
                                      #file_loaded("dline2.rb")
                                      

                                      DB

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

                                        @hebeijianke said:

                                        It is not work
                                        undefined method `file_loaded?' for main:Object

                                        @didier bur said:

                                        Hi,
                                        Don't know why it doesn't work on your side.
                                        Workaround: open dline2.rb in a text editor, replace the four last lines with these:

                                        Because the plugin doesn't require sketchup.rb - which is required for file_loaded? to work.
                                        Other users probably had plugins that loaded before this plugin that required the file and therefore the bug has not been noticed.

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

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

                                          Thanks TT, I was not aware of that. It is fixed (at least on RLD because I cannot edit Jim's post πŸ˜‰).

                                          DB

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dmorong
                                            last edited by

                                            This plugin does not show up on my mac version. No load error, no selection in the menu.
                                            I have tried it in both plugin folders
                                            Any suggestions?

                                            Thanks

                                            David

                                            Macbook Pro 16" (M1)
                                            Mac 12.1
                                            Sketchup 22.0.353

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

                                            Advertisement