AnsweredAssumed Answered

Hide/Show a BOM Colum with API?

Question asked by Yong Ning on Jun 19, 2016
Latest reply on Jun 21, 2016 by Yong Ning

Hide column of BOM.jpg



Follow code , only hide BOM Table. don't hide column  of BOM Table.



Private Sub ll1()

    Dim SwApp As SldWorks.SldWorks, SwModel As ModelDoc2

        Set SwApp = Application.SldWorks

        Set SwModel = SwApp.ActiveDoc

    Dim SwSelMgr As SelectionMgr

        Set SwSelMgr = SwModel.SelectionManager

    Dim SwTabAnn As TableAnnotation

        Set SwTabAnn = SwSelMgr.GetSelectedObject5(1)

    Dim SwAnn As Annotation

        Set SwAnn = SwTabAnn.GetAnnotation

        SwAnn.Visible = swAnnotationVisibilityState_e.swAnnotationHidden

End Sub