iLogic Drawing Adding Sheets

iLogic Drawing Adding Sheets

Anonymous
Not applicable
490 Views
1 Reply
Message 1 of 2

iLogic Drawing Adding Sheets

Anonymous
Not applicable

The Goal is to add a sheet (with the DWG AP Template)and insert the Top View of the Part into the sheet. I can add the sheet but am unable to use the template I want. It comes in as a C Size Sheet. Doesn't help I have a Nasty Cold. Any Help would be appreciated. Thanks.

0 Likes
491 Views
1 Reply
Reply (1)
Message 2 of 2

HermJan.Otterman
Advisor
Advisor

Hello Steve,

 

 

I'm not shure what you are asking.

 

if you can add a sheet, you already have a file open, why do you need a template?

 

If you have no file open then you need a template:

 

 

Private Sub CreateNewDrawingsFromTemplate()

Dim oDrawDoc As Inventor.DrawingDocument = Nothing

'open template

Try

oDrawDoc = Thisapplication.Documents.Open("DWG AP", True)

Catch ex As Exception

MsgBox("template file does not exist")

End Try

End Sub

 

 

when you add the sheet, you can specify the size

Syntax

Sheets.Add( [Size] As DrawingSheetSizeEnum, [Orientation] As PageOrientationTypeEnum, [SheetName] As String, [Width] As Variant, [Height] As Variant ) As Sheet

 

 

 

 

 

 

 

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes