Hi everybody,
I'm using .newsheet3 to add sheets to a drawing.
Everything worked fine in Solidworks untill Solidworks 2014.
In Solidworks 2015 Sp3 the sheet will be added but it is empty, no titleblock is shown.
Here is a sample code for adding the sheet:
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Part.ClearSelection2 True
boolstatus = Part.NewSheet3("Test", 12, 12, 1, 5, True, "C:\ProgramData\SolidWorks\SOLIDWORKS 2015\lang\german\sheetformat\a3 - din.slddrt", 0.42, 0.297, "Standard")
Part.ActivateSheet ("Test")
End Sub
Can someone check this if it is a bug?!
Thanks.
Regards, Carsten
Hi evreybody,
Finally we found the reason for the Problem.
It was a Registry Key:
"Show Sheet Format Dialog For New Sheet"=dword:00000000
In Version before 2015 we had this setting set to 00000001, in SWX 2015 it has to be 00000000 other the sheet will be blank.
Regards, Carsten