Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
NSBowser
2448 Views, 6 Replies

Automated Centerlines (API)

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)

 

5-24-2017 1-58-04 PM.jpg

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.