Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm having an issue with code that's been deployed for several years (although possibly not used very often). This code ran fine with Inventor 2016, but we're now using 2018 and appear to be having an issue. This is the code:
Dim curve As DrawingCurveSegment curve = CType(invApp.CommandManager.Pick(SelectionFilterEnum.kDrawingCurveSegmentFilter, "Select an item"), DrawingCurveSegment) Try ProcessSelectedOccurrence(CType(curve.Parent.ModelGeometry, Inventor.EdgeProxy).ContainingOccurrence) Exit Sub Catch ex As Exception MessageBox.Show("Failed to convert to edge proxy: " + ex.ToString()) End Try
And this is the error message:
I've tried just about every type of proxy in the Inventor namespace but I get the same results. EdgeProxy is the one that I expect to work for the geometry that I'm selecting.
Any ideas?
Thanks,
Kerry
Solved! Go to Solution.