本帖最后由 Gu_xl 于 2012-6-26 19:00 编辑
 - (vla-select
- (setq
- ssset (vla-get-ActiveSelectionSet
- (vla-get-ActiveDocument (vlax-get-acad-object))
- )
- )
- acSelectionSetAll
- (vlax-safearray-fill
- (vlax-make-safearray
- vlax-vbInteger
- (cons 0 1)
- )
- '(0 8)
- )
- (vlax-safearray-fill
- (vlax-make-safearray
- vlax-vbVariant
- (cons 0 1)
- )
- '("insert" "0")
- )
- )
- 上面语句相当于
- (setq ss (ssget "x" '((0 . "insert") (8 . "0"))))
|