jbborge Posted August 31, 2009 Posted August 31, 2009 I’m trying to create a lisp test expression for my if then statement…& I’m stuck. Basically, all I need is: If the dwgname contains this word (MyPlan), then do this … The dwgname is typically formatted ‘xxxx~MyPlanxxxx.dwg’. The xxxx represents 4 or more letters/numbers. I tried using wildcards, but doesn’t work. Thanks in advance! Quote
Lee Mac Posted August 31, 2009 Posted August 31, 2009 You could use the wcmatch function: Either: (wcmatch (getvar "DWGNAME") "*MyPlan*") Or (wcmatch (getvar "DWGNAME") "????~MyPlan*") Lee Quote
jbborge Posted August 31, 2009 Author Posted August 31, 2009 Awesome!...worked perfectly, thanks again! 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.