Message 1 of 3
Fail to get PlanarSketch.Dependents(.Count) Property ("Not implemented" Exception)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear @MjDeck
Could you, please, comment if it is normal that Inventor produces the "Not implemented" Eexception on attempt to get PlanarSketch.Dependents(.Count) Property on the IPT (2024) attached?
I'm using this iLogic-code:
Dim partDoc As PartDocument = ThisDoc.Document ' ThisPart
' Dim compDef As PartComponentDefinition = partDoc.ComponentDefinition
Dim compDef As ComponentDefinition = partDoc.ComponentDefinition
' Dim sk As PlanarSketch = compDef.Sketches(1)
For Each sk As PlanarSketch In compDef.Sketches
Logger.Info(sk.Name)
Try
Logger.Info(vbTab & ".Dependents: " & sk.Dependents.Count)
Catch ex As Exception
Logger.Error(vbTab & ex.Message) ' Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))
End Try
Next
PS:
I see the error is somehow related to the fact that End-of-Part marker is not at the top or bottom position (the code produces no exceptions when EoP moved to either top or bottom position).
Please vote for Inventor-Idea Text Search within Option Names