Different Outcome between systems with the same code (same file) when importing a step file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a function that imports a stepfile. but the outcome is a little bit different between systems.
some of them get a foldable icon at the top and some of them don't. Each time I run the code the previous icon remains. does any one know how to delete the previous (all) foldable icons. see both attachments.
Before importing the step file, all features are deleted (solids)
Code Calling the function:
Dim sStepFile As String = "H:\Navision documents\Artikelen\Twentebelt\BELTS\GR\SK\" & Parameter.Param("econ_Belt_ArtNo").Comment & "\" & Parameter.Param("econ_Belt_ArtNo").Comment & " Wiremesh Belt.stp" If (Not System.IO.File.Exists(sStepFile)) Then Return Dim belt As ImportedComponent = InventorApp.ImportSTP(sStepFile,ImportedSurfaceOrganizationTypeEnum.kImportedAsCompositeFeatures, ImportedAssemblyOrganizationTypeEnum.kImportedAsMultibodyPart, ImportedModelGeometryTypeEnum.kSolidsModelGeometryType, False)
Code The function:
Shared Function ImportSTP(sStepFilePath As String, ImportedSurfaceOrganizationType As ImportedSurfaceOrganizationTypeEnum, ImportedAssemblyOrganizationType As ImportedAssemblyOrganizationTypeEnum, _ ImportedModelGeometryType As ImportedModelGeometryTypeEnum, Optional LinkedReference As Boolean = False) As Inventor.ImportedComponent Dim oIComGenDef As ImportedGenericComponentDefinition = oPartCompDef.ReferenceComponents.ImportedComponents.CreateDefinition(sStepFilePath) oIComGenDef.ReferenceModel = LinkedReference oIComGenDef.ImportedAssemblyOrganizationType = ImportedAssemblyOrganizationType oIComGenDef.ImportedSurfaceOrganizationType = ImportedSurfaceOrganizationType oIComGenDef.ImportedModelGeometryTypes = ImportedModelGeometryType Dim oImportedGenericComp As Inventor.ImportedGenericComponent = oPartCompDef.ReferenceComponents.ImportedComponents.Add(oIComGenDef) Return oImportedGenericComp End Function