Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Based on the documentation and the helpful users of this forum, I've got an iLogic rule to automatically place a revision table of a specific style into a drawing. However, this inserts the revision table using the top left corner as the insertion point (our revision table adds new rows going up instead of going down).
Is it possible to use the bottom left corner as the insertion point on a revision table?
Thanks
Stephen
Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDrawingDoc.ActiveSheet
Dim oWidthRevTable As Double
oWidthRevTable = oDrawingDoc.UnitsOfMeasure.ConvertUnits(7+39/64,"in","cm") 'Set you custom width table
'Add Revision table
Dim oTablePt As Point2d
oTablePt = ThisApplication.TransientGeometry.CreatePoint2d(oSheet.Border.RangeBox.MaxPoint.X - oWidthRevTable, oSheet.TitleBlock.RangeBox.MaxPoint.Y)
If oSheet.RevisionTables.Count = 0 Then
Dim oRevTableId As RevisionTableStyle
oRevTableId = oDrawingDoc.StylesManager.RevisionTableStyles.Item("ABC RevTable")
Dim oRevTable As RevisionTable
oRevTable = oSheet.RevisionTables.Add2(oTablePt, True, True, True, "0", oRevTableId, )
Else
MessageBox.Show("Revision Table already exist", "Autodesk Inventor")
End If
Solved! Go to Solution.