-
Beta Was this translation helpful? Give feedback.
Answered by
schoeller
Jun 13, 2025
Replies: 2 comments 2 replies
-
trying to learn from #348 amongst other transforming entities before addition to block and calling def transformEntities(pts: list[Ge.Point3d], ents: list[Db.Entity]):
mat = Ge.Matrix3d()
vector = Ge.Vector3d(-pts[0].x,-pts[0].y,-pts[0].z)
mat.setCoordSystem(Ge.Point3d(pts[0].x,pts[0].y,pts[0].z), vector, Ge.Vector3d.kZAxis, Ge.Vector3d.kYAxis)
trans_geo = []
for ent in ents:
test = ent.isA()
print(test.name())
trans_geo.append(ent.transformBy(mat))
return trans_geo |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
schoeller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to work in exchange to doit2: