查看单个帖子
旧 2009-04-12, 07:38 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】skippeditemarray

skippeditemarray
how to skip the holes (2,1) and 3,1 this program skip always the hole (2,1) why?
boolstatus = part.extension.selectbyid2("hole1", "bodyfeature", 0, 0, 0, false, 4, nothing, 0)
boolstatus = part.extension.selectbyid2("axis_x", "axis", 0, 0, 0, true, 1, nothing, 0)
boolstatus = part.extension.selectbyid2("axis_y", "axis", 0, 0, 0, true, 2, nothing, 0)
set swpattern = part.featuremanager.featurelinearpattern2(3, 3 * 25.4 / 1000, 2, 4 * 25.4 / 1000, false, false, "null", "null", false)
part.clearselection2 true
set swlpattern = swpattern.getdefinition
swlpattern.skippeditemarray = array(2, 1)
swlpattern.skippeditemarray = array(3, 1)
boolstatus = swpattern.modifydefinition (swlpattern, part, nothing )
although
swlpattern.skippeditemarray = array(1, 1)
he skip the hole (2,1) again
help me
marc
ok it works!
marc
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)