乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 48|回复: 0

[编程交流] 任何Lisp GURU“Mleader区域

[复制链接]

3

主题

9

帖子

6

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-5 19:45:43 | 显示全部楼层 |阅读模式
  1. (defun C:hatchAREA (/ a ss n du)
  2. (setq a 0
  3.        du (getvar "dimunit")
  4.        ss (ssget '((0 . "*HATCH"))))
  5. (if ss
  6.    (progn
  7.      (setq n (1- (sslength ss)))
  8.      (while (>= n 0)
  9.        (command "_.area" "_o" (ssname ss n))
  10.        (setq a (+ a (getvar "area"))
  11.              n (1- n)))
  12.      (alert
  13.        (strcat "The total area of the selected\nobject(s) is "
  14.                (if (or (= du 3)(= du 4)(= du 6))
  15. ;
  16. ;The following 2 lines translate the area to square inches and feet
  17. ;for users using US engineering or architectural units:
  18. ;
  19.                  (strcat (rtos a 2 2) " square inches,\nor "
  20.                          (rtos (/ a 144.0) 2 3) " square feet.")
  21. ;
  22. ;In the following line, change the word "units" to whatever units
  23. ;you are using - meters, millimeters, feet, etc.
  24. ;
  25.                  (strcat (rtos a 2 3) " square units.")))))
  26.    (alert "\nNo Polylines selected!"))
  27. (princ)
  28. )
  29. (alert
  30. (strcat "POLYAREA.LSP  (c) 1997-2001 Tee Square Graphics"
  31.          "\n\n                Type POLYAREA to start"))
  32. (princ)

 
 
您好,有没有人可以帮我从TEE Square Graphics的lisp中更改代码。
 
此代码在屏幕上显示AutoCAD警报,有没有办法将警报更改为多重引线
 
A如果有人能帮忙,请提前谢谢
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-12 01:05 , Processed in 1.157918 second(s), 54 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表