MJ:export 函数的具体用法
(defun MJ:Export (fileName Extension SelectonSet)(vla-export
(vla-get-ActiveDocument (vlax-get-acad-object))
fileName
Extension
SelectonSet
)
)
defun MJ:export (ss SaveName / s)
(defun MJ:enbox (en)
(vla-getboundingbox (vlax-ename->vla-object en) 'll 'ur)
(mapcar 'vlax-safearray->list (list ll ur))
)
(defun MJ:SS2en (ss)
(vl-remove-if-not
'(lambda (x) (= (type x) 'ename))
(apply 'append (ssnamex ss))
)
)
(defun MJ:Extents (plist)
(list (apply 'mapcar (cons 'min plist))
(apply 'mapcar (cons 'max plist))
)
)
(defun MJ:SSbox (ss / extents ss2en enbox)
(MJ:extents
(apply 'append (mapcar 'MJ:enbox (MJ:ss2en ss)))
)
)
(vl-cmdf "_zoom" (car (setq s (MJ:ssbox ss))) (cadr s))
(command "export" "d:\\1.bmp" "")
)
很好→很棒!很好~很棒!!很好……很棒!!!
页:
[1]