Skip to content
Discussion options

You must be logged in to vote

Both AttributeDefinition and AttributeReference derived from Db.Text and should have the same properties
using drawing PyRxGit\tests\media\06457.dwg

import traceback
from pyrx import Ap, Ax, Db, Ed, Ge, Gi, Rx


@Ap.Command()
def doit() -> None:
    try:

        db = Db.curDb()
        bt = Db.BlockTable(db.blockTableId())
        for name, id in bt.toDict().items():
            if name != "GRA":
                continue
            blkrec = Db.BlockTableRecord(id)
            if not blkrec.hasAttributeDefinitions():
                continue

            # first do the the definitions
            defids = blkrec.objectIds(Db.AttributeDefinition.desc())
            for defid in defids:
  …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@royccg
Comment options

Answer selected by royccg
Comment options

You must be logged in to vote
0 replies
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