- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I have program in VB.Net to change drawing sheet format. It works but only for A4 format is OK - this format I need portrait. For A3, A2, A1 and A0 I need landscape of this format. How can I change it?
Here is code (I probably need to change kA3DrawingSheetSize to antoher name, but I do not know how):
Private Sub FormatA3_Click(sender As System.Object, e As System.EventArgs) Handles FormatA3.Click
Dim oDoc As Inventor.DrawingDocument = _invApp.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
'get current size
Dim Size As DrawingSheetSizeEnum
Size = oSheet.Size
'set new size
oSheet.Size = DrawingSheetSizeEnum.kA3DrawingSheetSize
'update sheet to see results
oSheet.Update()
End Sub
I tried kA4DrawingSheetSize, kA3DrawingSheetSize, kA2DrawingSheetSize, kA1DrawingSheetSize and kA0DrawingSheetSize but all are portraits.
Thank you very much for your answer.
Premysl
Solved! Go to Solution.