使用VLISP测试了一下,思路与AutoCAD COM方法相同
 - (setq Cad (vlax-get-acad-object))
- (setq Doc (vla-get-activedocument Cad))
- (setq TextStyles (vla-get-TextStyles Doc))
- (setq NewStyle (vla-Add TextStyles "T1"))
- (vla-put-FontFile NewStyle "c:\\windows\\fonts\\STKAITI.TTF")
- (vla-regen Doc)
|