Rebridge (Python)

Rebridge (Python)
 1entity = impact.gui.picker.get_entity( "select the entity to match", True )
 2
 3if not entity.isNone():
 4    options = impact.creator.rebridge_options()
 5
 6    options.rebridge_mode = ipRebridgeMode.rmEntity
 7    options.match_entity = entity
 8
 9    # Select all visible entities in the active block
10    impact.active_block.select_all()
11
12    impact.active_block.rebridge(options)