 - (defun MoveTextProper (obj pt)
- (setq pt (vlax-3d-point pt))
- (cond
- ;; 单行文字
- ((= (vla-get-ObjectName obj) "AcDbText")
- (setq justify (vla-get-Justify obj))
- (if (= justify 0)
- (vla-put-InsertionPoint obj pt)
- (vla-put-AlignmentPoint obj pt)
- )
- )
- ;; 多行文字
- ((= (vla-get-ObjectName obj) "AcDbMText")
- (vla-put-InsertionPoint obj pt)
- )
- )
- )
|