Hmmm... I never noticed that before. Thanks!
That will work with probably 90% or more of our drawings, but only if the text we need in a box is a single number or letter. On rare occasions, we may need to place a text string in a box. Is there any way to do that?
In the property manager of the annotations note there is a border feature.
Would that work for you?
Yes, it would, IF it were available while in a table cell, which it doesn't appear to be unless I'm missing something.
Typically, our drawings will have a dimenision (i.e. Dimension "C") which is a basic dimension. While what you showed above will help with the table header row, it won't help with the actual dimension values in the table, which we would also like to show in boxes.
Are you doing a SW based table or in imported Excel table?
Just a general table in SolidWorks.
What you are looking to do might be more of an API macro routine. Like in HTML code.
I unfortunately don't know of any other suggestions.
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swModelDocExt As SldWorks.ModelDocExtension
Dim swSelMgr As SldWorks.SelectionMgr
Dim swGeneralTableFeature As SldWorks.GeneralTableFeature
Dim swTableAnnotation As SldWorks.TableAnnotation
Dim nbrTableAnnotations As Long
Dim vTableAnnotations As Variant
Dim ii As Long
Dim anchorAttached As Boolean
Dim anchorType As Long
Dim nbrColumns As Long
Dim nbrRows As Long
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swModelDocExt = swModel.Extension
Set swSelMgr = swModel.SelectionManager
' Select general table feature in FeatureManager design tree
Set swGeneralTableFeature = swSelMgr.GetSelectedObject6(1, 0)
nbrTableAnnotations = swGeneralTableFeature.GetTableAnnotationCount
Debug.Print "Number of annotations = " & nbrTableAnnotations
vTableAnnotations = swGeneralTableFeature.GetTableAnnotations
Set swTableAnnotation = vTableAnnotations(0)
For ii = 0 To .RowCount
.Text(ii + 1, 0) = ii * 30
In 2013 you can make a general note with the border feature. Then cut and past the text into the table and it will keep the border. Not sure about 2010.