Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Read-Only Variable
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Read-Only Variable (Read 1718 times)
0 Members and 1 Guest are viewing this topic.
AfricaAD
Guest
Read-Only Variable
«
on:
June 15, 2005, 01:41:40 PM »
Is there a variabe to automatically open files as read-only?
Logged
mohobrien
Guest
Read-Only Variable
«
Reply #1 on:
June 15, 2005, 02:50:40 PM »
You could change the file to read only then open it
(command ".shell" (strcat "attrib " file-name " +r"))
(command ".open" file-name "y")
then take the read only off
(command ".shell" (strcat "attrib " file-name "-r"))
Logged
CADaver
Guest
Read-Only Variable
«
Reply #2 on:
June 15, 2005, 02:53:01 PM »
Not that we could find earlier, but Mark Thomas, our fearless leader and expert shoveler, provided a lisp function that when combined with a profile to auto-load and run it, makes all subsequent openings read-only.
Look
HERE
Logged
AfricaAD
Guest
Read-Only Variable
«
Reply #3 on:
June 15, 2005, 04:58:21 PM »
Just simply change the open command on a specific profile to load this lisp?
This is a handy tool, but could also be harmfull to the PM's.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Read-Only Variable