sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [REQ?] Functions in closed groups as if open

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 223 Views 2 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.
    • pbacotP Offline
      pbacot
      last edited by

      Working with solids, I wish to work inside groups more often without opening them, primarily move and push-pull functions. I have tried the plugins that can pushpull in closed groups but they don't really work like the native pushpull, which is what I need. Also regular move actions inside closed groups seem within reach if you consider the things that Fred06 is capable of doing.
      Or are there primary constraints that prohibit such operations?

      In many cases one can just click in and out. But the above would enable some more manipulation of nested groups etc. I've wanted the same thing in CAD (toggle on and off working in closed groups) as well.

      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

        I've moved this post into the Developers' Forum as it code rather than plugin related...
        [If you have similar questions please post them in this forum...]

        Many functions can happen within an 'entities' context.
        This need not be the model.entities but it can be the model.active_entities - which might be the model.entities or any other entities collection IF you are editing something when you run the code... as mentioned below...
        Any group or a component.definition has 'entities'...
        So... if you have a reference to a group then group.entities is a reference to things within that... so all of the entities 'manipulations'. like adding faces work inside the group too... e.g. group.entities.add_face(p0,p1,p2)

        You can't dynamically move in and out of edit contexts [but you can step back, OUT of an edit until you are in the model...]. However, the .entities method let's you access what's in a group/definition without needing to... πŸ˜‰

        TIG

        1 Reply Last reply Reply Quote 0
        • pbacotP Offline
          pbacot
          last edited by

          TIG,

          As I haven't made the foray into ruby and coding myself. I will try to absorb what you have explained about entities. And if it is not possible at the moment, perhaps I'll eventually make something of it. I think you addressed the question about the primary constraints. It appears so much is possible.

          I have also been thinking about the value of the request / question , because in my particular methodology I have been finding OK techniques with the native way SU is intended to work.

          Thanks very much for the reply, Peter

          I took a class in FORTRAN once. Does that count?

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          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