AnsweredAssumed Answered

Insert a Named Table?

Question asked by Patrick Malone on Feb 10, 2016
Latest reply on Feb 10, 2016 by Alice Caspari

I want to insert a named table from a file location.

Is this possible?

 

I tried starting with a recording and it only inserts a generic table not the table I want to specify.

Such as C:\TableFolder\Mytable.sldtbt

 

This is what I have so far.....

 

==

 

Dim swApp As Object

 

Dim Part As Object

Dim boolstatus As Boolean

Dim longstatus As Long, longwarnings As Long

 

Sub main()

 

Set swApp = _

Application.SldWorks

 

Set Part = swApp.ActiveDoc

Dim myTable As Object

Set myTable = Part.InsertTableAnnotation(0.235053697247706, 0.327115880733945, 1, 7, 6)

If Not myTable Is Nothing Then

   myTable.BorderLineWeight = 1

   myTable.GridLineWeight = 1

End If

End Sub

Outcomes