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