
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm struggling with navigating the Inventor API Object Map, and would like some help.
I want to delete named features and views as well as orphaned 3D dimensions from a part file.
(This is would be running from an VB.Net executable not iLogic)
Deleting a feature is straight forward enough (see below), but I've failed to find the equivalent objects for part views and 3D dimensions. I assume this would be similar to a drawing file where you look for un-attached (anchored?) dimensions to delete, but need to get the collection first (obviously) to even try such a thing.
Dim thisDoc As Document
thisDoc = _invApp.ActiveDocument
Dim allFeatures As PartFeatures
allFeatures = thisDoc.ComponentDefinition.Features
allFeatures("Hole1").Delete()
Solved! Go to Solution.