jy278433 发表于 2005-10-25 10:08:00

请教:2006中如何将一个文件的图层状态复制到另一个文件当中

<P>当我在新文件中输入图层状态的时候,会报错内容如下:</P>
<P>有关调用实时(JIT)调试而不是此对话框的详细信息,<BR>请参阅此消息的结尾。</P>
<P>************** 异常文本 **************<BR>System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---&gt; System.NullReferenceException: 未将对象引用设置到对象的实例。<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.LayerManager.MainForm.Application_Idle(Object sender, EventArgs e)<BR>&nbsp;&nbsp; at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FDoIdle(Int32 grfidlef)<BR>&nbsp;&nbsp; at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)<BR>&nbsp;&nbsp; at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<BR>&nbsp;&nbsp; at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<BR>&nbsp;&nbsp; at System.Windows.Forms.Application.RunDialog(Form form)<BR>&nbsp;&nbsp; at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(IWin32Window owner, Form formToShow, Boolean persistSizeAndPosition)<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(IWin32Window owner, Form formToShow)<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.LayerManager.MainForm.RunForm(IWin32Window owner, Database db)<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.LayerManager.Commands.Layer()<BR>&nbsp;&nbsp; --- 内部异常堆栈跟踪的结尾 ---<BR>&nbsp;&nbsp; at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)<BR>&nbsp;&nbsp; at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)<BR>&nbsp;&nbsp; at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<BR>&nbsp;&nbsp; at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot&lt;System::Reflection::MethodInfo __gc *&gt;* mi)<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()<BR>&nbsp;&nbsp; at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()</P>
<P>请大家指教<BR></P>
页: [1]
查看完整版本: 请教:2006中如何将一个文件的图层状态复制到另一个文件当中