• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] Slicer5

Scheduled Pinned Locked Moved Plugins
336 Posts 82 Posters 296.3k 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.
  • L Offline
    lapx
    last edited by 10 Jan 2012, 16:25

    Yes, labeling and aligning would be useful tools.
    Fantastic work Tig!

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 10 Jan 2012, 16:53

      Here's v5.9 http://forums.sketchucation.com/viewtopic.php?p=374969#p374969

      Please [re]read the Usage Notes - it has several changes and additions...

      The Exporter is now a separate tool, there are now no prompts after Slicing, it must be run separately later on.
      If Axis==X/Y/Z/A and Thickness==Spacing then new option to add 'Outline' [OLIN group] from the adjacent Slice, it helps in assembling the real 3d pieces.
      If Exported DXF includes an OLIN then those are put onto a layer 'OLIN' which can be used for 'etching' an outline [like Text].
      If a Slice has manually added circular holes <12mm diam then these are also put on their own DXF layer, 'CIRC'.
      Exported PNGs now made 2x viewport size for sharpness.
      Exported PNGs from a Flattened set containing a FLAT2 are now consistently sized, based on the maximums of BOTH FLAT sets and guide-points are shown at TR/BL/CT. Shadows are now automatically set 'off' when making the PNGs.
      An 'RZ' option has been added, to make Radial Slices intersecting, and potentially slotted, with 'Z' Slices.
      Glitches with Spacing/Spaces dialogs resolved.

      ๐Ÿค“


      CaptureRZ.PNG


      CaptureContours+OLIN.PNG

      TIG

      1 Reply Last reply Reply Quote 0
      • B Offline
        Ben Ritter
        last edited by 10 Jan 2012, 18:15

        TIG, thank you again! ๐Ÿ‘

        1 Reply Last reply Reply Quote 0
        • L Offline
          lapx
          last edited by 12 Jan 2012, 23:46

          Thanks TIG!

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 14 Jan 2012, 16:28

            Here's v5.10 http://forums.sketchucation.com/viewtopic.php?p=374969#p374969

            Please re-read the Usage Notes... it has 2 major new tools added.

            'Slicer5 Slotter': after manual relocation or resizing/shaping of [non-Slotted] Slices in dual-axis 3d SLICES set, it does Slotting of the sets' Slices [reflected in the FLAT sets]; useful if you want to have some narrower or angled 'slats' etc. This offers considerable flexibility in allowing adjustments of non-slotted forms and the individual slices, which can then all be Slotted together later - see Usage Notes...

            'Slicer5 Audit': checks 3d SLICES set against the FLAT set; also Text-tags [if any] are updated to reflect the Slice's current name [useful if you have manually copied a Slice (say '1234-X001') and then used 'Make_Unique' on it to make a new Component (say '1234-X001#1') and edited its form etc, because the Text-tag will not now reflect that Slice's new name]; all
            changes reported at end in an Audit_Report txt file.
            The Audit also runs before any Export and stops it if any significant errors are found; to allow you to consider the implications - see Usage Notes...

            There are also some minor adjusts to dialogs' text, layout glitches etc.Capture.PNG

            TIG

            1 Reply Last reply Reply Quote 0
            • O Offline
              Oxer
              last edited by 15 Jan 2012, 20:16

              The first, thanks for the plugin, but on Mac when you select "Add References? -->Yes" the plugin doesn't work, if you select ---> No the plugin works fine.
              This is the Console error message:
              Console Error

              I don't know if there is a conflict with other plugin, i'm going to uninstall other plugins, later i inform you.

              "The result is the end what is important is the process" by Oxer
              [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 15 Jan 2012, 20:50

                The failure is because the group of text doesn't seem to exist ๐Ÿ˜•
                It creation might be failing because you don't have a ttf Font called 'Txt' on your MAC ?
                On a PC if the specified Font is missing then the last used 3d-Font is substituted - e.g. 'Arial'.
                To see if it's this I've provided a 'Txt' .ttf Font in this zip file... txt_____.zip...extract it and put it into your system Fonts folder... and see if that then works... ๐Ÿค“

                If it doesn't... can you try this manual 'equivalent' for me.
                Open a new empty SKP.
                Copy/Paste + <enter> into the Ruby Console, each of these lines in turn...
                gp=Sketchup.active_model.active_entities.add_group() txt="X001" gp.name=txt tgp=gp.entities.add_group() tgp.name="TEXT" tht=50.mm tgp.entities.add_3d_text(txt,TextAlignLeft,'Txt',false,false,tht,0,0,false,0) tm=tgp.bounds.min
                You should end up with a group called 'X001', which contains a group called 'TEXT', that in turn contains the 'flat' 3dText 50mm high, saying 'X001', and return the minimum bounds corner {[0,0,0]?} ???
                Report what happens at each step... ๐Ÿ˜•
                If it fails at all please try this in for the last but one line of code...
                tgp.entities.add_3d_text(txt,TextAlignLeft,'Arial',false,false,tht,0,0,false,0)
                As you should have always 'Arial.ttf' ?
                ๐Ÿ˜’

                TIG

                1 Reply Last reply Reply Quote 0
                • O Offline
                  Oxer
                  last edited by 15 Jan 2012, 21:00

                  Ok TIG, i'm going to probe these solutions, later i'll inform you of the results.

                  "The result is the end what is important is the process" by Oxer
                  [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    Oxer
                    last edited by 15 Jan 2012, 21:05

                    Fantastic, the plugin works now with References. The problem was that i haven't installed the Font "txt.tff"
                    Thanks TIG for your quick reply. ๐Ÿ‘

                    "The result is the end what is important is the process" by Oxer
                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      Oxer
                      last edited by 15 Jan 2012, 21:08

                      I have translated the last version of the plugin to spanish language, if you want i can upload the translation here.

                      "The result is the end what is important is the process" by Oxer
                      [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 15 Jan 2012, 22:45

                        @oxer said:

                        :berserk: Fantastic, the plugin works now with References. The problem was that i haven't installed the Font "txt.tff"
                        Thanks TIG for your quick reply. ๐Ÿ‘
                        OK - I'll add that font to the main download in case any other MAC users have the issue... ๐Ÿ˜„
                        As far as the translation goes... I've no plans to translate [deBabelize] it... not yet... BUT if you want to post your translation strings, then I can use them when I do [for v5.11+ ?] ๐Ÿ˜•

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 15 Jan 2012, 23:02

                          I have now added the 'Txt' ttf font in a zip file onto the end of the main download page... read the notes with its link, if you want to download it...
                          zip http://forums.sketchucation.com/download/file.php?id=81087
                          on page http://forums.sketchucation.com/viewtopic.php?p=374969#p374969

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • O Offline
                            Oxer
                            last edited by 16 Jan 2012, 00:00

                            @tig said:

                            As far as the translation goes... I've no plans to translate [deBabelize] it... not yet... BUT if you want to post your translation strings, then I can use them when I do [for v5.11+ ?] ๐Ÿ˜•

                            I have translated the rb files but if you want i can create the deBabelize file with spanish language for futures updates.
                            Thanks again!!

                            "The result is the end what is important is the process" by Oxer
                            [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 16 Jan 2012, 00:52

                              Oxer

                              Thanks, but language version of each update become unwieldy.
                              Please don't post an ES version of the .rb file !
                              For future deBabelizer integration I need a ES.lingvo file***
                              I can adjust the file name to suit.
                              I'll also make the initial matching EN-US.lingvo from scratch anyway...
                              I think you know the format for the lingvo files IF you want to make one.
                              A word or phrase on each line thus:
                              The cat.<==>El gato. A dog.<==>Un pero.
                              When deBabelizing the strings I often adjust the actual code's strings anyway, so you need not be too pedantic about every last 'palabra'...
                              ๐Ÿ˜‰
                              ***I might be able to get the thing deBabaleized next week so if you want to simply PM me your translated .rb file, it would save you making the ES.lingvo at all... ๐Ÿ˜ฎ

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • O Offline
                                Oxer
                                last edited by 16 Jan 2012, 01:15

                                @tig said:

                                ***I might be able to get the thing deBabaleized next week so if you want to simply PM me your translated .rb file, it would save you making the ES.lingvo at all... ๐Ÿ˜ฎ

                                OK, i send you the rb files for PM.

                                "The result is the end what is important is the process" by Oxer
                                [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 16 Jan 2012, 20:05

                                  Here's v5.11 http://forums.sketchucation.com/viewtopic.php?p=374969#p374969

                                  There are several minor adjustments to dialog and status-bar text etc.
                                  The tool is now fully 'deBabelized' into other languages [requires deBabelizer.rb to be in the Plugins folder, this file is included in the archived set you download]; various lingvo files are included in this tool's subfolder. These lingvo files [except the ES one which has already been edited by Oxer (thanks!)] will need some "improvements", please post your suggested improved lingvo file, OR even a brand new lingvo file for your own locale... Over time they'll get incorporated into new update sets...
                                  The 'Txt.ttf' Font [zipped] is now added to the available downloads in the first post [for those of you who still need it!]...
                                  Also the soon-to-be-deprecated 'PLATFORM' is now replaced by 'RUBY_PLATFORM' for cross-platform compatibility.

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • O Offline
                                    Oxer
                                    last edited by 16 Jan 2012, 23:44

                                    You're rapid like a ray, thanks again TIG. ๐Ÿ‘

                                    "The result is the end what is important is the process" by Oxer
                                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 18 Jan 2012, 16:49

                                      @miki71ita said:

                                      hi TIG!... I downloaded the last version 5.11 and....You wrote 'The best Plugin all over the world!!!' for me!!! ๐Ÿ˜
                                      But I use the old 5.5v!.. And I'd like to know a tip... Your script (5.5v) makes the menu: 'Plugins' and the item: 'Slicer5' inside it.
                                      How can I simulate the press of this item by ruby code to start your script from my small personal script, without using manually the mouse click on it?.. Tanks a lot and good job!!! ๐Ÿ‘
                                      To make a shortcut key that works for any tool [even scripts] you simply open Window > Preferences > Shortcuts, filter for 'Slicer' [or whatever it is called in your locale if you have the more recent deBabelized version]. The available list of tools will be reduced to just those containing 'Slicer'. Pick the one you want and assign a shortcut key to it.
                                      Don't use numbers as they are used for inputting lengths etc, and some others are already used like S for Scale and Ctrl+S for Save. Repeat if you want to add other shortcuts to other tools... OK to close and try your shortcut - if you don't have a suitable selected group etc the error message should be the same if if you ran it from a Plugins-menu item or Slicer5-toolbar button click. ๐Ÿค“

                                      PS: Why haven't you upgraded to v5.11 ? It is more stable has a few minor issues fixed AND offers several new/improved tools, like Slotter and Audit...
                                      ๐Ÿ˜•

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 18 Jan 2012, 18:01

                                        @miki71ita said:

                                        OK thanks for Tip, but I'd like to launch your script from ruby code into my small script....
                                        maybe exist a SU ruby command to select and virtually push a specific button inside the Slicer5's Toolbar...? or to select your script from Plugin menu.....?? or something similar..! ๐Ÿ’š ๐Ÿ˜ณ
                                        Read the first part of the module in TIG-Slicer.rb and see how the commands are called for the menus and toolbar-buttons.
                                        Simply replicate those in your own code e.g.
                                        cmd=UI::Command.new(S5){self::Slicer.new()}
                                        where you do
                                        S5="Slicer5_inside_my_code" cmd=UI::Command.new(S5){**TIG::Slicer.new()**}
                                        make sure that it loads after Slicer.rb has loaded by naming if after it alphabetically OR include require 'Slicer.rb' at the start of your code.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 19 Jan 2012, 09:17

                                          I did embolden the 'important part':
                                          **TIG::Slicer.new()**
                                          If you type/copy+paste that in the Ruby Console you'll see it starts 'Slicer5'.
                                          If nothing is selected it produces the same error message as running it from the menu or the toolbar might.
                                          So your own code either needs to ensure something suitable [i.e. ONE 'solid' group/component] is selected when it gets to that line of 'Slicer' code, or just before that line you need to use something like:
                                          Sketchup.active_model.selection.clear Sketchup.active_model.selection.add(object)
                                          which will ensure that the group/component-instance which the reference ' object' points to is the only thing selected when the 'Slicer' code kicks in... ๐Ÿค“

                                          TIG

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

                                          Advertisement