Message 1 of 16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following code seems to have serious errors but i can't understand where the code is crashing:
(vl-load-com)
(defun fnInsertOnInsP ( BlockName )
(if
(setq pt (getpoint "\nSpecify insertion point: "))
(command "_.-insert" (strcat "*" BlockName) "_NONE" pt "" "")
)
)
(defun c:xx ( / BlockName)
(setq cmde (getvar "cmdecho"))
(setvar "cmdecho" 0)
(if (setq BlockName getString( "\nSpecify block name: "))
(progn
(fnInsertOnInsP BlockName)
(command "_.layer" "F" "1" "")
)
)
(setvar "cmdecho" cmde)
)
Solved! Go to Solution.