Is it possible to convert iAssembly/iPart factory to normal assembly using iLogic?
I've found the way to delete single rows and columns, but how can I delete the entire Table?
Solved! Go to Solution.
Is it possible to convert iAssembly/iPart factory to normal assembly using iLogic?
I've found the way to delete single rows and columns, but how can I delete the entire Table?
Solved! Go to Solution.
Solved by bradeneuropeArthur. Go to Solution.
Dim a As Application Set a = ThisApplication Dim b As PartDocument Set b = a.ActiveDocument Dim c As iPartFactory Set c = b.ComponentDefinition.iPartFactory c.Delete
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 !
Dim a As Application Set a = ThisApplication Dim b As PartDocument Set b = a.ActiveDocument Dim c As iPartFactory Set c = b.ComponentDefinition.iPartFactory c.Delete
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 !
THANK you!
Hello
the code works well with iParts. Deleting an iAssembly table always always throws an exception.
Inventor.AssemblyComponentDefinition assmDef = assmDoc.ComponentDefinition; if (assmDef.IsiAssemblyFactory) { Inventor.iAssemblyFactory factory = assmDef.iAssemblyFactory; factory.Delete(); // throws an exception
...
}
Is there any solution?
Regards
Christoph
Edit: Second try with vba:
Hello
the code works well with iParts. Deleting an iAssembly table always always throws an exception.
Inventor.AssemblyComponentDefinition assmDef = assmDoc.ComponentDefinition; if (assmDef.IsiAssemblyFactory) { Inventor.iAssemblyFactory factory = assmDef.iAssemblyFactory; factory.Delete(); // throws an exception
...
}
Is there any solution?
Regards
Christoph
Edit: Second try with vba:
Hi,
not sure, if you still need help, but I had the same problem. The problem were excluded ComponentOccurrences in the iAssembly. Delete them or include them before deleting the iAssemblyFactory and you're fine.
Regards
Michael
Hi,
not sure, if you still need help, but I had the same problem. The problem were excluded ComponentOccurrences in the iAssembly. Delete them or include them before deleting the iAssemblyFactory and you're fine.
Regards
Michael
Can't find what you're looking for? Ask the community or share your knowledge.