「Vla-get-groups」の版間の差分
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-get-groups''vla-object'') ; 機能 : ドキュメントの Groups コレクションを取得する。 ; 引数 :* vla-object … Dat...」) |
細編集の要約なし |
||
| 29行目: | 29行目: | ||
;; グループ名 "TEST" を作成 | ;; グループ名 "TEST" を作成 | ||
(setq testGroup (vla-Add groupColl "TEST")) | (setq testGroup (vla-Add groupColl "TEST")) | ||
(alert (strcat (vla-get-Name | (alert (strcat (vla-get-Name testGroup) "という新しいグループは、グループ コレクションに追加されています。")) | ||
) | ) | ||
2015年5月3日 (日) 13:04時点における最新版
- 構文
- (vla-get-groupsvla-object)
- 機能
- ドキュメントの Groups コレクションを取得する。
- 引数
-
- vla-object … Database、Document の VLAオブジェクト
- 戻り値
- nil
- サンプル
vl-load-com)
(defun c:Example_Groups()
;; 現在のグループのコレクションを検索し、そのコレクションに
;; 新しいグループを追加するサンプル
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq groupColl (vla-get-Groups doc))
;; グループ名 "TEST" を作成
(setq testGroup (vla-Add groupColl "TEST"))
(alert (strcat (vla-get-Name testGroup) "という新しいグループは、グループ コレクションに追加されています。"))
)
関連事項