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

[Plugin] 2D Tools

Scheduled Pinned Locked Moved Plugins
785 Posts 178 Posters 462.5k 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.
  • T Offline
    thomthom
    last edited by 11 May 2012, 12:56

    I've been looking into LDD - When it's installed pretty much all the base classes is flooded with LDD methods. Even the root Object!!

    Object.ancestors [Object, LDD, Kernel]

    An LDD module is added to the Object class.

    And just the constants that LDD adds:
    LDD.constants ["SKETCH_TOOL", "PI", "GENERAL_CASE_LINES", "LDDEntitiesObserver", "EQUAL_LINES", "PUTS_IN_RUBY_CONSOLE", "CONSTRAINTS_LIMIT", "ENTITY_OBSERVERS", "LDDFaceFaceAngleConstraint", "LDDOptions", "LDD_return_values", "SKETCHUP_VERSION", "LDDVertexVertexDistanceConstraint", "ROTATE_TOOL", "Driving_Dimension", "LDD_constraints_types", "LDDVertexFaceDistanceConstraint", "CAMERA_ZOOM_TOOL", "ARC_TOOL", "LDDModelConstraints", "LDD_constraints_typesVersion_0_2", "Driving_Dimensions_Tool", "LDDFaceInformationForInferredConstraints", "LDDAppObserver", "LDDEdgeEdgeDistanceConstraint", "LDDLabelsObserverForVertex", "LEDAS_DRIVING_DIMENSIONS_BUILD", "INTERSECTING_LINES", "LDDFixationConstraint", "LDDEdgeFaceAngleConstraint", "CAMERA_ORBIT_TOOL", "DRIVING_DIMENSIONS_FIXATION_TOOL_CURSOR", "VERTEX_OBSERVERS", "LDDEdgeLengthConstraint", "LDDModelObserver", "RECTANGLE_TOOL", "LDDPreConstraint", "FULL_LOG", "LDDDrDiTextObserver", "LDDSet", "LDDEmptyConstraint", "DRIVING_DIMENSIONS_CALCULATING_CURSOR", "LDDEdgeEdgePlanarAngleConstraint", "PUSH_PULL_TOOL", "PARALLEL_LINES", "LDDDrDiEntityObserver", "LDDFaceFaceDistanceConstraint", "LDDToolsObserver", "LDD_PRO", "LDDVertexEdgeDistanceConstraint", "MOVE_TOOL", "LEDAS_DRIVING_DIMENSIONS_VERSION", "LDD_DIR", "LDDDataForSketchupModel", "LDDSelectionObserver", "DEG_SIGN", "LDDConstraint", "LDDEdgeFaceDistanceConstraint", "CAMERA_DOLLY_TOOL", "DRIVING_DIMENSIONS_TOOL_CURSOR", "LDDArcCurveRadiusConstraint", "CIRCLE_TOOL", "INTERSECTING_LINES_WITH_COMMON_FACE", "LDDDrDiGroupObserver", "LDDEdgeEdgeAngleConstraint", "LDDObserversHash", "LDDKEY", "OFFSET_TOOL", "Driving_Dimensions_Fixation_Tool"]

    Notice that even a PI constant is added - so now it's available to all classes instead of Math::PI. What a mess...

    LDD really do not play nicely with the shared SketchUp plugin environment at all! 😑 😑

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

    1 Reply Last reply Reply Quote 0
    • C Offline
      chickbiker
      last edited by 30 May 2012, 22:40

      TIG - how does one go about acquiring a copy of your 2D tools? Looks like just the fix I need. Assuming it works with the free version... http://forums.sketchucation.com/posting.php?mode=reply&f=323&t=22091#

      1 Reply Last reply Reply Quote 0
      • M Offline
        mitcorb
        last edited by 31 May 2012, 11:51

        Look at the bottom of the first page of 2D tools thread. At the bottom, see the Attachments box. The plugin is in a zip folder. Right click, save file as.. and place it in your favorite destination folder on your computer. Then unzip it to your Sketchup Plugins Folder.

        I don't know why you inserted that link to a Reply panel. At the bottom left of the Reading Window is a Reply button.

        I take the slow, deliberate approach in my aimless wandering.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Howard leslie
          last edited by 28 Jun 2012, 10:44

          TIG,
          I've noticed that the 2d toolset will occasionally crash SU under the following circumstances.......
          See attached skp.
          Using your 2d Toolset, I'd like to be able to put 2 Fillets on some adjoining linework (3 adjacent lines)
          The linework is not all on one plane. (2 horizontal lines, 1 vertical)
          .......
          first fillet - no problem.
          second fillet (on adjoining lines but different plane)- will crash SU
          ........
          Solution - move reqd lines off to one side and fillet, then put lines back in place.
          I sometimes use this toolset when working on 3d models (even though it was originally designed for 2d work) - its very useful
          ........
          If you have time and could look into this it would be most appreciated.
          .......
          Regards
          Howard L'


          Fillet_Crash.skp

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 28 Jun 2012, 13:55

            Howard

            I can't get it to crash at all !
            It fillets the two nodes in turn without an error [@r=1000mm].
            Also the order that they are picked has no effect either ?
            I'm very puzzled...
            What's you SUp version and OS ?
            πŸ˜•
            Can anyone else manage to get this to fail ?
            If so, how exactly ??
            Testers please... πŸ˜’

            TIG

            1 Reply Last reply Reply Quote 0
            • M Offline
              Michaelv
              last edited by 28 Jun 2012, 17:45

              No problem here, Mac OS and version 5.1(Mac) of tools.
              Tried all combinations of sequences

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dave R
                last edited by 28 Jun 2012, 18:21

                I don't think it's TIG's plugin. The first time I opened the file I got a crash before I'd even tried to do anything with any tool. No idea why it crashed. I opened the file a second time and put in fillets with a 1000mm radius on the original set of lines with no trouble.

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Howard leslie
                  last edited by 29 Jun 2012, 13:03

                  TIG,
                  Thanks very much for your reply
                  .........
                  To answer your question:

                  SU Pro 8.0.11752
                  Windows Vista c/w Svc Pack 2
                  (32 bit PC)

                  Latest version of 2D Tools
                  Text notes inside the #2d.rb file gives the version as

                  v5.0 20100927

                  ..........
                  Really wierd how nobody else can reproduce this bug splat / behaviour
                  Possible clash with another Ruby script ???
                  .......
                  Howard L'

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dave R
                    last edited by 29 Jun 2012, 13:48

                    Howard, you may have hit the nail on the head. You might try to find out by removing other plugins temporarily and trying the fillets.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 29 Jun 2012, 19:36

                      As the title-bar says "v5.2" you could also try upgrading to the latest version...
                      @unknownuser said:

                      v5.1 20111201 Newly reported glitch fixed with 2dLine, so that now pressing the keyboard '0' when typing in a number on a PC it doesn't mistake for TAB >> Z-height!
                      v5.2 20120228 2dFillet segment range adjusted to >=2 <=999.
                      ??? I don't think any of these changes are important BUT you never know πŸ˜•

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Howard leslie
                        last edited by 29 Jun 2012, 21:29

                        TIG,
                        The version of 2D Tools that I have installed is from 2D_Tools52.zip.
                        When I got the bug splats I made sure I had the latest version before reporting any possible bugs.
                        ...........
                        The text I quoted above was from the notes inside the #2d.rb file.
                        I shouldn't have quoted this - its a bit misleading - as I see now that there are many *.rb files inside the zip file that you may have updated on the last release - not just the one.
                        ............
                        If its tricky to track the bug down / reproduce the fault - don't worry about it as I can work round it.
                        However, if I notice anything else, or any other possible leads I'll report it.
                        .............
                        Brilliant plugin by the way
                        ..............
                        Thanks once again

                        Howard L'

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Dave R
                          last edited by 29 Jun 2012, 21:32

                          Did you try removing the other plugins in the Plugins folder and running just 2D Tools? It doesn't appear to be a bug in the 2D Tools set. If it was, there'd be a large number of complaints and that doesn't seem to be the case.

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

                          1 Reply Last reply Reply Quote 0
                          • ninomaydaN Offline
                            ninomayda
                            last edited by 8 Aug 2012, 23:22

                            Superb Tool. A "must" to all SKPrs. Attached please find Xcel sheet to assist calculating text size dependant on final presentation (Layout) drawing scales.


                            Text Height Scale Factor

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Milo
                              last edited by 16 Aug 2012, 16:59

                              Fantastic tools thank you very much !!!

                              FaceBook

                              1 Reply Last reply Reply Quote 0
                              • HelmiH Offline
                                Helmi
                                last edited by 27 Aug 2012, 14:02

                                Thanks for that great tool.

                                Still one question left: I can't seem to decode NNs/NNx/Rad with the 2D polygon and NNs or Rad with the circle. No matter what i enter there it doesn't seem to affect anything. I tried to rise the segments of the circle but can't seem to get it and couldn't find any docs for that?

                                Any help would be highly appreciated.

                                Thanks!

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 27 Aug 2012, 14:26

                                  @helmi said:

                                  Thanks for that great tool.

                                  Still one question left: I can't seem to decode NNs/NNx/Rad with the 2D polygon and NNs or Rad with the circle. No matter what i enter there it doesn't seem to affect anything. I tried to rise the segments of the circle but can't seem to get it and couldn't find any docs for that?

                                  Any help would be highly appreciated.

                                  Thanks!
                                  Please look at the installed toolset there's a help menu/toolbar item... this opens the file inside the ../Plugins/2Dtools/ folder called '2DtoolsHelp.htm'...
                                  There's detailed explanations about using each tool.
                                  If you want to change the number of sides in a Polygon or Circle [in 2Dtools OR the native-tools] typing 99s changes to 99 segments..., typing in a number e.g. 99 sets the radius to that in 'current units' - you could also type 99mm to set it to that, even if the current units weren't 'mm'...
                                  With 2d Polygons the extra option of typing 99x sets the 'width' across edges rather than across vertices...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • HelmiH Offline
                                    Helmi
                                    last edited by 27 Aug 2012, 14:27

                                    Thanks, TIG. Didn't notice that help menu item. Great work, thanks a lot!

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      Ben Ritter
                                      last edited by 19 Sept 2012, 13:21

                                      TIG,

                                      I'm having some bug splat issues while using the fillet tool. I did a clean reinstall of SU8 Pro and slowly started adding in plugins. Well I add your 2D Tools and can only create one fillet to say, a rectangular surface. Once I try filleting a second corner of the rectangle, it bumps me out of SU. Any suggestions?

                                      Thanks. Ben

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 19 Sept 2012, 14:12

                                        Works OK for me - very similar setup.
                                        There might be a clash with another tool making ill-advised changes to base-classes.
                                        Many tools, like fillet, need to make a group etc and manipulate it, so 3rd party tools mess with the Sketchup::Group class and break legit operations...
                                        Possible culprits are SketchyPhysics, DrivingDimensions, Matchbox, SolarPosition, possibly earlier versions of Podium etc... do you have any of these, or other esoteric files loading ?
                                        If so, if you disable them does the crash still happen...
                                        If you have installed one of the older compilation 'toolbar' sets these too can add old Sketchup.rb, extensions.rb files etc into Plugins, when the equivalent new system files are automatically installed by Sketchup in the correct location in the Tools folder ! This can also have subtle effects that mess up unexpectedly... remove those and leave the proper ones in Tools...

                                        Assuming it's still failing...
                                        If you run fillet with the Ruby Console open before doing any filleting do you get any messages; is a 'Bugsplat crash' or a 'hang' etc ?

                                        Are your fillets very large or very small ?
                                        Can you post an example SKP that fails for you, with instructs on the two edges to pick, the radius to use etc... It should work effortlessly.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Ben Ritter
                                          last edited by 19 Sept 2012, 18:12

                                          TIG,

                                          I don't have any of the plugins you mention except for the latest Podium version.

                                          The sample skp file is attached along with the plugins I have installed.

                                          The ruby console did not display anything prior to the crash.

                                          Thanks.


                                          test.skp


                                          plugins.png

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 21
                                          • 22
                                          • 23
                                          • 24
                                          • 25
                                          • 39
                                          • 40
                                          • 23 / 40
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement