Message 1 of 9
SetAutomatedCenterlineSettings not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using Inventor 2025.2.1.
I am struggling to get automated centerlines working in an add-in I am creating. When using the Automated centerlines command manually the centerlines and center marks are applied as expected. However the code below does not yield any results. That is it does not add any centerlines or center marks to the base view. Comparing to other examples it seems it should work. Can somebody point out what I am missing?
POSheet = PrintDoc.Sheets.Add(SheetSize, SheetOrientation, PO.FileNameWithState)
Dim BaseView As DrawingView = POSheet.DrawingViews.AddBaseView(CType(PO.Doc, _Document), PO.BaseViewPoint, PO.BaseViewScale, PO.BaseViewOrientation, PO.BaseViewStyle)
Dim ACLSettings As AutomatedCenterlineSettings = PrintDoc.DrawingSettings.AutomatedCenterlineSettings
ACLSettings.ApplyToCylinders = True
ACLSettings.ApplyToHoles = True
ACLSettings.ApplyToRevolutions = True
ACLSettings.ApplyToRectangularPatterns = True
ACLSettings.ProjectionNormalAxis = True
ACLSettings.ProjectionParallelAxis = True
BaseView.SetAutomatedCenterlineSettings(ACLSettings)