几何尺寸与公差论坛

 找回密码
 注册
查看: 624|回复: 0

【转帖】skippeditemarray

[复制链接]
发表于 2009-4-12 22:26:47 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 22:43 , Processed in 0.035721 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表