明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6367|回复: 14

[资源] 天正lisp的源码。

[复制链接]
发表于 2013-3-15 14:54:00 | 显示全部楼层 |阅读模式



  1. ;;;(_@ld "int_face")
  2. (defun C:C_AXIS  (/ is_list init_dlg do_list axde erase ll tgt1 tgt2
  3.      od_hlight l0l l1l what_next
  4.      )
  5.   (defun is_list ()
  6.     (if  (/= l0l "")
  7.       (progn (mode_tile "axde" 0) (mode_tile "a_erase" 0))
  8.       (progn (mode_tile "axde" 1) (mode_tile "a_erase" 1))
  9.       )
  10.     )
  11.   (defun init_dlg ()
  12.     (set_tile "ax_tget" tgt1)
  13.     (set_tile "axde" axde)
  14.     (set_tile "a_erase" erase)
  15.     (is_list)
  16.     )
  17.   (defun do_list ()
  18.     (rs_error)
  19.     (setq l0l $value
  20.     l1l (after_list l0l ll)
  21.     )
  22.     (is_list)
  23.     )
  24.   (setq  ll    (ai_table "LAYER" 6)
  25.   l0l   ""
  26.   axde  "0"
  27.   erase "0"
  28.   tgt1  (parea "轴线")
  29.   tgt2  (parea "轴标")
  30.   )
  31.   (setvar "highlight" 0)
  32.   (if (and (not _int_fc_id)
  33.      (< (setq _int_fc_id (load_dialog (strcat _prefix "int_face.dcl")))
  34.         0
  35.         )
  36.      )
  37.     (exit)
  38.     )
  39.   (setq what_next 7)
  40.   (while (< 2 what_next)
  41.     (if  (not (new_dialog "c_axis" _int_fc_id))
  42.       (exit)
  43.       )
  44.     (init_dlg)
  45.     (#disp_list "ax_ly_l" ll)
  46.     (if  (and l0l (> (strlen l0l) 0))
  47.       (set_tile "ax_ly_l" l0l)
  48.       )
  49.     (action_tile "ax_ly_l" "(do_list)")
  50.     (action_tile "ax_ly" "(done_dialog 3)")
  51.     (action_tile "axde" "(setq axde $value)")
  52.     (action_tile "a_erase" "(setq erase $value)")
  53.     (action_tile "help" "(do_help \"int_face:c_axis\")")
  54.     (setq what_next (start_dialog))
  55.     (cond ((= what_next 3) (find_layer "轴线")))
  56.     )
  57.   (if (and (= what_next 1) (/= l0l ""))
  58.     (progn
  59.       (change_layer l1l "轴线")
  60.       (if (= axde "1")
  61.   (progn (setq s2 (ssget "X" (list (cons 8 tgt1) '(0 . "*POLYLINE"))))
  62.          (transws s2 0)
  63.          (while (setq e1 (slb_slb 0)) (command ".EXPLODE" e1))
  64.          )
  65.   )
  66.       (if (= erase "1")
  67.   (erase_other "LINE,ARC,CIRCLE" tgt1)
  68.   )
  69.       (princ "\n 轴线转换已完成 ! ")
  70.       )
  71.     )
  72.   (setvar "highlight" 1)
  73.   (princ)
  74.   )
天正lisp的源码。

本帖子中包含更多资源

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

x
发表于 2019-8-29 10:00:27 | 显示全部楼层
非常不错的资料,谢谢楼主分享的。
发表于 2024-1-9 18:35:40 | 显示全部楼层
不好用,里面是 莫名的 后缀名
发表于 2019-8-24 19:20:52 | 显示全部楼层

这个源码怎么搞?
发表于 2013-3-15 15:05:33 | 显示全部楼层
文件内容是什么?建议截图
发表于 2013-3-15 15:30:28 | 显示全部楼层
木有用啊,主要函数都是封装的
发表于 2013-3-15 21:26:07 来自手机 | 显示全部楼层
楼主不知今天315?!?!
发表于 2013-3-16 10:37:42 | 显示全部楼层
论坛上有这个源码
发表于 2013-3-16 12:02:42 | 显示全部楼层
楼主可以介绍一下程序的作用吗?
发表于 2013-7-5 12:42:57 | 显示全部楼层
干什么用的?什么功能?
发表于 2013-9-3 22:27:08 | 显示全部楼层
这个源码怎么搞?
发表于 2013-9-4 08:30:01 | 显示全部楼层
都不知道是用来干什么的啊
发表于 2013-11-11 22:24:45 | 显示全部楼层
怎么打不开??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 10:18 , Processed in 0.288087 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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