VB API read Assembly structure without triggering regenerate
I have an assembly with over 1000 components, and I must read the entire structure (all level sub-assemblies and parts). But then, during the read, the Creo runs generate at every level. The overall structure read goes beyond 15 minutes. And there are cases I have to parse Assemblies beyond 1000 components, which makes it impractical to use the custom program.
Is there a way to disable generate programmatically during the assembly read?
Example:
subComponents = currentComponent.ListFeaturesByType (False,
EpfcFeatureType.EpfcFEATTYPE_COMPONENT)
If subComponents IsNot Nothing Then
For Each subCompItem In subComponents
ReadAssemblyStructure(creoSession, currentLevel, assemblyObj, childNode,
Next
End If

