dimension的TextOverride能返回替代文字数据
本帖最后由 作者 于 2008-4-1 11:36:11 编辑 <br /><br /> <p>TextOverride从字面翻译是---不顾; 使...无效; 藐视; 拒绝<img src="http://res.iciba.com/dict/image/v3/listdot11.gif" border="0" style="VERTICAL-ALIGN: middle; MARGIN-RIGHT: 5px;" alt=""/>制服; 凌驾; 压倒; 推翻(决议)</p><p>找了半天,在二次开发教程找到了其意义是指定标注的文字字符串。</p><p>在金山词霸中才找到有--取而代之--之意,瞎忙了半天。</p><p>以下程序将dimension的Ridial尺寸的所有属性基本列出。</p><p></p><p>Sub ReturnAcDbRadialDiamension()<br/> <br/> '文本类<br/> Dim DefineAcadMText As AcadMText 'AcDbMText<br/> <br/> '尺寸类<br/> Dim DefineAcadDimRotated As AcadDimRotated ' AcDbRotatedDimension<br/> Dim DefineAcadDimRadial As AcadDimRadial 'AcDbRadialDimension<br/> Dim DefineAcadDimDiametric As AcadDimDiametric 'AcDbDiametricDimension<br/> Dim DefineAcadDimAligned As AcadDimAligned 'AcDbAlignedDimension<br/> Dim DefineAcadDimAngular As AcadDimAngular 'AcDb2LineAngularDimension<br/> '平面线性类<br/> Dim DefineLine As AcadLine, DefineLineArray() As Variant 'AcDbLine<br/> Dim DefineArc As AcadArc 'AcDbArc<br/> Dim DefinePolyLine As AcadLWPolyline 'AcDbPolyline<br/> Dim Ent As AcadEntity<br/> 'Dim DrawingZombieEntity As AcadAttributeReference 'AcDbZombieEntity<br/> Dim LineCount As Integer<br/> ''<br/> <br/> LineCount = 1<br/> For Each Ent In ThisDrawing.ModelSpace<br/> Select Case Ent.ObjectName<br/> Case "AcDbRadialDimension1"<br/> Set DefineAcadDimRadial = Ent<br/> With DefineAcadDimRadial<br/> <br/> Debug.Print .AltRoundDistance<br/> Debug.Print .AltSuppressLeadingZeros<br/> Debug.Print .AltSuppressTrailingZeros<br/> Debug.Print .AltSuppressZeroFeet<br/> Debug.Print .AltSuppressZeroInches<br/> Debug.Print .AltTextPrefix<br/> Debug.Print .AltTextSuffix<br/> Debug.Print .AltTolerancePrecision<br/> Debug.Print .AltToleranceSuppressLeadingZeros<br/> Debug.Print .AltToleranceSuppressTrailingZeros<br/> Debug.Print .AltToleranceSuppressZeroFeet<br/> Debug.Print .AltUnits<br/> Debug.Print .AltUnitsFormat<br/> Debug.Print .AltUnitsPrecision<br/> Debug.Print .AltUnitsScale<br/> Debug.Print .ArrowheadBlock<br/> Debug.Print .ArrowheadSize<br/> Debug.Print .ArrowheadType<br/> Debug.Print .CenterMarkSize<br/> Debug.Print .CenterType<br/> Debug.Print .DimensionLineColor<br/> Debug.Print .DimensionLineWeight<br/> Debug.Print .DimLineSuppress<br/> Debug.Print .Fit<br/> Debug.Print .ForceLineInside<br/> Debug.Print .FractionFormat<br/> Debug.Print .Layer<br/> 'Debug.Print .LeaderLength<br/> Debug.Print .LinearScaleFactor<br/> Debug.Print .Measurement<br/> <br/> Debug.Print .PrimaryUnitsPrecision<br/> Debug.Print .RoundDistance<br/> <br/> Debug.Print .SuppressZeroFeet<br/> Debug.Print .SuppressZeroInches<br/> Debug.Print .StyleName<br/> <br/> '文字部分<br/> Debug.Print .TextColor<br/> Debug.Print .TextInside<br/> Debug.Print .TextInsideAlign<br/> Debug.Print .TextGap<br/> Debug.Print .TextHeight<br/> Debug.Print .TextMovement<br/> Debug.Print .TextOutsideAlign<br/> Debug.Print .TextOverride<br/> Debug.Print .TextPosition(0), .TextPosition(1), .TextPosition(2)<br/> Debug.Print .TextPrefix<br/> Debug.Print .TextRotation<br/> Debug.Print .TextStyle<br/> Debug.Print .TextSuffix<br/> <br/> Debug.Print .ToleranceSuppressZeroFeet<br/> Debug.Print .ToleranceSuppressZeroInches<br/> Debug.Print .UnitsFormat<br/> End With<br/> Case "AcDbMText"<br/> Debug.Print Ent.ObjectName<br/> Set DefineAcadMText = Ent<br/> Debug.Print TypeName(DefineAcadMText)<br/> <br/> Debug.Print DefineAcadMText.TextString<br/> With DefineAcadMText<br/> Debug.Print .ObjectID<br/> Debug.Print .TextString<br/> End With</p><p> <br/> End Select<br/> Next Ent<br/> 'Debug.Print "", LineCount<br/>End Sub</p>
页:
[1]