Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to delete the whole iAssembly factory and just be left with a normal part. The following code works great for iParts but throws an error when trying to delete an iAssembly.
oDef = ThisApplication.ActiveEditDocument.ComponentDefinition
'For iParts
Dim oFactory As iPartFactory oFactory = oDef.iPartFactory
'For iAssemblies
Dim oFactory As iAssemblyFactory oFactory = oDef.iAssemblyFactory
oFactory.Delete()
Solved! Go to Solution.