Print Page | Close Window

Invalid Layer

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11739
Printed Date: 31.May.2026 at 20:45


Topic: Invalid Layer
Posted By: PrasadUddanti
Subject: Invalid Layer
Date Posted: 05.Apr.2016 at 10:48
Hi i am using Autocad 2014 API facing some issues in autocad 2014 API.
while assign Freeze property is false on first layer  through coding i am getting error message  invalid layer.Please help on that.

Please see the below VB.Net code

  For Each objLayer As Autodesk.AutoCAD.Interop.Common.AcadLayer In Acad.ActiveDocument.Layers
                objLayer.LayerOn = True
                objLayer.Freeze = False        
            Next objLayer





Print Page | Close Window