LISP makes SFSP Uppercase

LISP makes SFSP Uppercase

Anonymous
Not applicable
374 Views
2 Replies
Message 1 of 3

LISP makes SFSP Uppercase

Anonymous
Not applicable

Hey guys,

 

I'm using a lisp routine to remove certain file paths from the SFSP but after running the lisp, the remaining SFSPs are all uppercase.  Is there a way to get it to just leave the paths in lowercase? Any help is greatly appreciated!

 

(defun DelPath (PathtoDelete / lst tmp)
(setq PathtoDelete (strcase PathtoDelete))
(setq lst (mapcar 'strcase (strParse (getenv "ACAD") ";")))
(if (member PathtoDelete lst)
(progn
(setq lst (vl-remove (strcase PathToDelete) lst))
(setq tmp "")
(foreach folder lst
(setq tmp (strcat tmp folder ";"))
)
(setenv "ACAD" tmp)
)
)
(princ)
)

 

0 Likes
Accepted solutions (1)
375 Views
2 Replies
Replies (2)
Message 2 of 3

paullimapa
Mentor
Mentor
Accepted solution

If you want it all in lowercase, change this line of the code from:

(setq tmp (strcat tmp folder ";"))
To
(setq tmp (strcat tmp (strcase folder T) ";"))


Area Object Link | Dwg Setup | Feet-Inch Calculator
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 3

Anonymous
Not applicable

Thanks Paul, it works great!

0 Likes