超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
回复: 1-354247171 - Automating cylinder creation in SW API
Hello Daniel,
Make sure to destroy all the object created inside the loop before you
go to process the next. As an example in VB:
Set swFeature = Nothing
Set swSketch = Nothing etc.
This will help in releasing the memory.
Also you can use DoEvents function. Use this in between the major
operation like Opendoc, ForceRebuild, Or Save etc.(Please refer to the
DoEvents in MSDN for better understanding)
I hope this helps.
Regards,
Pabitra
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|