Thanks Steve, that works perfectly.
I was wondering if there is a way to pick first point & second point for scaling image when inserting image file.
If not I have figured out how to do orient 2 pts.
Code:
obj = rs.GetObject("Select object to orient")
if obj:
reference = rs.GetPoints(message1="First reference point", message2="Second reference point")
if reference>0:
target = rs.GetPoints(message1="First target point", message2="Second target point")
if target>0:
rs.OrientObject( obj, reference, target, flags=2 )
thanks again,
Randy