
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am looking for a solid way of defining With VBA Code whether the Arrows on a dimension will be on the inside or on the outside.
I Can set it one way or the other for everything and I can have some on the outside and others on the inside with code, but it is not consistent on which ones will receive the change.
It appears that maybe inventor VBA can't change the style after it is dimensioned?
Here is some code that I think should work but doesn't......Thanks for your help.
Dim oDrawDoc As DrawingDocument
Set oDrawDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDrawDoc.Sheets.Item(1)
Dim Counter As Long
Counter = 0
Dim oDrawingDim As DrawingDimension
For Each oDrawingDim In oSheet.DrawingDimensions
Counter = Counter + 1
' Add some formatted text to all dimensions on the sheet.
oDrawingDim.Text.FormattedText = """"
Dim oStyleDim As DimensionStyle
Set oStyleDim = oDrawingDim.Style
oStyleDim.LinearPrecision = kThirtySecondsFractionalLinearPrecision
If oDrawingDim.ModelValue <= (10 * 2.54) Then
oStyleDim.LinearArrowsInside = False
Debug.Print Counter
Debug.Print oDrawingDim.ModelValue
Else
oStyleDim.LinearArrowsInside = True
End If
Solved! Go to Solution.