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
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
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
What do you mean with html file? where can I find this html file?
What do you mean with html file? where can I find this html file?
the 3rd party document, attached to the file!
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
the 3rd party document, attached to the file!
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
They are exactly the same. Also because he removes all the old references and build up the file again from scratch. Each time the code runs.
They are exactly the same. Also because he removes all the old references and build up the file again from scratch. Each time the code runs.
have the system also the same updates/servicepacks?
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
have the system also the same updates/servicepacks?
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
Yes I forgot to mention that, whe are both on the latest version (same version).
Yes I forgot to mention that, whe are both on the latest version (same version).
Maybe you or someone else can tell me what the yellow marked icon is and how I can reach it in the Inventor API
Maybe you or someone else can tell me what the yellow marked icon is and how I can reach it in the Inventor API
Can't find what you're looking for? Ask the community or share your knowledge.