Hi,
Could anybody help me get this to work? (without laughing if its blatantly obvious)
Thanks in advanceCode:(while (vl-cmdf "-INSERT" (vla-get-name BlkObj) PAUSE "1" "1" PAUSE) (if (<= TxtNum 9) (setq BlkTxt (strcat TxtPre "0" (itoa TxtNum))) (setq BlkTxt (strcat TxtPre (itoa TxtNum))) ) (setq NewBlkObj (vlax-ename->vla-object (entlast))) (vla-put-textstring (nth 0 (vlax-safearray->list (variant-value (vla-getattributes NewBlkObj) ) ) ) BlkTxt ) (setq TxtNum (1+ TxtNum)) )