CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ActiveX 开发指南

相关分类

BigFontFile Property (ActiveX)

2023-1-3 21:27| 发布者: admin| 查看: 371| 评论: 0|来自: AutoCAD

摘要: 指定与文本或属性关联的大字体文件的名称。

指定与文本或属性关联的大字体文件的名称。

支持的平台:仅窗口

签名

工 务 局:

object.BigFontFile
对象

类型:文本样式

此属性适用的对象。

属性值

只读:

类型:字符串

大字体文件的名称。

言论

此属性类似于属性,不同之处在于它用于指定亚洲语言的大字体文件。唯一有效的文件类型是 SHX。FontFile

此属性不能设置为空字符串。NULL

例子

工 务 局:

Sub Example_BigFontFile()
    ' This example returns the current setting of
    ' BigFontFile. It then changes the value.
    
    Dim textStyle1 As AcadTextStyle
    Dim currBigFontFile As String
    Dim newBigFontFile As String
    
    Set textStyle1 = ThisDrawing.ActiveTextStyle
    
    ' Retrieve the current BigFontFile value
    currBigFontFile = textStyle1.BigFontFile
    MsgBox "The current value for BigFontFile is " & currBigFontFile, vbInformation, "BigFontFile Example"
    
    ' Change the value for BigFontFile
    newBigFontFile = "C:/AutoCAD/Fonts/bigfont.shx"
    textStyle1.BigFontFile = newBigFontFile
    MsgBox "The new value for BigFontFile is " & newBigFontFile, vbInformation, "BigFontFile Example"

End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_BigFontFile()
    ;; This example returns the current setting of
    ;; BigFontFile. It then changes the value.
    (setq acadObj (vlax-get-acad-object))
    (setq doc (vla-get-ActiveDocument acadObj))
  
    (setq textStyle1 (vla-get-ActiveTextStyle doc))
    
    ;; Retrieve the current BigFontFile value
    (setq currBigFontFile (vla-get-BigFontFile textStyle1))
    (alert (if (= currBigFontFile "")
	       (strcat "There is not big font file assigned to this font.")
	       (strcat "The current value for BigFontFile is " currBigFontFile))
    )

    ;; Change the value for BigFontFile
    (setq newBigFontFile (findfile "./Fonts/bigfont.shx"))
    (vla-put-BigFontFile textStyle1 newBigFontFile)
    (alert (strcat "The new value for BigFontFile is " newBigFontFile))
)

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-11 20:18

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部