cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

General improvement of processing higher number of occurrences in assemblies via iLogic

General improvement of processing higher number of occurrences in assemblies via iLogic

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:

  • Smaller assembly with cca 1200 occurrences.
  • Bigger assembly with cca 14000 occurrences.

 

To process cca 1200 occurrences, code needed:

 

  • Smaller assembly --> cca 5 seconds
  • Bigger assembly --> cca 38 seconds

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.

Submit Idea