1 Reply Latest reply on Jun 15, 2018 8:29 AM by Maciej Dykier

    EPDM Convert task JPEG improvement with Advanced Scripting option

    Maciej Dykier

      Hi, I am trying to create loads of pictures form EPDM , the problem is that some of the pictures are not visible due to users have saved and checked in models incorrectly with zoom/ ordination issue. I am trying to add script to the advance scripting option to help with picture zoom and orientation. However, its not working for me , would anyone know how to do it or is it even possible.

       

      1. swModel.ShowNamedView2 "*Isometric", -1 
      2. swModel.ViewZoomtofit2

       

      Thanks in advance

        • Re: EPDM Convert task JPEG improvement with Advanced Scripting option
          Maciej Dykier

          Thanks to our support service provider I have manged to get the answers to this. I hope this will be useful to some , it was to us.

          The script to make sure picture is in ISO and zoom-to-fit is :-

           

          'Fit Isometric View

              Set MyPart = swApp.ActiveDoc

              boolstatus = MyPart.SetUserPreferenceToggle(swUserPreferenceToggle_e.swDisplayPlanes, False)

              MyPart.ShowNamedView2 "*Isometric", 7

              MyPart.ViewDisplayHiddenremoved  ( remove this line if you want it shaded)

             MyPart.ViewZoomtofit2

           

          and should be past into advance scripting option window here:-