Colomon249 Posted February 11, 2024 Posted February 11, 2024 (edited) Hello. I am completely new to writing code so apologies if code looks bad. I am trying to write a Lisp that would select 2 named blocks after thawing and turning on all layers. The problem is I get stuck in the Select Blocks command after it selects the 2 blocks. If I press Enter, it just exits without the 2 selected blocks (defun c:myMacro () ; Thaw all layers (command "._LAYTHW" "all") ; Turn on all layers (command "._LAYON" "all") ; Select Blocks named A1 and A2 (setq ss (ssget "_X" '((0 . "INSERT") (2 . "A1,A2")))) (if ss (command "_SELECT" ss) ) (princ) ) What exactly am I doing wrong here? Edited February 11, 2024 by Colomon249 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.