ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
Combining 2 groups of entities?
-
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!
-
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
Advertisement