单击此链接查看整个例程:
http://www.afralisp.net/archive/vl/acadset.htm
这部分是我的问题所在:
-
- ;;;=================================
- ;;;Set up the AfraLisp Support Paths
- ;set the path to the AfraLisp subdirectory.
- (setq netpath "C:\\AfraLisp2002")
- ;set the support paths to the AutoCAD default
- (setenv "ACAD" "")
- ;store the default paths
- (setq defpath (getenv "ACAD"))
- ;set up the AfraLisp paths
- (setenv "ACAD" (strcat
- defpath ";"
- netpath ";"
- netpath "\" "Menu;"
- netpath "\" "CadLisp2k;"
- netpath "\" "CadLib2k;"
- netpath "\" "CadMech;"
- netpath "\" "Hatching;"
- netpath "\" "Help;"
- netpath "\" "Profiles;"
- ))
- ;set up the custom template path
- (setenv "TemplatePath" (strcat netpath "\" "Templates"))
- ;inform the user
- (prompt "\nAfraLisp Support Paths Defined\n")
- ;;;================
我该如何修改代码,使当前搜索路径保持不变,从而添加新路径?我正在做一些事情,但每当我执行例程时,它都会像应该的那样复制配置文件,但SFSP会被新的覆盖?
对不起,如果我不完全清楚。。。我的目标是保留SFSP并添加新的,而不是丢失旧的。
我们非常感谢您的帮助。
顺便说一句:当然,所有学分都要归功于AfraLisp!! |