Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Version: Inventor Professional 2020.2
Question: Is the depth property of an assembly hole feature implemented in the API? Or am I running into some other issue?
I am running into an error when I try to get the depth of an assembly hole feature (ie. a hole feature that is in the assembly and not in a part). It appears that this section of code has not yet been implemented. Below is the error message.
Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))
Below is a screenshot of an example assembly with hole features in the assembly.
Below is a code snippet that will try to get the depth of the hole features in the assembly.
Sub Main() Dim assembly As AssemblyDocument = ThisDoc.Document For Each hole As HoleFeature In assembly.ComponentDefinition.Features.HoleFeatures MessageBox.Show(hole.Depth) 'Crashes here. Next hole End Sub
I did a little searching before and this might be related to this issue, but I am not sure.
Solved! Go to Solution.