Message 1 of 5

Not applicable
12-20-2017
09:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
basically, what I'm looking to do is add a routine I have for basic maintenance of a site plan drawing to the startup. every drawing is named with numbers and then siteplan as such:
######_SITEPLAN.dwg
Is there a way for me to check if SITEPLAN is in the file name, then run a specific command?
(setq dwgname (strcase (getvar "dwgname"))) (if (= dwgname "*SITEPLAN.DWG") (C:AutoSiteScrub) )
That's the best I've got. AutoSiteScrub is the name of the command I wish to run upon startup. I'm just not sure that the way I'm specifying the drawing name is correct.
Solved! Go to Solution.