找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 651|回复: 6

[求助] [求助]:*.FAS是如何生成的?

[复制链接]

已领礼包: 10个

财富等级: 恭喜发财

发表于 2004-6-16 15:59:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
如题,请各位大侠指教。谢谢!!!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2004-6-16 19:55:47 | 显示全部楼层
lisp编译后生成的文件!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-6-17 09:31:59 | 显示全部楼层
cad200x以上版本vlisp提供的一个编译功能而生成的文件
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-6-17 10:48:54 | 显示全部楼层

Re: [求助]:*.FAS是如何生成的?

最初由 HJZ 发布
[B]如题,请各位大侠指教。谢谢!!! [/B]

  1.   [FONT=courier new]
  2. Compiles AutoLISP source code into a FAS file

  3. (vlisp-compile 'mode filename [out-filename])

  4. Note  The Visual LISP IDE must be open in order for vlisp-compile to work.

  5. Arguments

  6. mode

  7. The compiler mode, which can be one of the following symbols:

  8. st  Standard build mode

  9. lsm  Optimize and link indirectly

  10. lsa  Optimize and link directly

  11. filename

  12. A string identifying the AutoLISP source file. If the source file is in the AutoCAD Support File Search Path, you can omit the path when specifying the file name. If you omit the file extension, .lsp is assumed.

  13. out-filename

  14. A string identifying the compiled output file. If you do not specify an output file, vlisp-compile names the output with the same name as the input file, but replaces the extension with .fas.

  15. Note that if you specify an output file name but do not specify a path name for either the input or the output file, vlisp-compile places the output file in the AutoCAD install directory.

  16. Return Values

  17. T, if compilation is successful; otherwise nil.

  18. Examples

  19. Assuming that yinyang.lsp resides in a directory that is in the AutoCAD Support File Search Path, the following command compiles this program:

  20. _$ (vlisp-compile 'st "yinyang.lsp")
  21. T
  22. The output file is named yinyang.fas and resides in the same directory as the source file.

  23. The following command compiles yinyang.lsp and names the output file GoodKarma.fas:

  24. (vlisp-compile 'st "yinyang.lsp" "GoodKarma.fas")
  25. Note that the output file from the previous command resides in the AutoCAD install directory, not the directory where yinyang.lsp resides. The following command compiles yinyang.lsp and directs the output file to the c:\my documents directory:

  26. (vlisp-compile 'st "yinyang.lsp" "c:/my documents/GoodKarma")
  27. This last example identifies the full path of the file to be compiled:

  28. (vlisp-compile `st "c:/program files/AutoCAD 2004/Sample/yinyang.lsp")
  29. The output file from this command is named yinyang.fas and resides in the same directory as the input file.


  30.   [/FONT]
复制代码
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-6-17 17:19:50 | 显示全部楼层
使用命令在——visual lisp 控制台
(VLISP-COMPILE 'st "xxx.LSP")
xxx.LSP是lisp文件名
会出现
(COMPILE-FILES st (D:/Acadwlq/OK/TOT3.LSP))
[分析文件 "D:/Acadwlq/OK/TOT3.LSP"]
....
[COMPILING D:/Acadwlq/OK/TOT3.LSP]
;;C:TOTNUM
;;C:L2P
;;C:TOTLINE
;;C:TOTAREA
[FASDUMPING 对象格式 -> "D:/Acadwlq/OK/TOT3.fas"]
; 编译完成。

忘了告诉各位:不带路径的文件名必须是在cad配置的搜索路径中,否则就要写全路径。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-6-17 20:07:51 | 显示全部楼层
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 10个

财富等级: 恭喜发财

 楼主| 发表于 2004-6-17 22:36:57 | 显示全部楼层
谢谢,各位大侠,明白了!!!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2025-9-27 05:23 , Processed in 0.181414 second(s), 44 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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