Hi,
I was doing some investigation of my intentmodel using intent tracer. When I looked at the timeconsumption of certain rules, I keep stumbling across the iv_occurrenceEnsureExists function (for parts). It seems that this call takes the most of the time in comparison with the rest of the modelrules. It looks like there is a simular function for assemblies : iv_ensureSubAssemblyExists
What does this function do ? And how can I speed it up
Cheers,
Mark
Hi Mark --
That function is where all the "real work" happens. Intent does "whatever it takes" to make the occurrence. That will sometimes mean it needs to create a new member file, which does all the part-modeling operations for the new parameters, and of course hits the disk to create and save the new member file.
There is no direct way for you to speed this up.
Indirectly, you can:
* Ensure that the member files are pre-created
* Ensure that different sets of parameter values really should be different. I.e., if you have a steel bar member file that is 1.0m long, and then you request another steel bar member that is 1.0000001m long, do you really need two different member files? Rounding the parameter values can sometimes make a big difference.
* Use patterns (if that makes sense)
* Use IvCustomAssemblyDocument as the parent (maybe? I'm not sure)
Hope this is helpful.