- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using the following code to apply automated Centerlines to what is basically a simple drawing of a washer. The washer is created by extruding the area between two circles, so there is not a hole feature. On the drawings, the topview is looking at the flat sides of the washer (OD, and ID) and the section is looking at a midplane cut (Thickness).
protected void applyAutomatedCenterlines() { AutomatedCenterlineSettings settings = DrawingDocument.DrawingSettings.AutomatedCenterlineSettings; settings.ApplyToCircularPatterns = true; settings.ApplyToCylinders = true; settings.ApplyToHoles = true; settings.ProjectionNormalAxis = true; settings.ProjectionParallelAxis = true; _topView.SetAutomatedCenterlineSettings(settings); _sectionView.SetAutomatedCenterlineSettings(settings); }
The result is that the centermark on the top of the washer is created, but the centerline on the section view is not.
If I select the section view afterwards and apply automated centerlines the settings I used above persit, and when applied, achieve the desired result.
I have confirmed that the _sectionView object is populated correctly.
Any thoughts why the automated version of this is not working using the same settings?
Here is a picture of the items I'm working with (desired center lines shown)
Thanks for any help!
Best of Luck
---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.
Solved! Go to Solution.