aicr317 发表于 2008-7-20 03:01:00

<p>问题解决,非常感谢,非常有用的软件,支持支持!</p><p>但不注册,老是弹出那个注册的对话框,说心里话,免费午餐吃惯了,要自己掏钱,不是不舍得,总觉得不是滋味,呵呵!</p><p>如果楼主能提供注册机或是告知注册算法,到时可以考虑出钱买的,毕竟公司那么多人都在用你的软件!呵呵!</p><p>ANENF5BT0T040CD1FD9L9NF3</p><p></p>

lyy 发表于 2008-7-20 09:12:00

aicr317发表于2008-7-20 3:01:00static/image/common/back.gif问题解决,非常感谢,非常有用的软件,支持支持!但不注册,老是弹出那个注册的对话框,说心里话,免费午餐吃惯了,要自己掏钱,不是不舍得,总觉得不是滋味,呵呵!如果楼主能提供注册机或是告

<p>可以提供注册机,请跟我联系!</p><p>Email:<a href="mailto:linyy@126.com">linyy@126.com</a></p>

aicr317 发表于 2008-7-20 10:03:00

<p>这个问题一直没人解决!我有个DVB文件,要让他随着CAD一起启动,我在某个自动加载的LSP文件中,写下</p><p>(command "vbaload" "scei.dvb")<br/>(command "-vbarun" "scei.dvb!acadstartup")</p><p>这个宏能够加载,问题是,当使用你的打印工具时,打开第一个DWG文件时,完全没有问题,当打开第二个DWG文件是,系统就跳出提示:</p><p>“已经加载D:\SCEI.DVB”,也就是说可能是重复加载了,</p><p>如何能让这个DVB文件只在首次打开CAD时加载,也就是说在LSP中要添加什么内容,能使他判断是否为首次打开,如果是,加载,否则不加载!</p>

lyy 发表于 2008-7-20 11:06:00

