ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
WMWilliam Miller26/06/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?