Jeff Cook wrote:
> Can anyone help fix this lisp? What I am trying to do is search for all text objects and blocks on the defpoints layer and change their plotstylename to ByLayer. I would also like to change the lineweight to ByLayer.
>
> As this thing is written now, it gets to the part about changing the text to ByLayer for plotstyle and Default for Lineweight then enters an endless loop. I am pretty new to this stuff in general, and this is the first time I've tried to include vla statements in anything I've done. Any help would be greatly appreciated.
>
>
> (cond
> (setq
> ss4
> (ssget "X"
> '((8 . "DEFPOINTS")
> (0 . "block")
> )
> )
> )
>
Regardless of what else is wrong, at least your COND statements are
screwed up. Here your test clause is the symbol SETQ, not the expression
(setq ss4 ...).
As SETQ evaluates to # or something like that,
which is not NIL, the rest of the expressions will always be executed.
Try this with (cond ((setq ss4 ...)))
--