Freeze and Thaw Layers

AutoCAD ActiveX

 
Freeze and Thaw Layers
 
 
 

You can freeze layers to speed up display changes, improve object selection performance, and reduce regeneration time for complex drawings. AutoCAD does not display, plot, or regenerate objects on frozen layers. Freeze layers that you want to be invisible for long periods. When you “thaw” a frozen layer, AutoCAD regenerates and displays the objects on that layer.

To freeze or thaw a layer, use the Freeze property. If you input a value of TRUE to this property, the layer is frozen. If you input a value of FALSE, the layer is thawed.

Freeze a layer

This example creates a new layer called “ABC” and then freezes the layer.

Sub Ch4_LayerFreeze()
    ' Create a new layer called "ABC"
    Dim layerObj As AcadLayer
    Set layerObj = ThisDrawing.Layers.Add("ABC")
      
    ' Freeze layer "ABC"
    layerObj.Freeze = True
End Sub