I am working on retrieving and modifying fields of a block in AutoCAD 2021. The block has a dictionary attached to it and has xrecords in the dictionary.
I am trying to delete and add new xrecord to repalce the values in the xrecords but I get an error creating a Xrecord. it says invalid group-code 1002
entget of xrecord is :
((-1 . <Entity name: 3002dbb0>) (0 . "XRECORD") (5 . "117B") (102 . "{ACAD_REACTORS") (330 . <Entity name: 3002d9c0>) (102 . "}") (330 . <Entity name: 3002d9c0>) (100 . "AcDbXrecord") (280 . 1) (5 . "0") (330 . <Entity name: 3002d9b0>) (1002 . "{") (1000 . "DS_POINT") (1000 . "TO") (1000 . "String") (1000 . "Item_Group = TIEPOINT") (1000 . "DD") (1000 . "<NONE>") (1000 . "NO") (1000 . "XNE") (1000 . "N") (1000 . "0") (1000 . "0") (1000 . "DD") (1002 . "}"))
I havve attached the screen shot of the structure within AutoCAD database.
Can some one point me in the right direction on how to update the values (1000 . "DD") to (1000 . "MR") in the xrecord and thus update the block.
Thanks
MR