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,