Hello.
General improvement of processing higher number of occurrences in assemblies via iLogic is needed.
This is used in various environments, changing the browser node names, processing edges in drawings, ...
We had 2 example assemblies:
To process cca 1200 occurrences, code needed:
So to process the same number of occurrences, code needed almost 8 times more time, which has a huge impact on the workflow and engineering time. It does even worse, if assemblies have even more occurrences.
Example code for testing:
Dim oDoc As Document = ThisDoc.Document
Dim statusCount As Integer = 0
Dim totalCount As Integer = oDoc.ComponentDefinition.Occurrences.Count
For Each occ In oDoc.ComponentDefinition.Occurrences
statusCount += 1
ThisApplication.StatusBarText = String.Format("Counter: {0} od {1}", statusCount, totalCount)
Try
oDoc.BrowserPanes.Item("Model").GetBrowserNodeFromObject(occ).NativeObject.Name = "Counter &" + statusCount
Catch
'Skip
End Try
Next
Best regards,
Rene Repina
Can't find what you're looking for? Ask the community or share your knowledge.