Horiz and Vert Center Line give axles of the middle of the part.
Could you allow to dimension a part from his origin instead his middle?
Not sure how to determine the origin for an arbitrary object, but once the origin is known, you could do this:
Code: Select all
>>> origin = App.Vector(0.0, 0.0, 0.0) >>> v = App.ActiveDocument.View >>> v.makeCosmeticVertex3d(origin)