The total code is large and complex but I will give an example:
gSWApp.ActiveDoc.ActiveView.FrameState = swConst.swWindowState_e.swWindowNormal
gSWApp.ActiveDoc.ActiveView.FrameLeft = 0
gSWApp.ActiveDoc.ActiveView.FrameTop = 0
gSWApp.ActiveDoc.ActiveView.FrameWidth = 500
gSWApp.ActiveDoc.ActiveView.FrameHeight = 700
'message to user to change the view
gMainAssembly.SaveAs2("file.tif", 0, True, True)
Hope this helps?
And as I mentioned. This worked fine before with regards to the size of the canvas.
Paul, you can attach the complete macro here using upload file option.
It is a bit difficult because it is not a macro it is a complete Windows Forms application coded in VB.Net. There is also a lot of setup loading files etc.
gMainAssembly is a ModelDoc2 object
qSWApp is the Solidworks application object