Origin example

Origin example
1# Move the origin to the bottom left corner of the design
2if not impact.active_drawing.isNone():
3    ab = impact.active_drawing.active_layer.active_block
4    rect = ab.get_visible_extents()
5    ab.origin = rect.bottom_left