title: How to change render style in CATIA V5 through Excel VBA?
body: <p>I wrote a macro that saves an image from CATIA, using the CaptureToFile method in the Viewer object. The macro works great, but only when the Render Style is "Parallel". Some of the designers in my company do not have the Render Style to "Parallel", so I want to change the Render Style to "Parallel" with the macro. </p>
  
  <p>There is a property in the TreeTabSettingAtt object, called RenderStyle. The documentation says that the property "Returns or sets the value to signify 
  whether the 3D Render Style is Parallel or Perspective". It seems to be exactly what I need. To get to that property, I need to get to the TreeTabSettingAtt object, which seems to be a SettingController in the SettingControllers collection, but I can't get to it because I don't know its object type. The latter is needed to be passed as an argument of the Item method of the setting controller collection object. Unfortunately, the Item method only takes a string, which I don't know.</p>
  
  <pre><code>sub CATMain()
  
      Dim catia as INFITF.Application
      Dim att as PROCESSITF.TreeTabSettingAtt
  
      Set catia = GetObject(, "catia.Application")
  
      Set att = catia.SettingControllers.Item("I dont know the object type of 
      TreeTabSettingAtt")
  
      att.RenderStyle "Parallel"
  
  End Sub
  </code></pre>
  
  <p>In the documentation, seen in the following link, the setting controller object type of many setting controller objects are listed, but some are missing including the object type for the TreeTabSettingAtt setting controller object.
  <a href="https://www.maruf.ca/files/caadoc/CAAScdInfTechArticles/CAAInfTabPageList.htm" rel="nofollow noreferrer">https://www.maruf.ca/files/caadoc/CAAScdInfTechArticles/CAAInfTabPageList.htm</a></p>