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

    Redraw groups

    Scheduled Pinned Locked Moved Plugins
    8 Posts 3 Posters 452 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.
    • D Offline
      dedmin
      last edited by

      Is there a way to redraw all the groups in a file? I can do this individually by adding onclick REDRAW function to every group, but this is to time consuming.

      1 Reply Last reply Reply Quote 0
      • honoluludesktopH Offline
        honoluludesktop
        last edited by

        Not sure what you mean by "redraw" groups. Aren't groups single instance entities? If you redraw (edit) one, other groups are not changed. For that you need components. I do not know if SketchUp provides a way to change all similar groups into a component. Maybe someone can link you to a plugin if you post for help in the plugin forum.

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

          Is this a dynamic component issue ?
          If so why isn't it in that forum ??

          TIG

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

            I'm assigning attributes to groups instead of components and need a way to redraw a bunch of groups to refresh all the attributes data.

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

              Why do you need to 'redraw' groups ?
              A group's attributes are its attributes ??
              If its attributes change with the group's 'properties' - e.g. it's location - then you need to think about using observers attached to the group, to watch for changes and update attributes as they might be altered... πŸ˜•
              Although many of these can be got later from the group as it is rather than some 'attribute' ???
              I'm not exactly sure what you end game is ..............

              TIG

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

                Untitled1.swf

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

                  Your illustration shows you have groups that think they are dynamic-components ?
                  Why is this ?
                  What is the advantage to you ?
                  Clearly nothing - since it messes up the DC's 'redraw'...
                  This line of code will redraw a selected DC instance $dc_observers.get_latest_class.redraw_with_undo(Sketchup.active_model.selection[0])
                  You get an error message if the selected object is NOT a DC instance...
                  I suspect that a 'group' might also fail because the entities are accessed differently in a group / group's definition than in an instance's definition, and the 'redraw' code is expecting a component.
                  Why not just select the group, right-click context-menu > 'Make Component', to avoid this aberration ? πŸ˜’

                  TIG

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

                    I have had a lot of problems with components messing around, renaming randomly and not allow me to have the same names for different components.Components are not very convenient when You have huge library with the same components in different hierarchy levels and try to mix them in a single project, make copies and etc.So far groups are working flawlessly except redrawing - so I will continue adding onclick redraw to each group. Thanks.

                    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