- 积分
- 232
- 明经币
- 个
- 注册时间
- 2005-5-11
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
public function addline(byval ptst as variant, byval pten as variant) as acadline set addline = thisdrawing.modelspace.addline(ptst, pten) end function public sub addjx() dim p1 as variant dim p2(0 to 1), p3(0 to 1), p4(0 to 1), p5(0 to 1) as double dim le, he as double p1 = thisdrawing.utility.getpoint(, "输入第一点:") le = thisdrawing.utility.getdistance(, "输入宽:") he = thisdrawing.utility.getdistance(, "输入高:") p2(0) = p1(0) - 0.5 * le p2(1) = p1(1) - 0.5 * he p3(0) = p1(0) + 0.5 * le p3(1) = p1(1) - 0.5 * he p4(0) = p1(0) + 0.5 * le p4(1) = p1(1) + 0.5 * he p5(0) = p1(0) - 0.5 * le p5(1) = p1(1) + 0.5 * he addline p2(), p3() addline p3(), p4() addline p4(), p5() addline p5(), p2() end sub
请斑竹看看这个程序,在AutoCAD2002的界面下根据一基点生成一矩形,为什么不能实现? |
|