Sub Layers2Html() Dim Layers As AcadLayers Dim Layer As AcadLayer Open "HTML_Layers.htm" For Output As #1 Print #1, "" Print #1, "" Print #1, "" Print #1, "
" Print #1, "Name | " Print #1, "Ein | " Print #1, "Frieren | " Print #1, "Sperren | " Print #1, "Farbe | " Print #1, "Linientyp | " Print #1, "Stärke | " Print #1, "Plotstil | " Print #1, "Plot | " Print #1, "
" + Layer.Name + " | " If (Layer.LayerOn = True) Then cs1 = "XX" Else cs1 = " " Print #1, "" + cs1 + " | " If (Layer.Freeze = True) Then cs1 = "XX" Else cs1 = " " Print #1, "" + cs1 + " | " If (Layer.Lock = True) Then cs1 = "XX" Else cs1 = " " Print #1, "" + cs1 + " | " Print #1, "" & Layer.Color & " | " Print #1, "" & Layer.Linetype & " | " cs1 = Layer.Lineweight Select Case Layer.Lineweight Case acLnWtByBlock: cs1 = "VonBlock" Case acLnWtByLayer: cs1 = "VonLayer" Case acLnWtByLwDefault: cs1 = "Standard" End Select Print #1, "" & cs1 & " | " Print #1, "" & Layer.PlotStyleName & " | " If (Layer.Plottable = True) Then cs1 = "XX" Else cs1 = " " Print #1, "" + cs1 + " | " Print #1, "