- UID
- 14724
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-11-9
- 最后登录
- 1970-1-1
|
发表于 2003-5-3 12:25:01
|
显示全部楼层
关于“Protect DWG Data”
摘自lockup开发者:
Discussion on Protecting the DWG data:
By using AutoCAD, the DWG files are all our works. We may always meet a situation by protecting the DWG files while sending or giving the DWG files to others. There maybe have many levels about the rights on operation to DWG file.
The most safe way is to forbid others from copying your DWG files. We can do this only by aiding of the Network Administrative setting. Such as in Windows NT, we can provide a rights to a folder so that no other users can copy the files in this folder.
If others can have the copy of your DWG files, how to prevent them from opening the file? In this situations, we have NOT had any good ideas. Mostly you can make an achievement to the DWG files and add a password to them. You can use software such as WinZIP, ARJ etc.
KozMos OASis provide another way in protecting drawings: Anyone can open your DWG, can print your DWG, but can NOT make further modification based on your DWG. In this case, other people can only view and print your DWG by AutoCAD. "Protect DWG Data" is designed to lock entities in your DWG file so that the further modification will be too hard to do.
We also can maintain another method on "LOCKUP" DWG data. In this method, all objects will be converted into a MInserted unnamed block. So it can NOT be exploded by AutoCAD "EXPLODE" command. In this means, "LOCKUP" give your drawings a protection LOCK.
About LOCKUP.LSP
LOCKUP.LSP is posted to me from SPAUG by answering a question on protecting the DWG data. Here is the message data in LOCKUP.LSP.
Lockup.lsp - Locks all selected entities (except proxy objects) within a drawing.
By: John D. Chapman
With help from: Stig Madsen, Celie Dailey, Pat Starkey.
Based on and expanded from AB.lsp by Brian Debelius (Make/Insert an Anonymous Block)
and AB-Minsert.lsp by Rick McElvain (Make/MINSERT an Anonymous Block).
Inspiration from Adam Conrath (MINSERT).
Special mention to Jim Fisher.
Last Revisions:
March 05, 2002: Separate block made of solids before main routine runs.
March 07, 2002: Separate Block made of background colours (8,9,251-255).
March 22, 2002: Improved error trapping.
This routine turns on, thaws, and unlocks all layers before it starts the lock. The state of your layers prior to running LOCKUP will be restored in AutoCAD 200x only.
My NewLockup.LSP
There are so many questions to ask while running LOCKUP.LSP. This waste many time on tell the program what you want to do on the NEXT step. To prevent this, I added a dialog interface to LOCKUP and re-organized the source codes so that they can be recognized clearly.
So, the following new features come to appear with my NewLockup.LSP:
[11:41:04@2002-09-17]
Dialog interface (Self-Support, coded by KozMos OASis-MVLT2002.Brugalina)
Layout Selection for AutoCAD200x
Re-organized source codes
[22:49:08@2002-09-17]
AutoCAD version auto-detecting
Support lock part of the drawing objects (Select objects to lock)
Process layer by layer (Convert objects one the same layer into unnamed blocks, one layer by another)
[12:40:48@2002-09-18]
Multiple Lockup (up to 8 levels)
ScreenMSG Top | ScreenMSG | ScreenShot | Code
LOCKUP {Enter}
NEWLOCKUP {Enter}
ScreenShot Top | ScreenMSG | ScreenShot | Code
You can make many settings on newlockup. By doing these within this dialog. Everything will be more clearly and safely.
You can choose the "SPACE" to lock, either Model Space or Paper Space. The routine will automatically determine the validity on processing the "SPACE". If you have NOT any objects on Paper Space, the "Lock Paper Space" option will be gray.
In newlockup, you can lockup the whole drawing or only lockup selected objects. By doing so, you can select the objects directly from screen or tell newlockup to lockup the objects "Layer By Layer (LBL)". LBL means to lockup the objects on same layer and process the layers one by one.
The processing method for proxy objects and wipeouts are same as in lockup.lsp, I add three new features to newlockup:
Remove point Z value: this will put everything on the plain. also will help in prevent errors on too small Z coordination (such as 1.2E123).
Convert common line into 3DFACE: this is the same function in PDWG. 3DFACE is the default destination entity type for the conversion. You can modify the source code to convert line into TRACE or SOLID.
Lockup Levels: you can make the lockup procedure again on the locked drawing. You can choose the level directly from the pop-up list. I DO recommend not using a number bigger than 5.
I have tried many methods on unlock the locked drawing. But I can NOT find a valid method to do that within AutoCAD200x, only in AutoCAD R14.0 can I explode the MInserted unnamed block.
If the line was converted into 3DFACE while the newlockup procedure, the exploded drawing still be locked by this conversion.
In newlockup, the 3DFACE can NOT be transferred back to line.
其中的两个附件:
1、LOCKUP.LSP为原稿。
2、NewLockup.LSP为修改版,其中NewLockupc.LSP为中文版。 |
|