Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LISP makes SFSP Uppercase

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Jeffery.B
284 Views, 2 Replies

LISP makes SFSP Uppercase

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)
)

 

2 REPLIES 2
Message 2 of 3
paullimapa
in reply to: Jeffery.B

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
Jeffery.B
in reply to: paullimapa

Thanks Paul, it works great!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost