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

Forum for reporting problems
Post Reply
aarond
Posts: 4
Joined: Mon May 17, 2021 4:23 pm

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

Post 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)

nickz
Site Admin
Posts: 213
Joined: Fri Jul 26, 2013 3:58 am

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

Post by nickz »

Hi Aaron
Sorry about the bug. We are looking into it.
Thank you for reporting.
Nick

nickz
Site Admin
Posts: 213
Joined: Fri Jul 26, 2013 3:58 am

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

Post by nickz »

Hi Aaron
We have found the problem. Please get today's 5214 update:
Thank you for reporting

Post Reply