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

Automated Centerlines

per the attachment, I can't seem to get the centerlines on the vertical holes.  here is my code...

 

AutomatedCenterlineSettings oSettings = cSE.oIDraftDoc.DrawingSettings.AutomatedCenterlineSettings;
oSettings.ProjectionParallelAxis = true;
oSettings.ApplyToCircularPatterns = true;
oSettings.ApplyToWorkFeatures = true;
oSettings.ApplyToHoles = true;
cSE.oIBaseView.SetAutomatedCenterlineSettings(oSettings);
cSE.oISectionView.SetAutomatedCenterlineSettings(oSettings);

 

any thoughts?

Ralf_Krieg
in reply to: breinkemeyer

Hello

 

Missing?

 

oSettings.ApplyToCylinders = true;

 

 

EDIT:

Is the section plane not parallel to the hole center line?


R. Krieg
RKW Solutions
www.rkw-solutions.com
theo.bot
in reply to: breinkemeyer

if created with a revolve feature, you also need 

oSettings.ApplyToRevolutions = Tre

 

breinkemeyer
in reply to: Ralf_Krieg

apply to cylinders had no effect.  The centerline is on the XY plate (see attachment).

breinkemeyer
in reply to: theo.bot

These were created as hole features.

WCrihfield
in reply to: breinkemeyer

I'm betting it may have to do with these settings (within the AutomatedCenterlineSettings):

CircularEdgeMaximumThreshold

CircularEdgeMinimumThreshold

We don't normally need to use those settings, but this may be what they are there for.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

theo.bot
in reply to: WCrihfield

@WCrihfield  these setting are used for radiuses. 

The problem is the hole definition on a cylindrical surface.

Probably inventor has difficulties to recognize the hole. I think you need to add the centerline in a different way, because automated centerlines won't give the required one. 

i created a little part as test, and when i use a small flat face it generate centerlines.

theobot_0-1637253715888.png

Maybe an idea for the idea station to add support for holes on cylindrical faces.

breinkemeyer
in reply to: theo.bot

Your absolutely correct.  I changed it to a projected view and it recognized the vertical holes but not the horizontal holes.  I'll just create them manually, but it would be nice if this was fixed.  thanks for the replys.

WCrihfield
in reply to: theo.bot

Yep.  I did the same just after posting.  Created a similar model, created the drawing with 5 views, one of which was a section view sliced down the center.  No matter how I set every possible setting, it would not put the center lines in every location I wanted.  This all seems very familiar too, like I've dealt with it before sometime, but I can't find where or how right now.  I have even created centerlines/centermarks on rectangular punch features in drawing views of parts before, but that was something planned for, not for general use.  We would most likely have to do a bit of a deep dive into the view's geometry objects, checking what features made them, then maybe using centerline bisector's or similar.  That seems a bit too inefficient though for most cases.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)