Message 1 of 7
Exploding Blocks on Insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Lisp again ![]()
I have a lisp function which I use to insert blocks:
(defun c:TestFunction ()
(setq FF1 (Find "drawing.dwg"))
;returns "c:\drawing.dwg"
(if FF1
(PROGN
(setvar"ATTREQ" 0)
(command "_.INSERT" (strcat "*" FF1) pause 1.0 1.0 0.0)
(setvar"ATTREQ" 1)
)
)
(princ)
)What I want is to explode on insert. For this, I believe you need an '*' before the file name. The prblem I'm having is where to put this '*' as all I get is various errors (depending on where I place it) ranging from nil and too many arguments to just doing nothing.
So far, I have tried (without success) ![]()
(setq FF1 (Find *"drawing.dwg")) and (setq FF1 (Find "*drawing.dwg"))
also
(command "_.INSERT" (strcat "*" FF1) pause 1.0 1.0 0.0) and (command "_.INSERT" *FF1 pause 1.0 1.0 0.0)
can anyone tell me the correct way to do correct this please?
Thanks