Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys,
How can I use a string as a way to call for a block name?
What I want is call for command TST
TST asks for a String value and calls it tst1
Steal looks into .dwg and finds a block name with tst1 value
Inserts block with block name tst1 value.
Here is a lisp I have and I dont know how to make it work.
(defun c:TST (/ cde cmd oldlayer pt) (setq tst1 (getstring "enter test string:")); (Steal "../path/path1.dwg" '(("Blocks" tst1))); (setq pt (getpoint "\nSpecify insertion point: ")); (command "-insert" tst1 pt "" "");
Solved! Go to Solution.