958| 2
|
求某个图层所有闭合线框的面积 |
2明经币
最佳答案论坛的插件
(defun C:mj (/ pt a b c s ss tt ttt )
(vl-load-com)
(setq pt (getpoint "\\n请点取要标注的范围内一点:"))
(command "-boundary" pt "" "")
(setq a (entlast))
(setq b (vlax-ename->vla-object a))
(setq s (vla-get-area b))
(setq ss (rtos (/ s 1000000)2 2))
(setq tt (vla-get-length b))
(setq ttt (rtos (/ tt 1000)2 2))
(command "textsize" 200 "")
(command "mtext" pt pt (strcat " ...
| ||
发表于 2020-11-27 11:34:41
|
显示全部楼层
| ||