Can anybody Help?
Does anybody know if it is possible, using a SolidWorks VBA macro, to check if a "Hole Table" exists on a drawing?
Many thanks in advance!!!
where is your code?
that should be possible with something like :
- first loop on the all drawing view
- for each view call fist table annotation and check if this is an hole annotation table
- if yes : win
- if no : get next table
something like that maybe ?
Dim swApp As Object Dim swModel As SldWorks.ModelDoc2 Dim swDraw As SldWorks.DrawingDoc Dim swView As SldWorks.View Dim swTable As SldWorks.TableAnnotation Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc Set swDraw = swModel Set swView = swDraw.GetFirstView 'get the first view Do While Not swView Is noting 'loop the view Set swTable = swView.GetFirstTableAnnotation 'get the fist table Do While Not swTable.Type = swTableAnnotation_HoleChart 'loop until it find an hole table Set swTable = swTable.GetNext Loop Loop
Retrieving data ...