Hi, I still experience an error message saying below when I use SetLocalToWorldMatrix.
Error message:
System.Runtime.InteropServices.COMException was unhandled
ErrorCode=-2147221504
HResult=-2147221504
Message=<<NavisWorks Error - Read only>>
Source=NavisworksIntegratedAPI.nwOpState.13
StackTrace:
at NavisworksIntegratedAPI13.InwOaFragment3.SetLocalToWorldMatrix(InwLTransform3f Matrix, Boolean reverses, Boolean dynamic)
at ActiveXDumpStructureExample.Form1.generatePrims_Click(Object sender, EventArgs e) in C:\Users\Joe\Documents\Navisworks 2016 Samples\ActiveXDumpStructureExample\Form1.cs:line 143
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at ActiveXDumpStructureExample.Program.Main() in C:\Users\Joe\Documents\Navisworks 2016 Samples\ActiveXDumpStructureExample\Program.cs:line 40
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
1) Where can I find the error report ( #47674: how to use SetLocalToWorldMatrix of InwOaFragment) logged by Xiaodong Liang?
2) If the error above cannot be solved, could you suggest an alternative approach to SetLocalToWorldMatrix?
Thank you