3 Replies Latest reply on Jan 28, 2015 10:22 AM by Deepak Gupta

    Zebra analysis

    Taro Yamada

      Hi all.

      Does anyone know how to turn zebra analysis on via API?

      In this time, I would like to display HDR file instead of zebra stripes.

      Thanks for any information.

        • Re: Zebra analysis
          Deepak Gupta

          Here are the quick codes to set the display of zebra stripes

          Option Explicit

          Dim swApp           As SldWorks.SldWorks

          Dim swModel         As SldWorks.ModelDoc2

          Dim swModelView     As ModelView

          Sub main()

              Set swApp = Application.SldWorks

              Set swModel = swApp.ActiveDoc

              Set swModelView = swModel.GetFirstModelView   

              swModel.SetZebraStripeData 12, 0.4, 16777215, 0   

              swModelView.DisplayZebraStripes = True

          End Sub

           

          I doubt that selecting of HDR has not been implemented yet in API. You may want to check with API team for further details.