2个回答
展开全部
请问你在CAD中是根据输入房屋的长宽值还是直接选取矩形来计算面积???
若是根据输入长度来计算:
(defun c:area2()
(setq dist1(getdist"请输入矩形长度:"))
(setq dist2(getdist"请输入矩形宽度:"))
(setq area(* dist1 dist2))
(princ area)
)
若是根据选取CAD图中矩形来实现:
(defun c:area1()
(setq en(car(entsel)))
(command "area" "o" en )
(setq area (getvar "area"))
(princ area)
)
看你的选择了……
若是根据输入长度来计算:
(defun c:area2()
(setq dist1(getdist"请输入矩形长度:"))
(setq dist2(getdist"请输入矩形宽度:"))
(setq area(* dist1 dist2))
(princ area)
)
若是根据选取CAD图中矩形来实现:
(defun c:area1()
(setq en(car(entsel)))
(command "area" "o" en )
(setq area (getvar "area"))
(princ area)
)
看你的选择了……
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询