Message 1 of 4
kArbitraryViewOrientation Broken

Not applicable
05-10-2021
06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a view in a drawing that is set to an arbitrary view orientation, but for some reason, the "kArbitraryViewOrientation" value is not working?
oView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint, oScale, kFrontViewOrientation, kShadedDrawingViewStyle)
oView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint, oScale, kArbitraryViewOrientation, kShadedDrawingViewStyle)
The first line of code works fine; the second fails. Trying to hardcode them in (10764 and 10763) also fails for kArbitraryViewOrientation, but works fine for kFrontViewOrientation (and top, and back, and ... all other view orientations). I get an error "Parameter is incorrect" whenever I try with arbitrary.
Did this get changed recently? Inventor 2020 documentation still shows this as a value of ViewOrientationTypeEnum.
https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-147686F2-00B0-42AB-A4F8-A970309066DC
Thanks!