Error getting Sheet Format by Excel VBA
Hi,
I am very new to Creo customization, I was looking to get number of sheets and sheet format of current drawing. I am able to get number of sheets but unfortunately I am not able to get Sheet Format.
Here is the code below
Set conn = asynconn.Connect("", "", ".", 5)
Set session = conn.session
Set model = session.CurrentModel
Set oSheetOwner = model
Dim oSheetallNumber As Long
oSheetallNumber = oSheetOwner.NumberOfSheets
Dim SheetFormat As IpfcDrawingFormat
Set SheetFormat = oSheetOwner.GetSheetFormat(1)
"SheetFormat" does not have any value in this case.
