Message 1 of 6
View position
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been trying to automate some drawings, in the forum I found a code that gives the position of the view, but apparently the coordinate (0,0) is the center of the view, my question is, is it possible to have the position of the lower left corner of the view with respect to the sheet and know the size of the view that is on the sheet?
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oView As DrawingView
oView = oDoc.Sheets(3).DrawingViews(1)
Dim oPosition As Point2d
oPosition = oView.Position
MessageBox.Show(“PosX:” & oPosition.X/2.54 & “, PosY: “ & oPosition.Y/2.54)