查看单个帖子
旧 2009-04-12, 09:11 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)