Vla-getcustombyindex
- 構文
- (vla-getcustombyindex vla-object Index pKey pValue)
- 機能
- インデックス値に対応するカスタム プロパティの名前(キー)と値を返す。
- 引数
-
- vla-object … SecurityParams の VLA オブジェクト
- Index … 長整数型; プロパティのインデックス値。 インデックスの範囲は、0~カスタム プロパティの数 -1 です。
- pKey … インデックス値に対応するカスタム プロパティ名の文字列。
- pValue … インデックス値に対応するカスタム プロパティ値の文字列。
- 戻り値
- nil
- サンプル
(setq *ActDoc* (vla-get-ActiveDocument (vlax-get-Acad-Object)))
(setq acsum (vla-get-summaryinfo *ActDoc*))
(repeat (setq i (vla-NumCustomInfo acsum))
(vla-GetCustomByIndex acsum (setq i (1- i)) 'key 'value)
(setq result (cons (cons key value) result))
)
; (("test-key" . "test-value"))
関連事項