Skip to content
Discussion options

You must be logged in to vote

I added a refresh build to the repository

import traceback
from pyrx import Ap, Ax, Ed, Db


@Ap.Command()
def doit() -> None:
    try:
        ps, id, _ = Ed.Editor.entSel("\nPick a region", Db.Region.desc())
        if ps != Ed.PromptStatus.eOk:
            raise RuntimeError("Selection Error! {}: ".format(ps))
        region = Db.Region(id)
        print("Area = ", region.getArea())

    except Exception as err:
        traceback.print_exception(err)

Replies: 2 comments 3 replies

Comment options

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

@CEXT-Dan
Comment options

Comment options

You must be logged in to vote
1 reply
@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