Skip to content
Discussion options

You must be logged in to vote

I recommend using AcGeCurve sample, but if you really need to use AssocPersSubentIdPE, I found a workaround by doing a conversion. I hope this sample will illustrate it

import traceback
from pyrx import Ap, Db, Ed, Ge, Gi, command


def appendCurveData(curve, curves):
    curves.append(
        {
            "type": "kCircArc3d",
            "center": curve.center().toTuple(),
            "radius": curve.radius(),
            "start_radian": curve.startAng(),
            "end_radian": curve.endAng(),
        }
    )


@command
def doit():
    db = Db.curDb()
    ent_line, id, _ = Ed.Editor.entSel("\nSelect road center line: \n")
    if ent_line != Ed.PromptStatus.eOk:
        return

    ent

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@royccg
Comment options

@CEXT-Dan
Comment options

@royccg
Comment options

Answer selected by royccg
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