General table height

General table height

WIRMNS
Enthusiast Enthusiast
620 Views
4 Replies
Message 1 of 5

General table height

WIRMNS
Enthusiast
Enthusiast

I have insert a general table in my drawing.

Know I want every row to have the same height.

Is it possible to control the height of the table?

I can control the width of the column, but the Height?

 

0 Likes
Accepted solutions (1)
621 Views
4 Replies
Replies (4)
Message 2 of 5

Andrii_Humeniuk
Advisor
Advisor
Accepted solution

Hi @WIRMNS . This is an example of iLogic code that sets the row height to 1 cm (line 7). Check if this is what you needed.

Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, DrawingDocument)
If oDDoc Is Nothing Then Exit Sub
Dim oTables As CustomTables = oDDoc.ActiveSheet.CustomTables
If oTables.Count = 0 Then Exit Sub
Dim oTable As CustomTable = oTables(1)
For i As Integer = 1 To oTable.Rows.Count
	oTable.Rows(i).Height = 1 'cm
Next i

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature

0 Likes
Message 3 of 5

WIRMNS
Enthusiast
Enthusiast

Yes, this is what a need. Thx for quick reply.

0 Likes
Message 4 of 5

jenningsj8X9VK
Observer
Observer

This is the best Autodesk can do?  Some of us have no time nor interest in writing or modifying code for such a simple formatting change.  

Do better Guys.  There should be a field in which the user enters desired row height - should be an edit function when we right click on the table.  Excel has had that feature for 40 years.

Message 5 of 5

mike_osborne2
Community Visitor
Community Visitor

Seriously - you have to write or modify code to change the row height - wow that is backwards!

0 Likes