Memory Commit During Rule (via Resource Monitor) is HUUUUGE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an iLogic rule that iterates through all of the documents in the open file. It tests a property for a certain criteria, then if it matches that criteria, it adds in to an assembly file that is also created in the macro.
The purpose is essentially to put every document into the top level on an assembly so that I can quickly change info through the BOM editor for all levels of files.
My computer as 16GB RAM (Low, i know) but when running this rule for an assembly that has ~5000 occurrences and ~1000 documents, it slows down and eventually crashes. I was watching the Resource monitor, and it showed the memory commit getting up to 62 GB for inventor alone.
Does this mean that my program has a memory leak, or does it just indicate I need to be releasing my objects (ie each doc) after I use it to place in the assembly? Are there other tricks to manage this issue to make the rules run faster and not use up all of my RAM?
Is this issue specific to iLogic? Is vba better for things like this? Should I actually be running this type of program from an external file (like vb.script or excel vba?
Thanks in advance,
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization
iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread
Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects
Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help
Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type