求助!怎么样设置标注样式的比例?
<P> 图形中有 "STANDARD","CAD"....的标注样式,我想设置他们标注比例,以及其它属性,用VBA怎么实现.</P><P>下面是我做的对 "STANDARD" 比例的修改,可以运行后,出现一个对应的,"样式替代"</P>
<P>Dim adDimStyle As AcadDimStyle<BR> For Each adDimStyle In ThisDrawing.DimStyles<BR> <BR> If adDimStyle.Name = "STANDARD" Then<BR> ThisDrawing.ActiveDimStyle = adDimStyle<BR> End If<BR> Next<BR> With ThisDrawing<BR> .SetVariable "DimScale", 96 </P>
<P> End With<BR><BR><BR><BR></P> <P>把With ThisDrawing<BR> .SetVariable "DimScale", 96 </P>
<P> End With</P>
<P>换为:<BR></P>
<P>ThisDrawing.SetVariable "DIMSCALE", 96<BR>ThisDrawing.DimStyles.Item("Sca96"Delete<BR>Set NewTxtStyle = ThisDrawing.DimStyles.Add( "Sca96")<BR>NewTxtStyle.CopyFrom ThisDrawing</P>
页:
[1]