Hi Curtis,
Sorry it's been so long, this was put on the back burner for a while.
Anyway, near the very bottom of the code below, I am trying to tell it that if the drawing view 'type' is an orthagonal view and the 'style' is shaded then I want no view label shown. It does not do that, unfortunately. Can you see where I went astray?
'Controls whether or not to include the scale in the drawing view note, based on whether or not the view scale matches the 'initial view scale'
Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
Dim dScale As Double
oSheets = ThisDoc.Document.Sheets
For Each oSheet In oSheets
'get first view scale
dScale = oSheet.DrawingViews.Item(1).Scale
oViews = oSheet.DrawingViews
For Each oView In oViews
If dScale <> oView.Scale And oView.ViewType= 10501 Then
oView.ShowLabel = True
oPartNumber = "<StyleOverride Bold='True' Underline='True'><Property Document='model' PropertySet='Design Tracking Properties' Property='Part Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>PART NUMBER</Property></StyleOverride>"
oStockNumber = "<Br/><StyleOverride Bold='false' Underline='false'><Property Document='model' PropertySet='Design Tracking Properties' Property='Stock Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>STOCK NUMBER</Property></StyleOverride>"
oStringScale = "<Br/>SCALE <DrawingViewScale/>"
oQty ="<Br/>Qty: "
'add to the view label
oView.Label.FormattedText = oPartNumber & oStockNumber & oStringScale & oQty
Else If dScale = oView.Scale And oView.ViewType=10501 Then
oView.ShowLabel = True
oPartNumber = "<StyleOverride Bold='True' Underline='True'><Property Document='model' PropertySet='Design Tracking Properties' Property='Part Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>PART NUMBER</Property></StyleOverride>"
oStockNumber = "<Br/><StyleOverride Bold='false' Underline='false'><Property Document='model' PropertySet='Design Tracking Properties' Property='Stock Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>STOCK NUMBER</Property></StyleOverride>"
'oStringScale = "<Br/>SCALE <DrawingViewScale/>"
oQty ="<Br/>Qty: "
'add to the view label
oView.Label.FormattedText = oPartNumber & oStockNumber & oQty
Else If oView.ViewType= 10502 Then
oView.ShowLabel = True
oStringView="DETAIL <DrawingViewName/>"
oStringScale = "<Br/>SCALE <DrawingViewScale/>"
'add to the view label
oView.Label.FormattedText = oStringView & oStringScale
Else If oView.ViewType=10503 Then
oView.ShowLabel = True
oStringView = "SECTION <DrawingViewName/>-<DrawingViewName/>"
oStringScale = "<Br/>SCALE <DrawingViewScale/>"
'add to the view label
oView.Label.FormattedText = oStringView & oStringScale
Else If oView.ViewType=10501 And oView.ViewStyle=32259 Then
oView.ShowLabel = False
Else oView.ShowLabel = False
End If
Next
Next