几何尺寸与公差论坛

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

【转帖】saving parts

[复制链接]
发表于 2009-4-13 14:06:42 | 显示全部楼层 |阅读模式
saving parts
hello,
i am creating an assembly from various parts and opening up each part before inserting into an assembly to make sure that the part exists. i am then inserting these parts into an assembly and changing some custom properties of these parts. how can i save the changes to these parts(modeldocextension::saveas is failing - i just want to save changes to the existing part(s)), close these parts, so that all that im left with is the assembly when my code runs?
any help is appreciated.
thanks,
vincent,
if you save the assembly all the parts in the assembly will be saved automatically as well.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
answer vincent,
you can save parts with: boolstatus = modeldoc2.save3(swsaveasoptions_e.swsaveasoptions_silent, nerrors, nwarnings)
and assemblies: boolstatus = modeldoc2.save3(swsaveasoptions_e.swsaveasoptions_savereferenced, nerrors, nwarnings)
mike hauptman
mike hauptman
cad applications engineer
tegrant corporation
sw2008 sp3.1
thanks jorn and mike. i got it working.
thanks again
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 22:49 , Processed in 0.034612 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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