「Gis:rename-layer」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{BCAD_LISP_GIS}} ; 構文 : (gis:rename-layer ''name'') ; 機能 : name で指定された 'GIS Layer' オブジェクトの名前を変更する。 ; 引数 :* name : 変更する「GISレイヤ」の名前の文字列。 ; 戻り値 : 成功なら T or NIL ===メモ=== GISレイヤので名前は (gis:layer-set-name) 関数で変更することもできる。 ; サンプル <pre class="brush: autolisp;"> (vl-load-gis) T (setq layers (gis:get-l…」)
 
編集の要約なし
2行目: 2行目:


; 構文
; 構文
: (gis:rename-layer  ''name'')
: (gis:get-layer  ''name'')


Returns the 'GIS Layer' object with name of the current drawing.


; 機能
; 機能
: name で指定された 'GIS Layer' オブジェクトの名前を変更する。
: name で指定された 'GIS Layer' オブジェクトの識別子ハンドルを返す。




; 引数
; 引数
:* name : 変更する「GISレイヤ」の名前の文字列。
:* name : 「GISレイヤ」の識別子ハンドルを取得する'GISレイヤ'の名前。




; 戻り値
; 戻り値
: 成功なら T or NIL
: 成功なら 整数値、それ以外は nil
 
 
===メモ===
GISレイヤので名前は ([[gis:layer-set-name]]) 関数で変更することもできる。




28行目: 25行目:


(setq layers (gis:get-layers))
(setq layers (gis:get-layers))
("shp_3857_point_2d_utf8")
(setq name (car layers))
 
"shp_3857_point_2d_utf8"
(setq newLayerId (gis:create-layer "NewGisLayer_Points" bcGisTypePoint ""))
1736821215011


(setq layers (gis:get-layers))
(setq layerId (gis:get-layer name))
("shp_3857_point_2d_utf8" "NewGisLayer_Points")
1736814432906


(gis:rename-layer "NewGisLayer_Points" "New_Points")
T
(setq layers (gis:get-layers))
("shp_3857_point_2d_utf8" "New_Points")
</pre>
</pre>



2025年4月16日 (水) 09:18時点における版

構文
(gis:get-layer name)

Returns the 'GIS Layer' object with name of the current drawing.

機能
name で指定された 'GIS Layer' オブジェクトの識別子ハンドルを返す。


引数
  • name : 「GISレイヤ」の識別子ハンドルを取得する'GISレイヤ'の名前。


戻り値
成功なら 整数値、それ以外は nil


サンプル
(vl-load-gis)
T

(setq layers (gis:get-layers))
(setq name (car layers))
"shp_3857_point_2d_utf8"

(setq layerId (gis:get-layer name))
1736814432906 



関連事項