怎样定义字体???
<P>Sub sy()<BR> Dim TextObj As AcadText '定义文字对象变量<BR> Dim TextString As String '定义字符串变量<BR> Dim InsPnt(0 To 2) As Double '定义文字插入点数组变量<BR> Dim Height As Double '定义文字高度变量<BR> TextString = "试验"'</P><P> '指定文字插入点位置和文字高度<BR> InsPnt(0) = 100: InsPnt(1) = 100: InsPnt(2) = 0<BR> Height = 15<BR> '在模型空间创建文字对象<BR> Set TextObj = ThisDrawing.ModelSpace.AddText(TextString, InsPnt, Height)<BR> TextObj.Color = acGreen '指定文字对象的颜色为绿色<BR> ZoomAll '缩放视图<BR> Unload Me '关闭窗体</P>
<P>我怎样定义"试验"'为宋体啊??请帮忙!!<BR></P> <P>搜索一下吧,很多这样的帖子</P> 是么?? 给发一个贴吧!!谢谢!!!
页:
[1]