- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to create a lisp that will insert a block from my current job folder. Currently I do this manually but I realized that the path is always the same and the block name in always the same as well. This is how it would work;
_insert
search for current job folder, find "temp" folder, and select "btitle.dwg"
insert the dwg file at 0,0
the issue is that every job has a different name, but every job has a temp folder. Is there a way to do this automatically?
What I have come up with is this,
(defun c:bb ()
(command "_insert" "..\temp\btitle.dwg" "o,o"))
It says "invalid block name"
I guess my issue is trying to get the file name correct. Any help is much appreciated as I am new to creating my own lisp.
Solved! Go to Solution.