如题
- ;;插入图块----(一级)-----
- ;;(vla-ins-b "\\ XYZ\\kuai.dwg" '(0 0 0) 1 1 1 0)
- (defun vla-ins-b (bname pt xscale yscale zscale rot / mspace)
- (if (= (getvar "CTAB") "Model") (setq mspace *Model-Space*) (setq mspace *Paper-Space*))
- ;(command "-INSERT" bname pt 1 1 0) 插入方法1
- ;(vla-InsertBlock mspace (vlax-3d-point pt) bname xscale yscale zscale rot)插入方法2
- (vlax-invoke mspace 'insertblock pt bname xscale yscale zscale rot) ;插入方法3
- (princ)
- )
|