Home > other >  How to make use of pyautocad insert block and modified block attribute values
How to make use of pyautocad insert block and modified block attribute values

Time:10-02

Acad tools=Autocad (create_if_not_exists=True)
Acad tools. Prompt (" hello, cad \ n ")
P1=APoint (0, 0)
Block by=acad. Model. InsertBlock (p1, CWD + u "framework \ + + neutral grounding. DWG", 1,1,1,0)
Print block. The name
Att=block. The GetAttributes
Print att

Code as above, has been successfully inserted into the block, but don't know how to modify the attribute value, attribute in the definition of has been defined,
Research day, strives for the answer,

CodePudding user response:

The
refer to the original poster jiangxinhuan response:
acad tools=Autocad (create_if_not_exists=True)
Acad tools. Prompt (" hello, cad \ n ")
P1=APoint (0, 0)
Block by=acad. Model. InsertBlock (p1, CWD + u "framework \ + + neutral grounding. DWG", 1,1,1,0)
Print block. The name
Att=block. The GetAttributes
Print att

Code as above, has been successfully inserted into the block, but don't know how to modify the attribute value, attribute in the definition of has been defined,
Research day, seek solutions,

Want to know study out there?

CodePudding user response:

PYAUTOCAD like insert block cannot increase the enhanced properties
Only create block can

Insert block is a reference to
Create a block is fast reference could not add the enhanced properties like
  • Related