Free memory after trasmit cut void

Free memory after trasmit cut void

sonicer
Collaborator Collaborator
547 Views
5 Replies
Message 1 of 6

Free memory after trasmit cut void

sonicer
Collaborator
Collaborator

I have many Family instance with void and I have algorithm that make cut with family void and walls, floors and beam.

 

I compute very long time ...big project ...but shut down with low memory..

 

how can I solve this problem?

 

thx.

0 Likes
548 Views
5 Replies
Replies (5)
Message 2 of 6

aignatovich
Advisor
Advisor

Hi!

 

This depends on your algorithm) Explore, what it does and what Revit does extra? May be you should divide document modifications to multiple transaction, may be vice a versa union transaction in one big transaction.

 

I've faced with the same issue when my addin needed to create multiple detail lines. Revit automatically attaches the end of line to the point of another line if the first line ended at the second line. For few number of lines it does not matter, but the time and consuming memory grows exponentially when lines number increases. Firstly, I've reduce the number of lines, that addin creates, secondly, I splitted lines creation to multiple transaction.

Message 3 of 6

sonicer
Collaborator
Collaborator

Do you mean its better make many transaction that will be separate not included in transaction group?

 

That is maybe the problem ....many transaction is stored and then after 1000x transaction is grouped to in one.

 

or?

 

 

0 Likes
Message 4 of 6

aignatovich
Advisor
Advisor

It depends. In most cases - no, in some rare - may be

0 Likes
Message 5 of 6

sonicer
Collaborator
Collaborator

thats interesting ansver

0 Likes
Message 6 of 6

sonicer
Collaborator
Collaborator

what about using this command after trasmit?

 

PurgeReleasedAPIObjects Method

0 Likes