Automated Centerlines

Automated Centerlines

breinkemeyer
Enthusiast Enthusiast
1,170 Views
8 Replies
Message 1 of 9

Automated Centerlines

breinkemeyer
Enthusiast
Enthusiast

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?

0 Likes
Accepted solutions (1)
1,171 Views
8 Replies
Replies (8)
Message 2 of 9

Ralf_Krieg
Advisor
Advisor

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
0 Likes
Message 3 of 9

theo.bot
Collaborator
Collaborator

if created with a revolve feature, you also need 

oSettings.ApplyToRevolutions = Tre

 

0 Likes
Message 4 of 9

breinkemeyer
Enthusiast
Enthusiast

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

0 Likes
Message 5 of 9

breinkemeyer
Enthusiast
Enthusiast

These were created as hole features.

0 Likes
Message 6 of 9

WCrihfield
Mentor
Mentor

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)

0 Likes
Message 7 of 9

theo.bot
Collaborator
Collaborator
Accepted solution

@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.

0 Likes
Message 8 of 9

breinkemeyer
Enthusiast
Enthusiast

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.

0 Likes
Message 9 of 9

WCrihfield
Mentor
Mentor

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)

0 Likes