明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5136|回复: 16

[源码] 快速的将*.lisp转为*.FAS

[复制链接]
发表于 2013-12-14 15:31:02 | 显示全部楼层 |阅读模式
  1. ;;  LSP2FAS.lsp                                    ; Scot Harris  11-29-2012
  2. ;;   Minimizes the sequence needed to create FAS files.
  3. ;;   Help facility added.
  4. ;;   Streamlined from original program provided by aqdam1978.

  5. (defun c:LSP2FAS-Help (/)
  6. (alert (strcat
  7.   "\tLisp (LSP) to Fast and Secure (FAS) Help"
  8.   "\n "
  9.   "\nFile dialog begins in the current directory.   "
  10.   "\nIt is suggested to place and open a drawing (DWG)   "
  11.   "\ninside the input folder you wish to batch process.   "
  12.   "\n "
  13.   "\nOutput file will be in the same folder as the file selected.   "
  14.   "\n "
  15.   "\nThere is no provisional check for an existing FAS file of the same name.   "
  16. ))
  17. );end LSP2FAS-Help

  18. (defun c:LSP2FAS ( / a )
  19. (vl-load-com)
  20. (prompt " Lisp to Fast and Secure (FAS). LSP2FAS-Help available. ")
  21. (if (wcmatch (strcase (setq a (getfiled "Convert LSP File to FAS" (getvar "DWGPREFIX") "" 16))) "*.LSP")
  22.   (progn
  23.    (c:vlide)(vlisp-compile 'st a)
  24.    (princ (strcat "\n File " (vl-string-subst ".fas" ".lsp" a) " created. "))
  25.   );progn
  26.   (alert "File extension must be \".LSP\"   ")
  27. );if
  28. (princ)
  29. );end LSP2FAS

"觉得好,就打赏"
还没有人打赏,支持一下

本帖被以下淘专辑推荐:

  • · excel|主题: 80, 订阅: 3
发表于 2013-12-14 16:30:29 来自手机 | 显示全部楼层
好像论坛有一个,不知一样不。支持一下,发贴也辛苦
发表于 2013-12-15 09:40:46 | 显示全部楼层
既然能快速转成fas

那是不是说fas和VLX 能快速转成 lsp?
发表于 2013-12-15 20:01:24 | 显示全部楼层
想得美啊,哪有那么容易
发表于 2013-12-15 21:59:03 | 显示全部楼层
楼主辛苦了!
发表于 2013-12-18 13:55:38 | 显示全部楼层
楼主辛苦了,在这学习了
发表于 2013-12-18 17:44:43 | 显示全部楼层
现在fas还有什么存在意义?我每次都是转VLX的。
发表于 2013-12-19 14:47:36 | 显示全部楼层
好東西, 謝謝無私奉獻
发表于 2013-12-19 15:05:03 | 显示全部楼层
能不能快速转成VLX?
发表于 2013-12-19 16:27:42 | 显示全部楼层
fl202 发表于 2013-12-18 17:44
现在fas还有什么存在意义?我每次都是转VLX的。

转VLX就有意义了?????
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-9 14:35 , Processed in 0.205533 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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