SelectedFeature()

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » SelectedFeature() Version 2.0

説明

SelectedFeature 関数は、選択されたフィーチャのハンドルを返します。

引数

この関数は、引数を受け取りません。

戻り値

  • handle:
    選択されたフィーチャへのハンドルを返します。

選択したフィーチャに関するすべての情報を、Dump() で Command Line History に出力します。

Lua
return function ()
-- The following prints the dump for the selected feature object
Printf("=============== START OF DUMP ===============")
SelectedFeature():Dump()
Printf("================ END OF DUMP ================")
end