disable cache. transaction without possibility of undo operation

disable cache. transaction without possibility of undo operation

ol2743
Contributor Contributor
627 Views
2 Replies
Message 1 of 3

disable cache. transaction without possibility of undo operation

ol2743
Contributor
Contributor

Hello.

 

I make import .DWG file in project document.

My code makes families and types for family.

There are very much types. Around 1000 and more.

Revit allocated memory around 6Gb and more.

Sometimes revit crashed .

 

Can i disable cash for undo operation?

I mean make transaction without possibility of undo operation.

 

Also.

Each type has few reference lines and dimensions between lines. 

Each type has parameters for dimensions.

When i set value for these parameter Revit do it long time around 3-5 seconds.

when there are 1000 type it take very much time.

I think  it because revit allocate memory and make cache for undo operation. 

 

0 Likes
628 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

No, sorry, I do not believe you can disable the cache.

 

The most important step may be to ensure that you package the entire operation into one single transaction.

 

Creating many small separate transactions will probably slow things down and cause much more overhead than one single large one.

 

Check out these articles for more details:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.53

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

ol2743
Contributor
Contributor

thank you for your answer.

i make only 2-3 transactions

 

0 Likes