Skip to content
Discussion options

You must be logged in to vote

This seems to work in exchange to doit2:

@Ap.Command()
def doit3() -> None:
    try:
        db = Db.curDb()
        sourceIds = createSolids(db)

        # defining section points
        pts = []
        pts.append(Ge.Point3d(0,-.5,0))
        pts.append(Ge.Point3d(0,.5,0))

        sec = defineSection(db, pts, sourceIds)
        mat = sec.getEcs()
        mat.setToAlignCoordSys(Ge.Point3d(pts[0].x,pts[0].y,pts[0].z), sec.plane()[0], sec.plane()[1], sec.plane()[0].rotateBy(-90, sec.plane()[1]), Ge.Point3d(0,0,0), Ge.Vector3d.kXAxis, Ge.Vector3d.kYAxis, Ge.Vector3d.kZAxis)

        ent = Db.Entity(sourceIds[0])

        section_geo = []
        for _items in sec.generateSectionGeometry(ent

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@schoeller
Comment options

@schoeller
Comment options

Answer selected by schoeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant