Message 1 of 11
Centralize Dimension Text

Not applicable
11-17-2017
08:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to edit the text on a dimension and at the same time center justify the text. I am able to do this, but when I add the line of code (oDim2.Text.FormattedText = oDim2.Text.VerticalJustification), the dimension appears justified with the text I added, but it has an unwanted series of trailing numbers (seen in the attached image). Any ideas of how to correct this? Thank you!
Dim oDim2 As GeneralDimension oDim2=oGeneralDims.AddLinear(oPt2,oSheet.CreateGeometryIntent(oBH),oSheet.CreateGeometryIntent(oTH)) String1 = (Parameter("PLATE MAG.iam.NO_OF_HOLES")/2)-1 & " SPACES @ " & RoundToFraction(Parameter("PLATE MAG.iam.INNER_LENGTH_HOLE_SPACING"),1/16,RoundingMethod.Round) & vbCrLf & " = " oDim2.text.FormattedText = oDim2.Text.VerticalJustification oDim2.text.formattedtext = String1 & oDim2.text.FormattedText oDim2.CenterText