Hi,
I think i have found an issue with the "Automated Centerlines", in generating center marks for punch centers.
I had written a code that sets te centermarks for the assemblies and parts in a Drawing:
Private Sub clickme() Dim oDoc As DrawingDocument Set oDoc = ThisApplication.ActiveDocument Dim temp As AutomatedCenterlineSettings Dim sheet_ As Sheet Set sheet_ = oDoc.ActiveSheet Dim view_ As DrawingView Dim center_m As Centermark Dim center_l As Centerline For Each view_ In sheet_.DrawingViews Call view_.GetAutomatedCenterlineSettings(temp) temp.ProjectionNormalAxis = True temp.ApplyToCylinders = True temp.ApplyToHoles = True temp.ApplyToPunches = True temp.ArcAngleThreshold = 3.14 Call view_.SetAutomatedCenterlineSettings(temp) Next End Sub
What i observed was, that, after this block of code was executed, the centermarks were created, but for slot features (created using punch tool), that were a pattern , a single vertical centerline common to the n-slots was generated instead of the individual centermarks.
The inconvenience that this creates is when the centerline thus created overshoots way beyond the view and in my case overshot and interfered with the top view.
I could find a workaround to this, by deselecting the "apply to rectangular pattern" under automated centerline settings manually for the views, and both the horizontal and vertical marks on the punches were centermarks.
Is this by design?
I'm using inventor version 2013.