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

    [Plugin] Face(s) to group(s)

    Scheduled Pinned Locked Moved Plugins
    11 Posts 7 Posters 21.8k Views 7 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.
    • thomthomT Offline
      thomthom
      last edited by

      Could you please post this as a separate thread? That way it's easier to locate the plugin when it's at the top of the thread. When they are further down in the post list it's very hard to find.

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

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Topic split.

        Gai...

        1 Reply Last reply Reply Quote 0
        • W Offline
          wg19861110
          last edited by

          Think U!I learn more

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

            I noticed this doesn't work with SU 6 because of this line:

            model.start_operation("Face(s) to Group(s)",true)
            

            if you edit it to

            model.start_operation("Face(s) to Group(s)")
            

            leaving out the second parameter it works in SU 6.

            Thanks for the plug, anyway.

            regards

            1 Reply Last reply Reply Quote 0
            • EdsonE Offline
              Edson
              last edited by

              what is a hard edge in sketchup?

              edson mahfuz, architect| porto alegre β€’ brasil
              http://www.mahfuz.arq.br

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

                @daarboven said:

                I noticed this doesn't work with SU 6 because of this line:

                model.start_operation("Face(s) to Group(s)",true)
                

                if you edit it to

                model.start_operation("Face(s) to Group(s)")
                

                leaving out the second parameter it works in SU 6.

                Thanks for the plug, anyway.

                regards

                Right. I have been using this:

                
                if Sketchup.version.to_f < 7.0
                  Sketchup.active_model.start_operation("Operation")
                else
                  Sketchup.active_model.start_operation("Operation", true)
                end
                
                

                It ain't pretty, but it is clear and even explains a little about the reason.

                Hi

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

                  @jim said:

                  @daarboven said:

                  I noticed this doesn't work with SU 6 because of this line:

                  model.start_operation("Face(s) to Group(s)",true)
                  

                  if you edit it to

                  model.start_operation("Face(s) to Group(s)")
                  

                  leaving out the second parameter it works in SU 6.

                  Thanks for the plug, anyway.

                  regards

                  Right. I have been using this:

                  
                  > if Sketchup.version.to_f < 7.0
                  >   Sketchup.active_model.start_operation("Operation")
                  > else
                  >   Sketchup.active_model.start_operation("Operation", true)
                  > end
                  > 
                  

                  It ain't pretty, but it is clear and even explains a little about the reason.

                  Thanks for the tips Jim and Daarboven, I've updated the script to check for this.

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

                    @edson said:

                    what is a hard edge in sketchup?

                    I presumed it was the opposite of a hidden, soft or smooth edge

                    @bentleykfrog said:

                    All Edges Hard: Turns all edges in the selection to unhidden, unsoft and unsmooth (ie a hard edge)

                    If there's better terminology for this I'll update the code.

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

                      @bentleykfrog said:

                      @jim said:

                      @daarboven said:

                      I noticed this doesn't work with SU 6 because of this line:

                      model.start_operation("Face(s) to Group(s)",true)
                      

                      if you edit it to

                      model.start_operation("Face(s) to Group(s)")
                      

                      leaving out the second parameter it works in SU 6.

                      Thanks for the plug, anyway.

                      regards

                      Right. I have been using this:

                      
                      > > if Sketchup.version.to_f < 7.0
                      > >   Sketchup.active_model.start_operation("Operation")
                      > > else
                      > >   Sketchup.active_model.start_operation("Operation", true)
                      > > end
                      > > 
                      

                      It ain't pretty, but it is clear and even explains a little about the reason.

                      Thanks for the tips Jim and Daarboven, I've updated the script to check for this.

                      Thanks for the update, and yes, the version conditional is much more readable!!! If the start_operation method would have default values for the parameters, older versions would have stayed out of trouble πŸ˜‰

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

                        The second argument is optional. It just didn't exist in older versions.

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

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

                        Advertisement