7 Replies Latest reply on Oct 2, 2018 3:49 PM by Scott Werner

    Sheet scale to drawing view

    Eimantas Palevicius



      Is there is a way to set Drawing view scale to use Sheet scale? if so, what is API call?

        • Re: Sheet scale to drawing view
          Deepak Gupta

          swView.UseSheetScale = True


          Here is quick example. Select a view and run the macro.


          Option Explicit
          Sub main()
              Dim swApp                       As SldWorks.SldWorks
              Dim swModel                     As SldWorks.ModelDoc2
              Dim swDraw                      As SldWorks.DrawingDoc
              Dim swSelMgr                    As SldWorks.SelectionMgr
              Dim swView                      As SldWorks.View
              Set swApp = Application.SldWorks
              Set swModel = swApp.ActiveDoc
              Set swDraw = swModel
              Set swSelMgr = swModel.SelectionManager
              Set swView = swSelMgr.GetSelectedObject5(1)   
              swView.UseSheetScale = true
          End Sub