I'm trying to write a macro that will insert a general tableinto a drawing. it works great, but I want it to point to a certaintable.
Does anyone know the code to do this?
This is what I got so far.
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager
swApp.ActiveDoc.ActiveView.FrameState = 1
Dim genTable As Object
Set genTable = Part.InsertTableAnnotation(0.01589136281956,0.2698647964003, 3, 3, 8)
If Not genTable Is Nothing Then
genTable.BorderLineWeight = 0
genTable.GridLineWeight = 0
End If
Part.ClearSelection2 True
End SubSolidworksApi macros





Does anyone know the code to do this?
This is what I got so far.
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager
swApp.ActiveDoc.ActiveView.FrameState = 1
Dim genTable As Object
Set genTable = Part.InsertTableAnnotation(0.01589136281956,0.2698647964003, 3, 3, 8)
If Not genTable Is Nothing Then
genTable.BorderLineWeight = 0
genTable.GridLineWeight = 0
End If
Part.ClearSelection2 True
End SubSolidworksApi macros