AnsweredAssumed Answered

How to get  quantity in Hole Table?

Question asked by Yong Ning on Jan 21, 2015
Latest reply on Jan 21, 2015 by Keith Rice

00.jpg

 

 

 

Follow code can get TableAnnotations

Hope get quantity . see picture?

**************************************

Private Sub del20150121()

   Dim SwApp As SldWorks.SldWorks, SwModel As ModelDoc2, SwDraw As DrawingDoc

      Set SwApp = Application.SldWorks

      Set SwModel = SwApp.ActiveDoc

      Set SwDraw = SwModel

   Dim SwFeat As Feature

      Set SwFeat = SwDraw.FeatureByName("HTable")

 

 

   Dim hTable As HoleTable, SwTabAnn As TableAnnotation

      Set hTable = SwFeat.GetSpecificFeature2

      Stop

      With hTable

         Debug.Print .GetTableAnnotationCount

         Set SwTabAnn = .GetTableAnnotations(0)

'''' How to get quantity in Hole Table?

      End With

      Stop

End Sub

Attachments

Outcomes