几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   [求助]关于offset (http://www.dimcax.com/hust/showthread.php?t=10998)

yang686526 2009-04-26 12:03 PM

[求助]关于offset
 
[求助]关于offset
www.dimcax.com
[求助]关于offsetlisp中用offset时,(command "offset" "15" (entlast) p0 "")这样为什么不可以,offset中(entlast)无效,该怎么写呢?
d
你需要判断(entlast)得到的对象类型是否可以offset
d
详细点说明一下可以吗?或者说一下怎么改才可以。麻烦caoyin
d
(if (and (setq a (entlast))
(wcmatch (cdr (assoc 0 (entget a)))
"line,*polyline,spline,arc,circle,ray,xline,ellipse"
)
(setq p0 (getpoint "\n拾取点: "))
)
(command "offset" "15" a p0 "")
)
d
哦,明白了,非常谢谢caoyin
d
不好意思,还是不行啊!问题是出在command中,
是不是offset后还要输入一个什么参数啊?麻烦caoyin再看一下吧。


所有的时间均为北京时间。 现在的时间是 08:58 PM.