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

    [plugin] Rotated Box [updated 30-Mar-2014]

    Scheduled Pinned Locked Moved Plugins
    69 Posts 21 Posters 32.5k Views 21 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.
    • sdmitchS Offline
      sdmitch
      last edited by

      OK, any other users think this is problem or desired feature?

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

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

        @sdmitch said:

        OK, any other users think this is problem or desired feature?

        I haven't used the tool, but common convention for tools is to create the entities they create within model.active_entities instead of model.entities. It also allows for the best flexibility. Since it is the convention with the native tools and pretty much all custom tools it is confusing if the geometry is created in a different context.

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

        1 Reply Last reply Reply Quote 0
        • brookefoxB Offline
          brookefox
          last edited by

          @sdmitch said:

          OK, any other users think this is problem or desired feature?

          From the peanut gallery, if the choice is to create within or outside of the current group, I'd say within would be preferable for me.

          Thanks for asking.

          ~ Brooke

          1 Reply Last reply Reply Quote 0
          • T Offline
            the.pjt
            last edited by

            wow .... thanks thomas .. thanks ... I did it ... hey smitch , Idid it ... I'm not stupid ...

            I'm not a ruby master , all I know is to know how to change UI parts of o code .... but thanks thomthom ...
            thanks for key knowledge (active_entities)
            I changed the " @ent = @mod.active_entities " parametr of this code in the "def initialize " part of it
            and it works ... now it creates the box inside active groups ...
            thanks ..

            dear sdmitch ... I think It could much easier for you ( as a ruby master ) to do that little changes ( just a few charecters : active ) easeir than teaching me how to "cut and paste " ... πŸ˜„ ... and tou could make us happy with this little change ...

            but ... dear sdmitch ,thanks for all of coding you done.. all 282 line . and thanks a lot for making this great plugin and Fulfilling a request from a user ... thanks for all Sam πŸ˜„ .. thanks for the time that you spent for me

            download my edited version ... πŸ‘Ž
            Rotated Box.rb
            thanks agane thomthom ...
            please delet this post if there is any copyright issue ... πŸ˜‰

            1 Reply Last reply Reply Quote 0
            • T Offline
              the.pjt
              last edited by

              I have updated this loader plugin with lastest versions of sdmitch's plugins πŸ€“

              β˜€ plus my little tweaks : the box now creates the group inside the current active group

              http://forums.sketchucation.com/viewtopic.php?t=45923#p410167

              download the last version here : πŸ‘Ž

              3Pts_Tools.rbz

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

                the.pjt or sdmitch.
                This change does not work in my pc. I use sketchup 8 and windows xp sp3.
                You can correct this error? really very useful tool

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

                  @jorge2011 said:

                  the.pjt or sdmitch.
                  This change does not work in my pc. I use sketchup 8 and windows xp sp3.
                  You can correct this error? really very useful tool

                  Can you explain what "doesn't work" please? Do you get error messages or just unexpected results?

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

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

                    does not work, create the geometry inside a group. Or create a group inside another group

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      the.pjt
                      last edited by

                      @jorge2011 said:

                      the.pjt or sdmitch.
                      This change does not work in my pc. I use sketchup 8 and windows xp sp3.
                      You can correct this error? really very useful tool

                      maybe becouse of I'm not a programmer ,I am just a newbie ... It works well on my ms win 8 ,SU 8 M3 .... I don't have any apple device .. 😞 ... so maybe it doesn't work on mac , I don't know
                      and ... It could be better if the author have modified it , not me ... I think he dislikes me πŸ˜„ ..

                      dear ThomThom .. Or MR sdmitch .... is it posible to check my editings ? ? I will welcome ...
                      thanks a lot ... πŸ˜‰

                      all of thing that I have done is : just changing line 32 (notepad++)
                      old :

                      
                      class RotatedBox
                      def initialize 
                      @mod = Sketchup.active_model
                      @ent = @mod.entities
                      
                      

                      new

                      
                      class RotatedBox
                      def initialize 
                      @mod = Sketchup.active_model
                      @ent = @mod.active_entities
                      
                      

                      and then it creates every thing in active group ... am I wrong ?

                      1 Reply Last reply Reply Quote 0
                      • Rich O BrienR Offline
                        Rich O Brien Moderator
                        last edited by

                        @the.pjt

                        Can you respond to the PM I sent regards this in-post plugin uploading?

                        Download the free D'oh Book for SketchUp πŸ“–

                        1 Reply Last reply Reply Quote 0
                        • sdmitchS Offline
                          sdmitch
                          last edited by

                          @jorge2011 said:

                          does not work, create the geometry inside a group. Or create a group inside another group

                          The change the.pjt made will only add the current box to a group if you have the group open for edit it does not open the group automatically. It should have no effect on whether or not the current box is created as a group or not. That will still depend on grouping being On or Off.

                          Nothing is worthless, it can always be used as a bad example.

                          http://sdmitch.blogspot.com/

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

                            sdmitch, sorry, I do not understand your explanation. my English is not good.

                            You can create a group inside another group, or a grometria within a group or component?
                            You can add this feature?

                            thank you very much for your kindness and your time

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

                              If I might interject. πŸ€“
                              All native and most 3rd-party tools add new geometry etc into the "current context" [ model.active_entities] - even if the added 'object' itself is a group of new geometry.
                              To always force new stuff into model.entities as its context will be very confusing, unless the two entities' contexts are not the sample.
                              So if you are editing a component or a group and you use this tool to add a 'box' then the newly made object will currently then be added outside of the current context... which is not what you'd expect at all - e.g. if you draw a 'line' it's added inside the context, not outside in the model.entities πŸ˜’
                              It IS a very simple adjustment to the code to make these tools intuitive in the way it adds its geometry like the native tools...
                              πŸ€“

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • sdmitchS Offline
                                sdmitch
                                last edited by

                                For all of you who have been anxiously awaiting the change of mod.entities to mod.active_entities, your wait is over and Version 1.2.1 is for you.

                                Nothing is worthless, it can always be used as a bad example.

                                http://sdmitch.blogspot.com/

                                1 Reply Last reply Reply Quote 0
                                • brookefoxB Offline
                                  brookefox
                                  last edited by

                                  I'm all over it. Thank you, Sam.

                                  ~ Brooke

                                  1 Reply Last reply Reply Quote 0
                                  • sdmitchS Offline
                                    sdmitch
                                    last edited by

                                    Updated to be SU2014 compatible.

                                    Nothing is worthless, it can always be used as a bad example.

                                    http://sdmitch.blogspot.com/

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

                                      I have added it to the PluginStore.
                                      http://sketchucation.com/pluginstore?pln=Rotated_Box

                                      TIG

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

                                        See the video.
                                        Video_2014-03-29_033416.wmv

                                        1 Reply Last reply Reply Quote 0
                                        • sdmitchS Offline
                                          sdmitch
                                          last edited by

                                          Very interesting. I'll try to solve the mystery.

                                          Nothing is worthless, it can always be used as a bad example.

                                          http://sdmitch.blogspot.com/

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

                                            Just something I noted from the video - implement the Tool#getExtents method to fix the clipping of your temporary geometry.

                                            Hi

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

                                            Advertisement