2 Replies Latest reply on Mar 23, 2016 6:07 AM by Stefan Berlitz

    Behavior .NewSheet3 in Solidworks 2015 Sp3

    Carsten Wesseler

      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