Announcement

Collapse
No announcement yet.

SETBYLAYER Error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SETBYLAYER Error

    I have come to know about a command SETBYLAYER in Autocad by which we can set Bylayer Property to various drawing objects. The information about the command is given in following link :-

    http://www.cad-notes.com/2009/08/set...ck-to-bylayer/


    I have a drawing which contains various objects including blocks. When i use this command on a block (my block is really big and it contains many objects), it gives following error message :-


    HTML Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    Autodesk.AutoCAD.Runtime.Exception: eNullObjectId
       at Autodesk.AutoCAD.DatabaseServices.Transaction.GetObject(ObjectId id, OpenMode mode)
       at Autodesk.AutoCAD.LayerTools.SetByLayerCommand.ChangeEntityToByLayer(Entity ent)
       at Autodesk.AutoCAD.LayerTools.SetByLayerCommand.ChangeEntityToByLayer(Entity ent)
       at Autodesk.AutoCAD.LayerTools.SetByLayerCommand.ChangePropertiesToByLayer()
       at Autodesk.AutoCAD.LayerTools.SetByLayerCommand.SetBylayer()
       at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
       at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
       at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 (RTMGDR.030319-2300)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Acdbmgd
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcdbMgd.DLL
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    AdApplicationFrame
        Assembly Version: 0.0.0.0
        Win32 Version: 4.0.19.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AdApplicationFrame.DLL
    ----------------------------------------
    AdWindows
        Assembly Version: 4.0.24.0
        Win32 Version: 4.0.24.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AdWindows.DLL
    ----------------------------------------
    PresentationFramework
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
    ----------------------------------------
    WindowsBase
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
    ----------------------------------------
    PresentationCore
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
    ----------------------------------------
    System.Xaml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    PresentationFramework.Classic
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Classic/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Classic.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    accoremgd
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/accoremgd.DLL
    ----------------------------------------
    Acmgd
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/Acmgd.DLL
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    AcWindows
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcWindows.DLL
    ----------------------------------------
    AcCui
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcCui.DLL
    ----------------------------------------
    PresentationFramework.Aero
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
    ----------------------------------------
    WindowsFormsIntegration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
    ----------------------------------------
    AcWindows.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcWindows.resources.DLL
    ----------------------------------------
    PresentationUI
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationUI/v4.0_4.0.0.0__31bf3856ad364e35/PresentationUI.dll
    ----------------------------------------
    System.Xml.Linq
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    FeaturedAppsPlugin
        Assembly Version: 19.0.0.0
        Win32 Version: 19.0.55.0.0
        CodeBase: file:///C:/ProgramData/Autodesk/ApplicationPlugins/Autodesk%20FeaturedApps.bundle/Contents/Windows/2014/FeaturedAppsPlugin.dll
    ----------------------------------------
    UIAutomationProvider
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
    ----------------------------------------
    ManagedMC3
        Assembly Version: 7.2.0.0
        Win32 Version: 7.2.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/ManagedMC3.DLL
    ----------------------------------------
    AcLivePreviewContext
        Assembly Version: 0.0.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcWindows.dll
    ----------------------------------------
    AcLayer
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcLayer.DLL
    ----------------------------------------
    AcLayer.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcLayer.resources.DLL
    ----------------------------------------
    Accessibility
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    AcDialogToolTips
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcDialogToolTips.DLL
    ----------------------------------------
    AcDialogToolTips.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcDialogToolTips.resources.DLL
    ----------------------------------------
    AcAeNet.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcAeNet.resources.DLL
    ----------------------------------------
    AcButterflyExt.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcButterflyExt.resources.DLL
    ----------------------------------------
    AcCloudRender.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcCloudRender.resources.DLL
    ----------------------------------------
    AcCustomize.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcCustomize.resources.DLL
    ----------------------------------------
    AcDxWizard.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcDxWizard.resources.DLL
    ----------------------------------------
    AcExportLayoutUI.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcExportLayoutUI.resources.DLL
    ----------------------------------------
    AcInterfere.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcInterfere.resources.DLL
    ----------------------------------------
    AcLayerTools.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcLayerTools.resources.DLL
    ----------------------------------------
    AcMrUi.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcMrUi.resources.DLL
    ----------------------------------------
    AcMultiLineUi.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcMultiLineUi.resources.DLL
    ----------------------------------------
    AcRecoverAll.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcRecoverAll.resources.DLL
    ----------------------------------------
    AcScaleList.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcScaleList.resources.DLL
    ----------------------------------------
    AcUnderlay.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcUnderlay.resources.DLL
    ----------------------------------------
    AcViewTransitionsUi.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcViewTransitionsUi.resources.DLL
    ----------------------------------------
    AdskConnectionPointMgd.resources
        Assembly Version: 1.0.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AdskConnectionPointMgd.resources.DLL
    ----------------------------------------
    AcCalcUi.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcCalcUi.resources.DLL
    ----------------------------------------
    AcLayerTools
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcLayerTools.DLL
    ----------------------------------------
    AcTaskDialogs
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/AcTaskDialogs.DLL
    ----------------------------------------
    AcTaskDialogs.resources
        Assembly Version: 19.1.0.0
        Win32 Version: 19.1.18.0.0
        CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202014/en-US/AcTaskDialogs.resources.DLL
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    

    Please help why it is so ???

  • #2
    Does the drawing contain proxy objects?

    Comment


    • #3
      I dont know. How to check whether drawing has proxy objects.

      Comment

      Working...
      X