Inventor Memory Management

Inventor Memory Management

johnster100
Collaborator Collaborator
518 Views
2 Replies
Message 1 of 3

Inventor Memory Management

johnster100
Collaborator
Collaborator

Hi,

i'm writing a program to automate drawing creation.

 

To do this I first open and update the parts. There are about 20 parts in total i update and these are then added to some assemblies depending on the configuration required. 

 

As my program progresses the amount of memory used by Inventor increases and increases, it never goes back down when i close parts. I've checked that the parts are in fact being closed by looking at the number of open documents in the application object.

 

By the time i come to create my drawings Inventor is already using a lot of memory (despite the face that nothing is open) and this causes my drawings to create very slowly. 

 

I know i could close the application and re-open it but this seems a strange workflow to me. 

 

any ideas?

 

thanks,

John

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

marcin_otręba
Advisor
Advisor

Hi,

You should start from checking all your code variables. If you set it in code to have some value or to be some objects then it will consume some memory, al objects and variables shoud be clered when they are not used. Try to run your inventor with and without your add-in to check what is the difference in consumed memory. Does all documents are closed or only invisible ? Maybe you want to share some video or code here to let us see what is going on?

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 3 of 3

johnster100
Collaborator
Collaborator

Hi,

thanks for the reply.

 

It's not actually an add-in i'm running, it's an external vb.net application, so it runs outside of inventor. 

 

It's the Inventor application which is using lots of memory, and i'm sure all the documents are closed as I'm also using the code documents.closeall() after i shut down my documents.

 

thanks,

John

0 Likes