do u have a lisp for locking layers by using passwords or making layer invisible using lisp in autocad2006?
svsmani
|
do u have a lisp for locking layers by using passwords or making layer invisible using lisp in autocad2006?
svsmani
You can make entities invisible. Take a look at the 60 DXF code.
R.K. McSwain | CAD Panacea |
Any routine to lock layers with a password would require a reactor to watch for access to those layers.
It can be done, but it isn't exactly trivial.
Mike
The invisible element might still be needed to actually hold the password in a semi-secure way. You can not store data with a persistent reactor after the drawing has been closed. So you would have to drop dxf data on something or make a key file to check the password against. Additionally the reactor is targeting a function that would have to be loaded each time that drawing is opened. So there are quite a few problems that would make it rather un-realistic, but still possible....
I would prefer to call it "challenging" rather than "un-realistic"
Here is a program that I wrote to lock down layers
(so they can't be unlocked by the layer command)
It could be modified to freeze layers or add a password like your inquiry states.
Peter
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Certainly not your average user. Any user who can disable your reactors better know enough to conform to your standards, otherwise he's likely more dangerous than your average user.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
You could redefine commands like (vlr-remove-all) like
So the user would have a hard time disabling the reactors.Code:(defun VLR-REMOVE-ALL () (alert "\nYou cannot disable the reactors"))
Then you could place the (load "locklayer") in the mnl file somewhere where it would be hard to find to prevent its loading.
You could also write a VBa event using the LISP reference library that would reload the reactors if they did get turned off.
I can modify my routine to your specification, what do you want it to do exactly?
Peter