几何尺寸与公差论坛

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

【转帖】add to new folder synta

[复制链接]
发表于 2009-4-12 22:58:35 | 显示全部楼层 |阅读模式
"add to new folder" syntax
i just inserted a part into my assembly and stored the part's name as myinsrtprt and i want to create a new folder called "noz" and insert myinsrtpart into it.
i found insertsubfolder() for creating a subfolder and moving solid bodies or features into that folder, but those are for parts, and i can't find one for assemblies.
is this possible?
-wes
wes mosier
cswp in '03 & '08
.forefrontstudios.com
2009 premium x64 bit
answer never mind, i figured it out, and it works! thanks everybody.
boolstatus = assy.extension.selectbyid2(swcomp.name2 & "@" & swrootcomp.name2, "component", 0, 0, 0, false, 0, nothing, 0)
dim myfeature as object
set myfeature = assy.featuremanager.insertfeaturetreefolder2(swfeaturetreefoldertype_e.swfeaturetreefolder_containing)
boolstatus = assy.selectedfeatureproperties(0, 0, 0, 0, 0, 0, 0, 1, 0, "noz")
wes mosier
cswp in '03 & '08
.forefrontstudios.com
2009 premium x64 bit
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 01:23 , Processed in 0.034686 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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