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

    Include and extraction?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 191 Views 3 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.
    • D Offline
      DIEGO-RODRIGUEZ
      last edited by

      anyone know any plugins to include a gemetria within a group or component?
      Or to extraction a geometry of a group or component?

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

        To include entities in a definition/group manually select them, edit-copy and then edit the instance/group, then edit-paste_in_place and the entities are added. To move them into the definition/group use edit-cut instead...

        To ruby include entities in an instance (could be either instance or group.definition.instances[0]) use my 'ComponentInstance-add_entities.rb' method.

        To extract [copy] entities out of an instance/group you can manually edit the instance/group, use edit-copy, close the edit and then edit-paste_in_place, the origin remains unchanged.

        To cut entities out of an instance/group you can manually edit the instance/group, use edit-cut, close the edit and then edit-paste_in_place, the origin remains unchanged.

        I don't think there's a ruby method for this yet... However, it's relatively easy to think through...

        To ruby extract [copy] entities out of an instance or group, make a copy of the instance and then instance.make_unique [or just copy the group], then list all of its.definition.entities.to_a and remove the required entities from the list and use entity.erase! on the rest, explode the instance/group and the geometry appears to have been copied out of the instance. To tidy up empty the made_unique definition of all entities so it disappears off the browser list.

        To copy/cut the entities out of an instance or group, first do a ruby extract [copy] as above, and then remove the entities from the original instance.definition.entities or group.entities by using entity.erase! on them.

        Hope that helps...

        TIG

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aerilius
          last edited by

          You may try to open the component (double click, or right click menu), select geometry, close component and paste.
          Or do you mean something more specific?

          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