Alright, after far too long of messing about with different things I've got an example. One that others may be able to explain the math behind (For my sanity).
The below code will place a Centered rectangle on the view at the exact size of the view. An important note with sketches inside of drawings. When the sketch is a child of the sheet object. The 0, 0 origin location will be the bottom left of the sheet. However, if the sketch is a child of the drawing view, the 0,0 becomes the origin of the sketch. If you try to place a sketch object of any kind, using the view location, but have a drawing view sketch. It will appear off the sheet typically.
Now, What I don't understand is the conversions and math I had to manipulate to get this CenterPoint rectangle to be created properly. MY idea would have just been half the view height. However you will see in the code its more like a 1/6 of the view converted, this became some game of me logging and chasing values to make the rectangle at the proper size. To get the extra .5" on the edges, Its just a bit of addition on the end of the creation.
Sub main()
Dim App As Inventor.Application = ThisApplication
Dim oDoc As DrawingDocument = App.ActiveDocument
Dim oTG As TransientGeometry = App.TransientGeometry
Dim oSheet As Sheet = oDoc.Sheets.Item(1) 'only one sheet on doc
Dim OnlyView As DrawingView = oSheet.DrawingViews.Item(1) 'only one view on doc.
Dim ViewSketch As Sketch = OnlyView.Sketches.Add()
ViewSketch.Edit() 'You must edit the sketch to work within the view sketch.
Dim ViewCenterPoint As Point2d = oTG.CreatePoint2d(0, 0) 'The drawing sketch will always place the starting point in the center of the view.
Logger.Info("View width: " & OnlyView.Width & " View height: " & OnlyView.Height)
Dim HalfWidth As Double = OnlyView.Width / 4
Dim HalfHeight As Double = OnlyView.Height / 4
Logger.Info("Half Width: " & HalfWidth /2 & " Half height: " & HalfHeight /2)
Dim ViewCornerPoint As SketchPoint = ViewSketch.SketchPoints.Add(oTG.CreatePoint2d(HalfWidth /2, HalfHeight /2))
ViewSketch.SketchLines.AddAsTwoPointCenteredRectangle(ViewCenterPoint, ViewCornerPoint)
ViewSketch.ExitEdit() 'Exit the edit or leave ilogic stuck in sketch.
End Sub
This should give you enough insight to factor in what you'd like to do. If for whatever reason you need to create a rectangle based on the size of the item, rather than the view. Things will get more tricky and require others insight. I wrote like 60 lines before I gave up trying to convert drawing curves into doubles. Became more than I was wanting to investigate without direct experience. What I will add, is this is how my drawing template imports standard views. It then runs two views with an invisible rectangle built off the two views to run through a sorting algorithm. Making sure the imported views do not overlap.