layerstate-addlayers
Adds or updates a series of layers to a layer state
layerstate-delete
Deletes a layer state
(layerstate-delete "SM_LayerState")
(layerstate-delete "SM_LayerState")
layerstate-export
Exports a layer state to a specified file
(layerstate-export "SM_LayerState" Las_Name)
(layerstate-export "SM_LayerState" Las_Name)
layerstate-getlayers
Returns the layers saved in a layer state
layerstate-has
Checks if a layer state is present
(layerstate-has "SM_LayerState")
(layerstate-has "SM_LayerState")
layerstate-import
Imports a layer state from a specified file
(layerstate-import Las_Name)
(layerstate-import Las_Name)
layerstate-rename
Renames a layer state
layerstate-restore
Restores a layer state into the current drawing
(layerstate-restore "SM_LayerState" viewportId 21)
(layerstate-restore "SM_LayerState" viewportId 21)
layerstate-save
Saves a layer state in the current drawing
1- Restore the saved On or Off value
2- Restore the saved Frozen or Thawed value
4- Restore the saved Lock value
8- Restore the saved Plot or No Plot value
16- Restore the saved VPVSDFLT value
32- Restore the saved Color
64- Restore the saved LineType
128- Restore the saved LineWeight
(layerstate-save "SM_LayerState" 111 viewportId)
;; LayerState Path 설정
(setq SM_Path (vl-filename-directory (findfile "SM_StartLisp.FAS")))
(setq Las_Name (strcat SM_Path "\\" "SMTempLayerState.las"))
'AutoCAD > AutoLisp' 카테고리의 다른 글
OpenDCL 튜토리얼 첫번째 (0) | 2012.02.24 |
---|---|
vla-GetBoundingBox함수와 원과의 관계에 대하여 ... (0) | 2011.11.15 |
리습에 대한 생각 (0) | 2011.05.25 |
[XREF] Xref파일 Bind후에 Xref에서 off된 레이어 삭제 (0) | 2011.05.15 |
[LSP] 캐드바이러스(acad.lsp, acaddoc.lsp...) 삭제구문 (0) | 2011.05.12 |