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

    Combining 2 groups of entities?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 77 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.
    • T Offline
      tomot
      last edited by

      I want to combine 2 groups of entities, so if the user decides to do a delete, her or she only has to do that once.

      group = entities.add_group
      r_entities=group.entities
      
      (there are 6 entities in this group)
      
      group = entities.add_group
      rr_entities=group.entities
      
      (there are 4 entities in this group)
      

      How do I make a group that combines r_entities &rr_entities ?

      TIA!

      [my plugins](http://thingsvirtual.blogspot.ca/)
      tomot

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        begin
          #
          model.start_operation('Add nested group')
          ### OPERATION
          #
          editents = model.active_entities()
        
          topgrp  = editents.add_group()
          topents = topgrp.entities()
        
          group1 = topents.add_group()
          r_entities = group1.entities()
          #(add entities to group1 here)
           
          group2 = topents.add_group()
          rr_entities = group2.entities()
          #(add entities to group2 here)
          
          #
          ###
          model.commit_operation()
          #
        rescue Exception => e
          model.abort_operation()
          puts(e.message)
          puts(e.backtrace)
        end
        
        

        I'm not here much anymore.

        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