Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: c_hoppen

I think the initial difference between first run and subsequent runs is due to most of those referenced documents only being 'initiated' (happens automatically when you open things like assembly or drawing) rather than fully loaded (opened, even if not visibly) in Inventor's session memory.  The individual iProperty values themselves should not be held in memory, but some stuff definitely is.  I have heard that using Apprentice can be faster, when just accessing iProperties, but that can only be used from something like a standalone EXE (not iLogic rules, VBA macros, or add-ins).  There are likely ways to reduce the run time some required by the search, but with that many occurrences, the main thing I would recommend is iterating the referenced documents instead of components, if that's not what you already did.  And maybe use OpenWithOptions, instead of the regular Open method, and setting 'SkipAllUnresolvedFiles' to True, and 'ExpressModeBehavior' to 'OpenExpress', or maybe even opening it in a ModelState in which the most stuff is suppressed may help.  Using Inventor API code instead of iLogic API code (which runs extra code behind the scenes) may help also.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)