几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】how not to update an assembly when part is closed (http://www.dimcax.com/hust/showthread.php?t=4747)

yang686526 2009-04-12 09:11 PM

【转帖】how not to update an assembly when part is closed
 
how not to update an assembly when part is closed
hi,
i am in a bit of a struggle ad hoping someone can help.
i have an assembly open and i am opening one of the parts of that assembly flattening it then folding it back up and closing the part again then showing the assembly again.
my problem is every time i close one of parts, the assembly updates so it takes along time for this to happen. i want to suspend the rebuild so no rebuilds happen while my code is running.
i found this in the api help "enableassemblyrebuild" but it does not seem to be working.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
answer bret = swapp.setuserpreferenceintegervalue(swrebuildonactivation, swdontrebuildactivedoc)
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
quick


所有的时间均为北京时间。 现在的时间是 04:28 PM.