Skip to content
Discussion options

You must be logged in to vote

seems so, or use transformBy

def set_ref_pos(obj_id: Db.ObjectId, pnt: Ge.Point3d):
    bref = Db.BlockReference(obj_id, Db.OpenMode.kForWrite)
    bref.transformBy(Ge.Matrix3d.translation(pnt - bref.position()))

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gswifort
Comment options

gswifort
Feb 11, 2026
Collaborator Author

You must be logged in to vote
4 replies
@gswifort
Comment options

gswifort Feb 11, 2026
Collaborator Author

@CEXT-Dan
Comment options

@gswifort
Comment options

gswifort Feb 11, 2026
Collaborator Author

@CEXT-Dan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants