AnsweredAssumed Answered

How to change label of Auxiliary view on a sheet via API?

Question asked by William Miller on Jun 26, 2018

Hi all,

 

I am creating a macro to reorder and re-label drawing detail, section, and auxiliary views. I have the Detail and Section views working perfectly, however the auxiliary views seem to have some issues. My code is below so far:

 

Case swDrawingViewTypes_e.swDrawingAuxiliaryView 'If view type is a section view:
                    Dim swAuxView As SldWorks.ProjectionArrow
                    Set swAuxView = swView.GetSection
                    If IsInArray(swAuxView.GetLabel, datumLabels()) Then
                        getNewChar
                        swAuxView.SetLabel Chr(curChar)
                        curChar = curChar - 1
                    Else
                        checkChar
                        swAuxView.SetLabel Chr(curChar)
                        curChar = curChar - 1
                    End If
                    swDraw.ForceRebuild

 

Is there any workaround for not having any specific handle to set the label of the auxiliary view?

Outcomes