Dim oDoc As DrawingDocument
oDoc = m_inventorApplication.ActiveDocument
Dim oView As DrawingView
Dim oViews As DrawingViews
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
oViews = oSheet.DrawingViews
Dim oCenterline As AutomatedCenterlineSettings
For Each oView In oViews
If oView.ReferencedDocumentDescriptor.ReferencedDocumentType = DocumentTypeEnum.kPartDocumentObject Then
'MsgBox(oView.Name)
Call oView.GetAutomatedCenterlineSettings(oCenterline)
oCenterline.ApplyToBends = True
oCenterline.ApplyToCircularPatterns = True
oCenterline.ApplyToCylinders = True
oCenterline.ApplyToFillets = True
oCenterline.ApplyToHoles = True
oCenterline.ApplyToPunches = True
oCenterline.ApplyToRectangularPatterns = True
oCenterline.ApplyToRevolutions = True
oCenterline.ApplyToSketches = True
oCenterline.ApplyToWorkFeatures = True
oCenterline.ProjectionNormalAxis = True
oCenterline.ProjectionParallelAxis = True
Call oView.SetAutomatedCenterlineSettings(oCenterline)
End If
Next