Revision Table Row height

Hi All,

We are trying to set the row height in the revision table in Solidworks. 

Our requirement is set the row height according to row content.

We need to set the different row height for different row in revision table. We have tried some api and set the row height.

even though if we set for example row height =5mm. when we manually check, it is not being applied.

Could you please guide use, how we can achieve this.

 

Answers 3
KC
KC 2026-01-03

Double click the row to set it to its minimum height per the current contents,

JS
JS 2026-01-03

Also make sure the Row Heights are not Locked, otherwise Auto Sizing will not work.  Video below.

JS
JS 2026-01-03

If you prefer a macro.

'by John R. Sitek
'03-JAN-2026
'This macro unlocks rows to enable auto resize of revision table rows on all sheets
Option Explicit

Sub Main()

Dim swApplication As SldWorks.SldWorks
Dim swDrawing As SldWorks.DrawingDoc
Dim swRevisionTableFeature As SldWorks.RevisionTableFeature
Dim swTableAnnotation As SldWorks.TableAnnotation
Dim vbFeatures As Variant, vbFeature As Variant
Dim vbRowCount As Integer

Set swApplication = Application.SldWorks
Set swDrawing = swApplication.ActiveDoc
vbFeatures = swDrawing.FeatureManager.GetFeatures(False)

'Loop features
For Each vbFeature In vbFeatures
   If vbFeature.GetTypeName2 = "RevisionTableFeat" Then
       Set swRevisionTableFeature = vbFeature.GetSpecificFeature
       Set swTableAnnotation = swRevisionTableFeature.GetTableAnnotations(0)
       'Unlock Revision Table Rows to allow autosizing
       For vbRowCount = 0 To swTableAnnotation.RowCount
           swTableAnnotation.SetLockRowHeight vbRowCount, False
           swTableAnnotation.SetRowHeight vbRowCount, 0.001, swTableRowColChange_TableSizeCanChange
       Next vbRowCount
   End If
Next vbFeature

End Sub