Vle-getgeomextents

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(vle-getgeomextents ename | selectionset | list-of-enames) )


機能
指定された1つまたは複数のエンティティのバウンディングボックス(幾何学的な広がり)を返す。


引数
  • ename or selectionset or list-of-enames : 検索するディクショナリの名前。
    • ename : エンティティ名
    • selectionset :選択セット
    • list-of-enames : エンティティ名のリスト


戻り値
引数のオブジェクト範囲の左下 と右上の WCS 3D点リスト


サンプル

(vle-getgeomextents (entlast))
((-1.0 2.0 0.0) (10.0 12.0 2.0))

(vle-getgeomextents (ssget))
((271.909098228123 104.472361809045 0.0) (417.647232420122 194.349763768452 0.0)) ; Z値が同じなのでフラット
((271.909098228123 104.472361809045 0.0) (417.647232420122 194.349763768452 15.7289700300267)) ; Z値が違うので3D配置かオブジェクト

; 選択図形範囲に矩形を作図する
(setq box (vle-getgeomextents (ssget)))
(command "_rectangle" (car box) (cdr box))


関連事項