Hi,
I got this code in a web trawl to insert a block to points taken from a txt file......
its coming back with an error as follows:
; === Top statistic:
; Function definition (with number of arguments): ((C:INSERTBLOCKS . 0))
; Check done.
What does this mean and how can I fix it.
thanks
Sean
(defun c:insertBlocks (/ txtFile xyData expertVar attreqVar) (setq expertVar (getvar "expert")) (setq attreqVar (getvar "attreq")) (setvar "expert" 2) (setvar "attreq" 0) (setq txtFile (open "c:\\cad\\textfile.txt" "r")) ; give the path & file name of x,y data (while (setq xyData (read-line txtFile)) (command "-insert" "blockName" xyData "1" "1" "0") ; substitute blockName with your block ) (close txtFile) (setvar "expert" expertVar) (setvar "attreq" attreqVar) (princ) )