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
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