明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1653|回复: 1

参数太少如何解决?

[复制链接]
发表于 2012-9-11 10:54:52 | 显示全部楼层 |阅读模式
;; 批量属性块修改 xls→dwg
(defun c:tt ()
  (CMDLA0)
  (setq lst (xyp-Xls2List)
ss  (ssget '((0 . "INSERT") (8 . "控制点")))
i   -1
  )
  (while (setq s1 (ssname ss (setq i (1+ i))))
    (if (xyp-get-Attibutes s1)
      (progn
(setq lst1 (xyp-get-LispValue (vla-GetAttributes (XYP-E2O s1))))
(setq a (vla-get-TextString (car lst1)))
(foreach b lst
   (if (member a b)
     (setq c b)
   )
)
(if c
   (progn
     (setq t1 (nth 1 c)
    t2 (nth 2 c)
    t3 (nth 3 c)
     )
     (vla-put-TextString (cadr lst1) t1)
     (vla-put-TextString (caddr lst1) t2)
     (vla-put-TextString (cadddr lst1) t3)
     (setq c nil)
   )
)
      )
    )
  )
  (CMDLA1)
)


http://bbs.mjtd.com/forum.php?mod=viewthread&tid=78854&page=1#pid417812   这是原来其它需求人员的求助帖子,我按照此代码写了,运行提示参数太少。我已经安装了E派工具箱,烦请各位高手解决。

点评

直接找XYP求教!  发表于 2012-9-11 14:08
发表于 2012-9-12 08:25:39 | 显示全部楼层
顶上去不懂O(∩_∩)O~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-8 04:07 , Processed in 0.148280 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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