PDA

View Full Version : Remove the hidden attribute on a file



ray.lucas
2005-04-21, 12:06 AM
Got an AutoLISP program that takes a ISO-GEN dwg file, changes drawing sheets, attributes properties, save it as a clients numbering system, etc. At the end of the LISP are clean up commands to move and delete files so everything is in its place. So far so good, now with AutoCAD2005 there is the .DWL file, it has a hidden attribute on it, this is not something that I have needed to change before, tried the following

(if (findfile (strcat "C:/ISOGEN/Drawings/" olddwgno ".dwl"))
(vl-file-delete (strcat "C:/ISOGEN/Drawings/" olddwgno ".dwl"))
);_if

But as it is hidden the findfile returns a nil

How do I change the attributes of a file?

kennet.sjoberg
2005-04-21, 06:10 AM
Earlier in this forum :

Changing file attributes with lisp (http://forums.augi.com/showthread.php?t=4505&highlight=file)

: ) Happy Computing !

kennet

jwanstaett
2005-04-21, 01:32 PM
note: the dwl file will be deleted when you close the drawing file. The dwl file is a lock file for autocad.

ray.lucas
2005-04-21, 11:34 PM
Gold star for Kennet, just what I wanted.

Should of done a search on read only not hidden attributes.

As for the DWL file deleting when you exit AutoCAD, sounds good in theory, but sometimes the file remains.