Page 1 of 1

System.Runtime.InteropServices.COMException on IView_DG.SetBoolAttribute()

Posted: Mon May 17, 2021 4:59 pm
by aarond
IView_DG.SetBoolAttribute() causes an exception for
ViewBoolAttribute_DG.eViewBoolAttributeDgEnablePan
ViewBoolAttribute_DG.eViewBoolAttributeDgEnableZoom
ViewBoolAttribute_DG.eViewBoolAttributeDgEnableRotate

Code: Select all

var frontView = axKernCADnetFront.GetView() as IView_DG;

if (frontView != null)
{
    frontView.SetBoolAttribute(ViewBoolAttribute_DG.eViewBoolAttributeDgEnablePan, enable);
    frontView.SetBoolAttribute(ViewBoolAttribute_DG.eViewBoolAttributeDgEnableZoom, enable);
    frontView.SetBoolAttribute(ViewBoolAttribute_DG.eViewBoolAttributeDgEnableRotate, enable);
}
System.Runtime.InteropServices.COMException
HResult=0x8002000F
Message=Parameter not optional. (Exception from HRESULT: 0x8002000F (DISP_E_PARAMNOTOPTIONAL))
Source=Interop.KernCADnet
StackTrace:
at KernCADnet.IView_DG.SetBoolAttribute(ViewBoolAttribute_DG attribute, Boolean val)

Re: System.Runtime.InteropServices.COMException on IView_DG.SetBoolAttribute()

Posted: Tue May 18, 2021 4:55 am
by nickz
Hi Aaron
Sorry about the bug. We are looking into it.
Thank you for reporting.
Nick

Re: System.Runtime.InteropServices.COMException on IView_DG.SetBoolAttribute()

Posted: Thu May 27, 2021 8:58 am
by nickz
Hi Aaron
We have found the problem. Please get today's 5214 update:
Thank you for reporting