Message 1 of 5

Not applicable
07-17-2017
08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
On using VBA to update some drawings I have found that the revision table is not always in the correct place once they've been updated.
I would like it to be sat against the border in the bottom left corner of the drawing but can't work out how. I assumed that the MinPoint of the border and revision table would be the same but cannot get the code to work.
Any advice?
Sub AlignRevBox() Set invDoc = ThisApplication.ActiveDocument Set oRevTable = invDoc.ActiveSheet.RevisionTables.Item(1) Dim RevPt As Point2d Dim BorderPt As Point2d Dim oTG As TransientGeometry Set BorderPt = invDoc.ActiveSheet.Border.RangeBox.MinPoint Debug.Print BorderPt.X, BorderPt.Y oTG = ThisApplication.TransientGeometry RevPt = oTG.CreatePoint2d(BorderPt.X, BorderPt.Y) oRevTable.RangeBox.MinPoint = RevPt End Sub
Solved! Go to Solution.