明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: citykunan

能不能使某个层上不能画东西?

  [复制链接]
 楼主| 发表于 2005-1-31 14:34:00 | 显示全部楼层
这个没有关系,只要在acad2000.lsp中写入加载,那么别人就没办法轻易改我的图纸了。
发表于 2005-1-31 15:13:00 | 显示全部楼层
本帖最后由 作者 于 2005-1-31 15:50:41 编辑

citykunan发表于2005-1-31 14:34:00这个没有关系,只要在acad2000.lsp中写入加载,那么别人就没办法轻易改我的图纸了。

如果删了acaD2000.LSP,那么...
 楼主| 发表于 2005-1-31 16:22:00 | 显示全部楼层
这只是针对一般的cad用户进行的保密工作。
发表于 2005-1-31 18:03:00 | 显示全部楼层
citykunan发表于2005-1-31 10:06:00真是谢谢EA大侠,大侠果然是反应器方面的专家。但是还有一个问题,就是可以通过图层的TOOLBAR下拉菜单解锁,不知有没有办法处理。还有能不能对特定的图层进行锁定...
ddd 只是个示例,至于使用哪个图层你自己修改程序中相应的部分。使用 Toolbar 可以修改,这个没有办法处理,不过后面只要有其他的命令等触发还会自动锁上的。即使用 Toolbar 解锁了图层并绘制了实体,后面还会删除并锁定的。
 楼主| 发表于 2005-2-4 12:53:00 | 显示全部楼层
谢谢EA ,图层的问题已解决了,自定义一个函数就可以了。 (defun leolayer (/ layern)
(setq layern "aaa")
layern
) 再用(LEOLAYER)代替"DDD"就可以了。 还有一点我想问问EA大侠,在程序里有没有办法生成永久反应器,存盘在打开,只要程序自动加载,就仍然打不开图层。我想用VLR-PERS函数,永久反映器已经做成,但是从新打开时就有问题。不知有没有办法?
发表于 2005-2-5 08:39:00 | 显示全部楼层
永久反映器的文件在 support 下才可以
 楼主| 发表于 2005-2-5 08:57:00 | 显示全部楼层
Ea大侠,我已经在acad2000.lsp程序中写入(load "c:\\aa\\test.lsp"),应该可以加载了,但是再打开后还是出现: ; error: VLISP: internal: Document application(.VLX) not found
; error: VLISP: internal: Document application(.VLX) not found
; error: VLISP: internal: Document application(.VLX) not found
; error: VLISP: internal: Document application(.VLX) not found
; error: VLISP: internal: Document application(.VLX) not found
; error: no function definition: DELALLNEW
; error: no function definition: DELALLNEW
; error: no function definition: DELALLNEW
; error: no function definition: DELALLNEW
; error: no function definition: DELALLNEW
; error: no function definition: SAVECHANGEDLYR
; error: no function definition: SAVECHANGEDLYR 不知道是什么原因?谢谢
发表于 2005-2-5 12:40:00 | 显示全部楼层
; error: VLISP: internal: Document application(.VLX) not found

把编译的 vlx 放到 support 路径下
 楼主| 发表于 2005-2-5 13:48:00 | 显示全部楼层
我并没有编译过什么vlx文件。我只是在程序中加了vlr-pers: (vlr-pers (vlr-acdb-reactor ........................... ) ;_ 结束vlr-acdb-reactor
) ;;编辑器反应器
(vlr-pers (vlr-editor-reactor ............................. ) ;_ 结束vlr-editor-reactor
) 这样ddd层被锁了,但是在打开这个文件,便会出现: ; error: VLISP: internal: Document application(.VLX) not found
; error: no function definition: DELALLNEW ; error: no function definition: SAVECHANGEDLYR 我已经在打开这个文件的时候加载了这个程序了,为什么还说自定义函数DELALLNEW, SAVECHANGEDLYR找不到呢?谢谢
发表于 2005-2-5 17:11:00 | 显示全部楼层
Note : A reactor is only a link between an event and a Callback function. The Callback
function is not part of the reactor, and is normally not part of the drawing. The reactors
saved in the drawing are only usable if their associated Callback functions are loaded in
AutoCAD.
In other words, if we made our reactor "lineReactor" persistent, we would have to ensure
that the Callback function "print-length" was loaded every time the drawing containing our
lines with reactors was opened.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-4-30 23:22 , Processed in 0.188931 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表