I'm writing a routine and have come across a slight snag. I have this code:
This works really well until I come to a file that is Read-Only . It will do as I expect when the file is Read-Only when someone has it open, but if it's file attribute is Read-Only, it doesn't catch it . Does any know a way around this or how to check to see if a file has a Read-Only attribute ?
(if (not (vl-catch-all-apply 'vla-open (list dbxDoc dwg)))
;;do my stuff here
(vla-saveas- dbxDoc dwg)