How can I check if "test" exists?
Thanks ronjonp
in the meantime I found a post by irneb (thanks too ! :) )
http://forums.augi.com/archive/index.php/t-102823.html (http://forums.augi.com/archive/index.php/t-102823.html)Code - Auto/Visual Lisp: [Select]
;DHow can I check if "test" exists?....
[Edit] - D@mn ninjas
(vl-catch-all-apply 'setvar '(cplotstyle "test"))
Actually the "ACAD_PLOTSTYLENAME" dictionary does not list the styles in the STB file. It lists the styles that are in use in the drawing.Yes, you're right. Searching the "available" plotstyles needs another solution.
Try using:Yes, it works. Namely there is still an error-message created by Autocad (not Lisp), but the lisp continues to work.Code: [Select](vl-catch-all-apply 'setvar '(cplotstyle "test"))
Maybe this ?Actually the "ACAD_PLOTSTYLENAME" dictionary does not list the styles in the STB file. It lists the styles that are in use in the drawing.Yes, you're right. Searching the "available" plotstyles needs another solution.Try using:Yes, it works. Namely there is still an error-message created by Autocad (not Lisp), but the lisp continues to work.Code: [Select](vl-catch-all-apply 'setvar '(cplotstyle "test"))