![]() |
【转帖】saving parts
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 |
所有的时间均为北京时间。 现在的时间是 09:51 AM. |