View Full Version : Need Help With An 'If - Then' Lisp
amoroz
2008-07-22, 09:45 PM
I need some help coming up with a routine that will look at the current drawing filename, if it's filename contains "site" or "title", I want it to go to model tab.
Thanks in advance for your help.
Look at the wcmatch function in the AutoCAD Developer Help.
'gile'
2008-07-23, 12:28 AM
Hi,
Or the vl-string-search function
(if (or (vl-string-search "SITE" (strcase (getvar 'dwgname)))
(vl-string-search "TITLE" (strcase (getvar 'dwgname)))
)
(setvar 'ctab "Model")
)
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.