It has to do with the viewMatrix type in the procedure OnCameraEvent of the IPXV_Annot3DCallbackDisp interface.
Here's what it gives me:
Code: Select all
procedure OnCameraEvent(const pContext: IPXV_Annot3DContext; const pView: IUnknown;
nCurTool: Integer; nBinding: PXC_3DProjScaleType;
nProjType: PXC_3DProjType; nFar: Double; nNear: Double; nFOV: Double;
nCO: Double; nViewPlaneSize: Double; var viewMatrix: PXC_3DMatrix4x4;
const pViewName: WideString); dispid 1610743816;
Code: Select all
procedure OnCameraEvent(const pContext: IPXV_Annot3DContext; const pView: IUnknown;
nCurTool: Integer; nBinding: PXC_3DProjScaleType;
nProjType: PXC_3DProjType; nFar: Double; nNear: Double; nFOV: Double;
nCO: Double; nViewPlaneSize: Double; var viewMatrix: OleVariant;
const pViewName: WideString); dispid 1610743816;
It's now problem to fix it each time, but just thought I'd bring it up in case it's an easy fix.
Attached is my corrected unit.
--Jeff