Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Centermark for Punches

0 REPLIES 0
Reply
Message 1 of 1
vince_123
378 Views, 0 Replies

Centermark for Punches

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.

 

centermark1.png

 

centermark2.png

 

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.

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report