查看单个帖子
旧 2009-04-26, 12:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 [求助]关于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再看一下吧。
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)