Hi there, The original code draws a pline and hatching. I am trying to add some extended data to it. The code i am using at the moment does work (setq lastent (entget (entlast))) (regapp "BOM") (setq exdata '((-3 ("BOM" (1000 . "XDATA") (1000 . "Testing") )))) (setq newent (append lastent exdata)) (entmod newent) But I am trying to add some more data to it that comes from 3 integer variables (ds, da & dd) eg. This is the code to enter the value from the command lilne for dd variable. (if (= dd nil) (setq dd 1)) (setq tmp dd) (princ "\Enter number of ducts deep <") (princ dd) (princ "> : ") (setq dd (getint)) (if (= dd nil) (setq dd tmp)) I wish to add these as either string (1000) or integer (1070) codes to the entity. Can someone please help. Thanks in advanced Anthony Ryan