Community
I apologize for being so repetitive, I need to automatically insert the revision table in each drawing sheet, but when doing so the table adopts a position that is not adequate (see image). the board is inserted too far away and interferes with the sign frame. How can I insert it by defining a point .
Solved! Go to Solution.
Solved by A.Acheson. Go to Solution.
Can you attach the code your using? It looks like you need just to offset in both x and y direction from the border corner position.
Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.ActiveSheet
Dim position As Point2d = sheet.Border.RangeBox.MaxPoint
Dim table As RevisionTable = sheet.RevisionTables.Add2(position, True)
Dim tableWidth As Double = table.RangeBox.MaxPoint.X - table.RangeBox.MinPoint.X
Dim gap As Double = 0.9
' Get a new position in X direction
position.X = position.X - tableWidth - gap
' Get a new position in Y direction
position.Y = position.Y - gap
' Set the table to this new position.
table.Position = position
Can't find what you're looking for? Ask the community or share your knowledge.