Component Axes
-
When I create a component via .add_group and then .to_component, the component axes are set to the lower left extremities. Meanwhile, making a component via the Edit menu, I can specify the Component Axes in the dialog.
How can I set or move the component axes when I create the definition via Ruby?Many thanks for any assistance!
--J
-
FYI, You can change the insertion point
insertion_point=.You can also apply a transform to the entire entities of the definition ...
ctr = cdef.bounds.center # Center of untransformed bounds # Arrays are compatible with translational transformations; xform = [ctr.x, ctr.y, 0].vector_to(ORIGIN) cdef_ents = cdef.entities # Move all the entities so that the axis is in the bottom center; cdef_ents.transfrom_entities(xform, cdef_ents.to_a) -
Boom! That worked!
Thank you sir!--J
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement