• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] SectionCutFace

Scheduled Pinned Locked Moved Plugins
562 Posts 169 Posters 337.4k Views 168 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.
  • M Offline
    Mithrandir
    last edited by 6 Feb 2016, 15:57

    Hi everyone. Long time user of this plugin here. First up, wanted to say a big thank you to TIG for the plugin. It's really helpful. I wanted to ask something that's been bothering me for a while. Is there any chance a 'quick' version of this plugin could be released? I don't know how to code, unfortunately and I don't know if it's legal to edit someone's plugin. Basically, I'm looking for a version that doesn't have the pop-up dialog box. I'd like the plugin to generate a standard, unlocked face with the default material, on the default SketchUp layer, with all the edges visible without any other additions. It takes some time to adjust the settings in the dialog box, so I think a 1-click version could speed up the workflow. Any hopes?

    1 Reply Last reply Reply Quote 0
    • J Offline
      JQL
      last edited by 7 Feb 2016, 02:39

      As it is you can edit settings in the config file, as mentioned in first post, and once you run the plugin you just press enter once.´

      That's what I do and since recent development, both name and layer get autoassigned. The rest is up to the settings you define in the file above.

      www.casca.pt
      Visit us on facebook!

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mithrandir
        last edited by 7 Feb 2016, 11:37

        Do you mean editing the .rbz file of the plugin?

        1 Reply Last reply Reply Quote 0
        • J Offline
          JQL
          last edited by 7 Feb 2016, 12:14

          @tig said:

          Here's v5.0
          It's now signed for v2016 full compatibility.
          The customize-able Constants [COLORS-list and various starting defaults] are now supplied in an editable '.constants' file within its subfolder.
          There are now several more locale .strings files.

          The main changes are that the dialog now lets you choose the layer for the SectionCutFace -
          either the Section's layer,
          or a unique SCUT-nnnnnn layer,
          or a 'Customized' layer [you type in a name],
          or any other layer available in the model.

          It also now lets you choose the SectionCutFace's name - as either as its Layer-Name or a 'Customized' name [you type in a name].

          Sorry this is the right post and the following is what you should be focusing in:

          @unknownuser said:

          The customize-able Constants [COLORS-list and various starting defaults] are now supplied in an editable '.constants' file within its subfolder.

          The idea is to search for you plugin folder and edit the file *.constants with notepad (instructions are inside the file). That way, the default options you get when running the plugin are what you choose them to be.

          You can then run the plugin and hit enter immediatelly and be sure it does what you want without you manually have to change options.

          www.casca.pt
          Visit us on facebook!

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mithrandir
            last edited by 7 Feb 2016, 13:36

            ###
            ### Customizable list of the dialog's initial defaults...
            ### Do NOT edit anything to the left of the =
            Color="<#{DEFAULT}>" ### Note - this MUST be in the COLORS listed above...
            Keep=YES ### =YES or =NO - Note MUST be in CAPS
            Hide=NO ### =YES or =NO - Note MUST be in CAPS
            Lock=NO ### =YES or =NO - Note MUST be in CAPS
            Glue=NO  ### =NO or =YES or =ONDEMAND - Note MUST be in CAPS
            Layer="<#{SLAYER}>" ### i.e. ="<#{SLAYER}>" to use Section's Layer, or use =SCUT for new unique Layer, or use ="<#{CUSTOM}>" for a Customized New Layer, or use =nil for Choose Layer
            Naming="<#{AFTER}>"  ### i.e. ="<#{AFTER}>" to use the Section's Layer, or use ="<#{CUSTOM}>" for a Customized Name
            ###
            ### Change Inset of the Section-cut from the SectionPlane.
            ### default 0.1 [Note it's in mm - do NOT add units] - 
            ### Change it if the Section-cut isn't showing at the SectionPlane [Graphics-Card issue].
            Inset=0.1
            ###
            

            Done it! Now I don't have to go through the settings. Thanks a lot for the help JQL!

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 7 Feb 2016, 13:37

              As JQL says, in the newer versions you can edit the SCF .constants file.
              This sets up the Color list and other dialog initial defaults.
              If you open that file using Notepad(++) there are instructions in the file itself on what can be edited.
              You can then set it to default to whatever you want in every SKP you open.
              Run the tool and press enter for OK without recourse to any setting changes.
              The reason the .constants file was added was that previously these were in a separate [editable] RB, but v2016 signing doesn't allow you to mix RB and RBS files in the same RBZ !
              Also if certain file-types [like RB] are edited in any way the hash signing is broken and in v2016 its 'security' status is compromised.
              You can however edit a .constants file-type without any bad affects on the 'security' in all versions of SketchUp, as that file-type is not included on the hash set up.
              Also the RBS code that reads those values in has a strict list of items to read in from that file, so in that way some 3rd-party idiot adding malicious content into there is also prevented from from execution.
              The only downside thus far is that when reinstalling a newer RBZ the .constants file is refreshed, and so it will need re-editing [but you can make a backup copy inside the folder, which with survive the reinstallation, then you just need to rename etc !]

              TIG

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mithrandir
                last edited by 7 Feb 2016, 14:13

                Thanks for the info TIG! 👍

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bmike
                  last edited by 8 Feb 2016, 20:53

                  Great Update TIG! Love the naming options. Thanks!

                  mike beganyi design + consulting llc

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JQL
                    last edited by 8 Feb 2016, 23:34

                    Well Tig, I don't know how to say this, but I have yet another feature request, that I guess would make SCF more than perfect... 😳

                    Would it be hard for you to have SCF group's axis parallel to the section plane?

                    If our section plane is orthogonal to world axis, their group's axis are fine, if our sections are not orthogonal, the axis are not not coplanar with the face inside.

                    This seems minor (and indeed it is) but I use section cut faces for 2D drafting inside sketchup and I often have sections wich are not parallel to world axis. When I need to, I change axis with the axis tool, so I know how to deal with that, however it would be cool to turn a section into an autocad drawing clone with 2D axis set to go.

                    If you'd let me choose, I'd like axis to be 2D with the section face, wich would mean:

                    • X to the right;
                    • Y pointing up;
                    • Z would result to be on the reversed normal of the section (pointing against the sections arrows)

                    http://i.imgur.com/SCRforO.gif

                    I also use these newly set axis to correct whole section groups, or parts of sections wich I have remodeled but I don't want to redo the whole section cut face I've been working on.

                    Here's an example gif:

                    http://i.imgur.com/734uhyt.gif

                    www.casca.pt
                    Visit us on facebook!

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bmike
                      last edited by 10 Feb 2016, 15:40

                      Hi Tig -

                      I'm having an issue with 5.1:

                      When I 'Remake Section Cut Face' it doesn't fill the section and it creates a new object on Layer 0, despite having selected the option to name it after the layer when I first created the cut.

                      I'm going to try and delete all related files from my PlugIn folder and re-install from a download.

                      mike beganyi design + consulting llc

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bmike
                        last edited by 10 Feb 2016, 15:48

                        @bmike said:

                        Hi Tig -

                        I'm having an issue with 5.1:

                        When I 'Remake Section Cut Face' it doesn't fill the section and it creates a new object on Layer 0, despite having selected the option to name it after the layer when I first created the cut.

                        I'm going to try and delete all related files from my PlugIn folder and re-install from a download.

                        No luck, deleted manually and re-installed from the SKF store, same problem persists.

                        -Mike

                        mike beganyi design + consulting llc

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          JQL
                          last edited by 10 Feb 2016, 15:59

                          That usually happens if you made the original section on Layer0.

                          Instead of Remaking the section try Making a new section. From then on you can Remake it and it will keep those values.

                          www.casca.pt
                          Visit us on facebook!

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bmike
                            last edited by 10 Feb 2016, 18:34

                            @jql said:

                            That usually happens if you made the original section on Layer0.

                            Instead of Remaking the section try Making a new section. From then on you can Remake it and it will keep those values.

                            I didn't make the original section on Layer 0....

                            Screen Shot 2016-02-10 at 1.35.49 PM.png

                            Screen Shot 2016-02-10 at 1.36.18 PM.png

                            mike beganyi design + consulting llc

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 10 Feb 2016, 18:56

                              Either set the Section-Plane to have the desired layer and set the SectionCutFace's layer to be '<Section's Layer>' so they always match - or pick '<Customized>' and in the dialog type in the existing layer-name e.g. S-81 - which is then frozen.
                              Then when you remake it, then it always uses that customized-name.

                              Picking from the list of 'all' layers is only really useful for the 'No' - Non-update-able - SectionCutFaces - which are of course frozen and not re-makeable.
                              But having the list available for all SectionCutFaces types, at least lets you see what layers names already exist, to then use in '<Customize>'...

                              For the two types of remake/update-able SectionCutFaces... the 'frozen' layer-name choices are:

                              '<Section's Layer>' - where the Section-Plane's layer-name is used across remakes; and only changes if you have reassigned the Section-Plane's layer, in which case when you remake it, its layer is changed to match... So a simple fix is to reassign the Section-Plane to say S-81 and then when remade the SectionCutFace will also have that layer.

                              'SCUT...' - where that specific initially assigned layer-name is retained across all remakes.

                              '<Customized>' - where that initially chosen layer-name is retained across remakes.

                              If you simply recreate either of the two update-able SectionCutFace types, by using 'Add...' it will replace the previous one, using whatever options you choose - a remake-able SectionCutFace is only one per Section-Plane - unlike a 'No' update type which can have several SectionCutFaces associated with it.

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                bmike
                                last edited by 10 Feb 2016, 23:56

                                Thanks Tig. Will test tomorrow.

                                mike beganyi design + consulting llc

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wiskill
                                  last edited by 16 Feb 2016, 01:50

                                  I can't get the section cut faces to update on demand nor auto update. Not sure what I'm doing wrong.

                                  Here's a video to show the problem.

                                  Whenever I try to update the section cut (or have it auto-updated) it results in a blank cut lines with no faces that doesn't get put in its layers properly.

                                  edit: After multiple retries, with any/either options enabled/disabled or named unnamed sections and everything. I can't get the section face to auto update or update on demand no matter what I do.

                                  Here's a video: https://youtu.be/wYZZQCZ1zTc

                                  From a cleanly new file, I make a simple cube, try to make a section face with only 1 option changed, copy the cube over, remake the face and it won't update properly. All it does is create a new group in layer 0 with just the outline of the cuts. It won't update the layer, it won't make a face, and when I choose remake face again, it just keeps making a new group with the outline again.

                                  Right now when I want to remake a section face, I will always have to delete the old face, THEN make a new one.

                                  I've tried uninstalling sketchup 2014 and 2015, and using leaving only 2016 on my pc. I've tried deleting the plugin folder and reinstalling, and the problem still persists.

                                  I'm totally stumped. Any help appreciated.

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    davidheritier
                                    last edited by 16 Feb 2016, 15:39

                                    Really really good job!!! THx!!!!

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 16 Feb 2016, 19:58

                                      @wiskill

                                      Obviously you are "doing something wrong".
                                      Many others with the same OS and SUp version have no issues.
                                      Different versions of SketchUp NEVER interact, so you don't need to worry about other versions.

                                      Your video is puzzling, since I do the exact same steps, with the exact same set up, AND it refreshes the SectionCutFace as I might hope...

                                      Can you open the Ruby Console before doing anything and see if there any error messages...

                                      Can you also provide a list of all other extensions you have loading...
                                      There might be a [very rare] clash...
                                      😲

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        wiskill
                                        last edited by 17 Feb 2016, 03:34

                                        Here's the error message in from the ruby console.

                                        Error; #<TypeError; no implicit conversion of Sketchup;;Layer into String>
                                        c;/users/wisarut/appdata/roaming/sketchup/sketchup 2016/sketchup/plugins/sectioncutface/sectioncutface_code.rbs;121;in `name='
                                        c;/users/wisarut/appdata/roaming/sketchup/sketchup 2016/sketchup/plugins/sectioncutface/sectioncutface_code.rbs;121;in `new'
                                        c;/users/wisarut/appdata/roaming/sketchup/sketchup 2016/sketchup/plugins/sectioncutface/sectioncutface_start.rbs;63;in `block (2 levels) in <module;SectionCutFace>'
                                        SketchUp;1;in `call'
                                        

                                        Here's a video showing the error: https://youtu.be/mro1VSwkTBw

                                        I think I don't have any other extensions installed. I used to have LibFredo6 and FredoScale and JointPushPull installed for Sketchup 2015, but when I moved on to Sketchup 2016, I didn't reinstall it as I wasn't using it that much.

                                        Just a short note, I have 2 pcs, (1 desktop and 1 ultrabook) and the problem persists on BOTH machines.

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 17 Feb 2016, 12:37

                                          @wiskill

                                          Thanks for the message and video.
                                          I have managed to replicate your issue.
                                          I am working on a solution...

                                          😲

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 19
                                          • 20
                                          • 21
                                          • 22
                                          • 23
                                          • 28
                                          • 29
                                          • 21 / 29
                                          21 / 29
                                          • First post
                                            416/562
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement