明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: 秋枫

通用AutoCAD二次开发安装程序[更新,支持2005]

  [复制链接]
发表于 2004-7-22 10:46:00 | 显示全部楼层
秋枫发表于2004-7-17 21:31:00;; 加载主程序(if (< (atof (getvar \"acadver\")) 15.0)(vbaload \"cc.dvb\"))
我感觉你好像还不大会用lisp 你的...
我不太会lisp语言。我想再问你一个问题,我的PROJECT名是3ddam.dvb 在这个工程中,有好几个窗体(如图),这些子程序实现不同的功能。我用以上您方法不能实现打开CAD自动加载。怎么解决呢。谢谢你的指导。模块中代码如下: Sub contourls()
userformls.Show
End Sub Sub pointls()
UserFormls2.Show
End Sub
Sub datagrid()
UserForm1.Show
End Sub
Sub pointview()
celiang_1.Show
End Sub
Sub griddisplay()
UserForm2.Show
End Sub Sub entitydisplay()
UserFormst.Show
End Sub
Sub myabout()
UserFormAbout.Show
End Sub
Sub myhelp()
UserFormhelp.Show
End Sub
Sub damcanshu1()
UserFormcanshu.Show
End Sub
Sub damcanshu2()
UserFormcanshu2.Show
End Sub
Sub damcanshu3()
UserFormcanshu3.Show
End Sub
Sub damcanshu4()
UserFormcanshu4.Show
End Sub
Sub fushu() End Sub
Sub mydam()
dam.Show
End Sub

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2004-7-23 19:51:00 | 显示全部楼层
不错吗?讲的这么详细!不知下下去,真的是这样吗?


我下载看看吧!@
发表于 2004-7-24 16:45:00 | 显示全部楼层
lispsetup.rar ( 268.07 KB,已被下载 61 次 )
文件不能安装,提示我缺少license.rtf
发表于 2004-8-5 17:38:00 | 显示全部楼层
你是XDSOFT的秋枫吗?我也写了些LISP程序,不知如何安装到CAD中。在晓东论坛无法下,这下好了。
发表于 2004-8-6 18:44:00 | 显示全部楼层
好!~
 楼主| 发表于 2004-8-7 09:51:00 | 显示全部楼层
它山之石发表于2004-8-5 17:38:00你是XDSOFT的秋枫吗?

是的。
发表于 2004-8-7 10:28:00 | 显示全部楼层
秋枫,我有个问题想问你,我怎么添加如下的目录呢?


C:\Documents and Settings\[I]B4[/I]\App\Autodesk


其中B4是计算机名,如果到别的计算机上是不一样的!
 楼主| 发表于 2004-8-7 20:51:00 | 显示全部楼层
如果要实现这个功能,只能用Innosetup本身来写了。在我的这个通用安装程序中实现比较费事,需要我修改程序,定制太复杂就不是我的目的了。这个安装程序只是提供了大部分很常用的AutoCAD二次开发程序安装中可能会碰到的情况处理。并不是一个专业的通用的安装程序。你说的这种要求对于大部分二次开发的AutoCAD程序来说可能比较少见吧? 在InnoSetup中上述要求可以用常量表示。 Shell Folder Constants
Inno Setup supports another set of directory constants, referred to as shell folder constants. They can be used in the same way as the other directory constants.
The "user" constants below refer to the currently logged in user's profile. "common" constants refer to the All Users profile.
Except where otherwise noted, shell folder constants work on all versions of Windows that Inno Setup supports, including Windows 95 and NT 4.0. * = The "common" form of this constant is mapped to the "user" form if the logged-in user lacks administrative privileges, or if the operating system is Windows 95/98/Me.
{group}
The path to the Start Menu folder, as selected by the user on Setup's Select Start Menu Folder wizard page. On Windows NT/2000/XP, this folder is always created under the All Users profile unless the user installing the application does not have administrative privileges, in which case it is created on the user's profile. {localappdata}
The path to the local (nonroaming) Application Data folder.
{sendto}
The path to the current user's Send To folder. (There is no common Send To folder.)
{userappdata} & {commonappdata} The path to the Application Data folder.
{userdesktop} & {commondesktop} *
The path to the desktop folder.
{userdocs} & {commondocs}
The path to the My Documents folder (or on NT 4.0, the Personal folder). {userfavorites} & {commonfavorites} * The path to the Favorites folder. Usage of these constants requires a MinVersion setting of at least "
4.1, 4". Only Windows 2000 and later supports {commonfavorites}; if used on previous Windows versions, it will translate to the same directory as {userfavorites}.
{userprograms} & {commonprograms} *
The path to the Programs folder on the Start Menu.
{userstartmenu} & {commonstartmenu} * The path to the top level of the Start Menu. {userstartup} & {commonstartup} *
The path to the Startup folder on the Start Menu.
{usertemplates} & {commontemplates} *
The path to the Templates folder. Only Windows 2000 and later supports {commontemplates}; if used on previous Windows versions, it will translate to the same directory as {usertemplates}.
发表于 2004-8-9 07:55:00 | 显示全部楼层
本帖最后由 作者 于 2004-8-9 11:47:03 编辑

这么复杂呀!



我看不懂


如果有时间的话。可以帮助重写一下吗?


谢谢!


对了,有没有办法连PGP文件都加载了呀!
 楼主| 发表于 2004-8-11 22:55:00 | 显示全部楼层
CADghost发表于2004-8-9 7:55:00如果有时间的话。可以帮助重写一下吗?

暂时没有这个打算。 你如果对安装要求比较复杂的话,我建议你直接学习使用专业的安装制作软件。比如Wise,Install shield,Innosetup等等。 我写这个程序的目的是简化其安装。如果很复杂、功能很强大的话,那岂不是用Innosetup写一个Innosetup了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 10:26 , Processed in 0.185011 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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