aicr317发表于2008-7-20 10:03:00static/image/common/back.gif这个问题一直没人解决!我有个DVB文件,要让他随着CAD一起启动,我在某个自动加载的LSP文件中,写下(command \"vbaload\" \"scei.dvb\")(command \"-vbarun\" \"scei.dvb!acadstartup\")这个宏

<p>加载语句不要写入acaddoc.lsp文件,请使用acad.lsp文件,并设置acadlspasdoc=0!</p>

aicr317 发表于 2008-7-20 11:40:00

<p>我使用的是秋风的二次开发安装程序,其中</p><p>;;; 判断是否加载本文件<br/>(if (car (atoms-family 1 '("vl-load-com")))<br/>&nbsp; (vl-load-com)<br/>&nbsp; ;;else<br/>&nbsp; (progn<br/>&nbsp;&nbsp;&nbsp; (Alert<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "这个程序集是为AutoCAD 2000以及更高的版本设计的,许多程序有可能在没有Visual Lisp for R14支持的AutoCAD R14上不能正确地运行。"<br/>&nbsp;&nbsp;&nbsp; )<br/>&nbsp;&nbsp;&nbsp; (exit) ; 版本不符,退出加载。<br/>&nbsp; )<br/>)</p><p>;;; 以下定义文件中用到的函数<br/>;;;----------------------------------------------------------------------------------</p><p>;;; 取得本程序的路径<br/>;;; ---------------------------------------------------------------------------------<br/>(defun GetMyApplicationPath (AppID)<br/>&nbsp; (vl-registry-read<br/>&nbsp;&nbsp;&nbsp; (strcat<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AppID<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "_is1"<br/>&nbsp;&nbsp;&nbsp; )<br/>&nbsp;&nbsp;&nbsp; "Inno Setup: App Path"<br/>&nbsp; )<br/>)</p><p>(defun GetsceiPath ()<br/>&nbsp; (GetMyApplicationPath "1")<br/>)</p><p>;;; 解析字符串为表(函数来自明经通道转载)<br/>;;; ---------------------------------------------------------------------------------<br/>(defun strParse&nbsp;&nbsp;&nbsp; (Str Delimiter / SearchStr StringLen return n char)<br/>&nbsp; (setq SearchStr Str)<br/>&nbsp; (setq StringLen (strlen SearchStr))<br/>&nbsp; (setq return '())<br/>&nbsp; (while (&gt; StringLen 0)<br/>&nbsp;&nbsp;&nbsp; (setq n 1)<br/>&nbsp;&nbsp;&nbsp; (setq char (substr SearchStr 1 1))<br/>&nbsp;&nbsp;&nbsp; (while (and (/= char Delimiter) (/= char ""))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq n (1+ n))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq char (substr SearchStr n 1))<br/>&nbsp;&nbsp;&nbsp; ) ;_ end of while<br/>&nbsp;&nbsp;&nbsp; (setq return (cons (substr SearchStr 1 (1- n)) return))<br/>&nbsp;&nbsp;&nbsp; (setq SearchStr (substr SearchStr (1+ n) StringLen))<br/>&nbsp;&nbsp;&nbsp; (setq StringLen (strlen SearchStr))<br/>&nbsp; ) ;_ end of while<br/>&nbsp; (reverse return)<br/>) ;_ end of defun</p><p>;;; 反解析表为字符串(函数来自明经通道转载)<br/>;;; ---------------------------------------------------------------------------------<br/>(defun StrUnParse (Lst Delimiter / return)<br/>&nbsp; (setq return "")<br/>&nbsp; (foreach str Lst<br/>&nbsp;&nbsp;&nbsp; (setq return (strcat return Delimiter str))<br/>&nbsp; ) ;_ end of foreach<br/>&nbsp; (substr return 2)<br/>) ;_ end of defun</p><p>;;; 移除支持文件搜索路径<br/>;;; ---------------------------------------------------------------------------------<br/>(defun RemoveSupportPath (PathToRemove / supportlist)<br/>&nbsp; (setq supportlist (strparse (getenv "ACAD") ";"))<br/>&nbsp; (setq supportlist (vl-remove "" supportlist))<br/>&nbsp; (setq&nbsp;&nbsp;&nbsp; supportlist<br/>&nbsp;&nbsp;&nbsp;&nbsp; (vl-remove-if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '(lambda (x) (= (strcase x) (strcase PathToRemove)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supportlist<br/>&nbsp;&nbsp;&nbsp;&nbsp; )<br/>&nbsp; )<br/>&nbsp; (setenv "ACAD" (strUnParse supportlist ";"))<br/>)</p><p>;;; 添加支持文件搜索路径<br/>;;; ---------------------------------------------------------------------------------<br/>;;; note:&nbsp; 第二个参数如果为真, 插最前,否则插最后<br/>;;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>(defun AddSupportPath (PathToAdd isFirst / supportlist)<br/>&nbsp; (RemoveSupportPath PathToAdd)<br/>&nbsp; (setq supportlist (strparse (getenv "ACAD") ";"))<br/>&nbsp; (setq supportlist (vl-remove "" supportlist))<br/>&nbsp; (if isFirst<br/>&nbsp;&nbsp;&nbsp; (setq supportlist (cons PathToAdd supportlist))<br/>&nbsp;&nbsp;&nbsp; (setq supportlist (append supportlist (list PathToAdd)))<br/>&nbsp; )<br/>&nbsp; (setenv "ACAD" (strUnParse supportlist ";"))<br/>)</p><p>;;; 根据不同的AutoCAD版本加载不同的菜单文件:<br/>(defun Load_sceiMenu (/ acadver)<br/>&nbsp; (setq acadver (atof (getvar "acadver")))<br/>&nbsp; (cond<br/>&nbsp;&nbsp;&nbsp; ((and (&gt;= acadver 15.0) (&lt; acadver 16.0))<br/>&nbsp;&nbsp;&nbsp;&nbsp; (command "_menuload" "scei.mnu")<br/>&nbsp;&nbsp;&nbsp; )<br/>&nbsp;&nbsp;&nbsp; ((and (&gt;= acadver 16.0) (&lt;= acadver 16.1))<br/>&nbsp;&nbsp;&nbsp;&nbsp; (command "_menuload" "scei.mnu")<br/>&nbsp;&nbsp;&nbsp; )<br/>&nbsp;&nbsp;&nbsp; ((&gt;= acadver 16.2) (command "_menuload" "scei.cui"))<br/>&nbsp; )<br/>)</p><p>;;; The following code "placemenu" written by LUCAS<br/>;;; 插入菜单条 Placemenu由LUCAS编写<br/>;;; ---------------------------------------------------------------------------------<br/>(defun scei_PlaceMenu&nbsp;&nbsp;&nbsp; (/ n)<br/>&nbsp; (if (menugroup "gj")<br/>&nbsp;&nbsp;&nbsp; (progn<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq n 1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (while (&lt; n 24)<br/>&nbsp;&nbsp;&nbsp; (if (menucmd (strcat "P" (itoa n) ".1=?"))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq n (+ n 1))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nb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bsp;&nbsp; ;while<br/>&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;progn<br/>&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;if<br/>&nbsp; (princ)<br/>)</p><p>;;; 初始化主函数<br/>;;; ---------------------------------------------------<br/>(defun Init_scei ()<br/>&nbsp; ;; 添加支持路径&nbsp; <br/>&nbsp; (AddSupportPath (GetsceiPath) nil)<br/>&nbsp; (AddSupportPath (strcat (GetsceiPath) "\\阀门") nil)<br/>&nbsp; (AddSupportPath (strcat (GetsceiPath) "\\计算工具") nil)<br/>&nbsp; (AddSupportPath (strcat (GetsceiPath) "\\图签") nil)<br/>&nbsp; (AddSupportPath (strcat (GetsceiPath) "\\文档") nil)<br/>&nbsp; (AddSupportPath (strcat (GetsceiPath) "\\其他软件") nil)</p><p><br/>&nbsp; ;; 如果菜单组还没有被加载,则加载之<br/>&nbsp; (if (not (menugroup "gj"))<br/>&nbsp;&nbsp;&nbsp; (Load_sceiMenu)<br/>&nbsp; )</p><p>&nbsp; ;; 安排菜单条的位置<br/>&nbsp; (scei_PlaceMenu)</p><p>&nbsp; (princ)<br/>)<br/>;;; 以上函数部分定义完毕</p><p>;;; -----------------------------------------------------<br/>;;; 主程序:<br/>;;; -----------------------------------------------------<br/>;(princ "\n加载scei工具集……")</p><p>(setq scei_cmdecho_save (getvar "cmdecho"))<br/>(setvar "cmdecho" 0)</p><p>;;; 执行初始化<br/>(Init_scei)</p><p>(setvar "cmdecho" scei_cmdecho_save)<br/>(setq scei_cmdecho_save nil)</p><p>(princ "\n")<br/>(princ)</p><p></p><p>;; 加载主程序<br/>(arxload "scei.arx")<br/>(command "vbaload" "scei.dvb")<br/>(command "-vbarun" "scei.dvb!acadstartup")<br/>(load "scei.lsp")<br/>(load "bplot.vlx")<br/>(load "y5.vlx")</p><p>(princ)</p><p></p><p></p><p>请问该怎么修改!谢谢!</p>

lyy 发表于 2008-7-20 11:46:00

aicr317发表于2008-7-20 11:40:00static/image/common/back.gif我使用的是秋风的二次开发安装程序,其中;;; 判断是否加载本文件(if (car (atoms-family 1 '(\"vl-load-com\")))&nbsp; (vl-load-com)&nbsp; ;;else&nbsp; (progn&nbsp;&nbsp;&nbsp; (Alert&nb

<p>删除(command "vbaload" "scei.dvb")和(command "-vbarun" "scei.dvb!acadstartup")语句,使用acad.lsp加载!</p>

aicr317 发表于 2008-7-20 11:48:00

<p>使用ACAD.LSP加载的话,我怎么能让他在安装我的工具时,把它自动写进ACAD.LSP中呢!</p>

lyy 发表于 2008-7-20 12:01:00

aicr317发表于2008-7-20 11:48:00static/image/common/back.gif使用ACAD.LSP加载的话,我怎么能让他在安装我的工具时,把它自动写进ACAD.LSP中呢!

<p>这个要去问秋风了!</p>

lyy 发表于 2008-7-20 12:05:00

aicr317发表于2008-7-20 10:03:00static/image/common/back.gif这个问题一直没人解决!我有个DVB文件,要让他随着CAD一起启动,我在某个自动加载的LSP文件中,写下(command \"vbaload\" \"scei.dvb\")(command \"-vbarun\" \"scei.dvb!acadstartup\")这个宏

你没有使用YAD打印时,打开第二个DWG系统会跳出提示吗?

huangzp 发表于 2008-7-29 15:56:00

关于打印的问题

<p>不行啊楼主,我用的是2006版的,加载后出现命令: bp ; 错误: ARXLOAD 失败</p>
页: 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59
查看完整版本: ★★★★★【YAD批量打印软件 v1009】★★★★★