Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My intention is: user prompt pick block and that would inform an ssget filter. I am aware of this line of code:
ssget "_x" '((0 . "INSERT")(2 . "Blockname")))
however from my use of it, you have to manually type in the blockname and cannot reference a variable for example
(setq pt(cadr(entsel"\nSelect Block:")))
(setq e1(ssget pt))
(setq e2 (entget (ssname e1 0)))
(setq bname (cdr(assoc 2 e2)))
ssget "_x" '((0 . "INSERT")(2 . bname)))
Am I missing something fundamentally simple or can this not be done? I keep resulting in an error. Any help would be appreciated. Thank you!
Solved! Go to Solution.