Message 1 of 7

Not applicable
02-25-2018
09:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been trying to figure out how to place a base drawing view in an Inventor Drawing and used the code given in the API help section in Inventor, but when I try and run the code I get this error:
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
And this on the more info tab
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Inventor.DrawingViews.AddBaseView(_Document Model, Point2d Position, Double Scale, ViewOrientationTypeEnum ViewOrientation, DrawingViewStyleEnum ViewStyle, String ModelViewName, Object ArbitraryCamera, Object AdditionalOptions) at LmiRuleScript.Main() at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem) at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Is there a way to find out which parameter is incorrect or has there been a change in how views are placed and the help section hasn't been updated?
Solved! Go to Solution.