Hi all, We are currently using extended entity data to "attach" size definition to entities within a model. So far, this has worked well when I assign group code 1000. The trouble starts when I want to add other definitions. I believe you can keep adding group codes (must be a limit) say 1041, 1042 etc. As such, I have written the following code to attach additional extended data, but autocad returns a bad DXF group error. The original dxf list for the entity is: ((-1 . <Entity name: 1c9f748>) (0 . "POLYLINE") (5 . "C81") (102 . "{ACAD_REACTORS") (330 . <Entity name: 1c9f800>) (102 . "}") (330 . <Entity name: 1c9e0f8>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Auto-Purlins") (62 . 4) (100 . "AcDbPolygonMesh") (66 . 1) (10 0.0 0.0 0.0) (70 . 16) (40 . 0.0) (41 . 0.0) (210 0.0 0.0 1.0) (71 . 2) (72 . 6) (73 . 0) (74 . 0) (75 . 0) (-3 ("SECTION_SIZE" (1000 . "C15024")))) I then substitute the list to include the additional data by: (regapp "SECTION_SIZE") (setq elist (entget (ssname pursel 0) (list "*"))) (setq olddata (assoc -3 elist)) (setq data (cdr (assoc -3 elist))) (setq unisize (cdr (nth 1 (car data)))) (setq EXDATA1 (list "SECTION_SIZE" (cons '1000 unisize) (cons '1041 pdpflag) ;pdpflag is set to "test" )) (setq EXDATA1 (cons -3 (list EXDATA1))) (setq NEWENT (subst EXDATA1 olddata elist)) Newent now returns: ((-1 . <Entity name: 1c9f748>) (0 . "POLYLINE") (5 . "C81") (102 . "{ACAD_REACTORS") (330 . <Entity name: 1c9f800>) (102 . "}") (330 . <Entity name: 1c9e0f8>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Auto-Purlins") (62 . 4) (100 . "AcDbPolygonMesh") (66 . 1) (10 0.0 0.0 0.0) (70 . 16) (40 . 0.0) (41 . 0.0) (210 0.0 0.0 1.0) (71 . 2) (72 . 6) (73 . 0) (74 . 0) (75 . 0) (-3 ("SECTION_SIZE" (1000 . "C15024") (1041 . "test")))) When I try and update the entity: (entmod NEWENT) I get the following error: ; error: bad DXF group: (-3 ("SECTION_SIZE" (1000 . "C15024") (1041 . "test"))) I really can't see what I'm doing wrong. If anyone has any thoughts they would be really appreciated. Thanks John