关入禁闭室
- UID
- 132
- 积分
- 737
- 金币
-
- 活跃
-
- 阅读权限
- 0
- 注册时间
- 2006-8-8
- 最后登录
- 1970-1-1
|
发表于 2007-7-22 12:31
|
显示全部楼层
来自: 中国辽宁大连
回复: 关于vitesse的一个问题,
看看这个对你是否有用
import kcs_draft
import KcsPoint2D
import kcs_ui
import kcs_util
OK = kcs_util.ok()
Complete = kcs_util.operation_complete()
Cancel = kcs_util.cancel()
pt = KcsPoint2D.Point2D()
while 1:
resp, pt = kcs_ui.point2D_req('Indicate a view', pt)
if resp == OK:
try:
view_handle = kcs_draft.view_identify(pt)
kcs_draft.element_transform(view_handle)
except:
kcs_ui.message_confirm('Error code: '+kcs_draft.error)
elif (resp == Complete) or (resp == Cancel):
break
else:
break |
|