<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iLogic code for Visual styles - Shaded with edges in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3599630#M134777</link>
    <description>&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;When Inventor opens the document in visible mode it makes&amp;nbsp;the document&amp;nbsp;active and displays it in active view. At this momemt&amp;nbsp; you may change active view properties as desired. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Try the following rule:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;Dim oView As View = ThisApplication.ActiveView
oView.DisplayMode = DisplayModeEnum.kShadedWithEdgesRendering
oView.Update&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Then make this rule triggered by the event “After Open Document”.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Note that&amp;nbsp;Inventor document object has the collection of views, so you may also change properties of View objects in the collection Document.Views.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;DisplayModeEnum constants are discribed in the Inventor Programming Help:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kHiddenEdgeRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kIllustrationRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kMonochromeRendering, &lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kRealisticRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedWithEdgesRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedWithHiddenEdgesRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWatercolorRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeNoHiddenEdges, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeWithHiddenEdgesRendering&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2012 11:44:51 GMT</pubDate>
    <dc:creator>Vladimir.Ananyev</dc:creator>
    <dc:date>2012-08-29T11:44:51Z</dc:date>
    <item>
      <title>iLogic code for Visual styles - Shaded with edges</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3595210#M134776</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the script for it? Would like to have this script in my template for assemblies. So when user opens up the assembly it changes the visual style automatically.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 21:15:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3595210#M134776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-24T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for Visual styles - Shaded with edges</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3599630#M134777</link>
      <description>&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;When Inventor opens the document in visible mode it makes&amp;nbsp;the document&amp;nbsp;active and displays it in active view. At this momemt&amp;nbsp; you may change active view properties as desired. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Try the following rule:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;Dim oView As View = ThisApplication.ActiveView
oView.DisplayMode = DisplayModeEnum.kShadedWithEdgesRendering
oView.Update&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Then make this rule triggered by the event “After Open Document”.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;Note that&amp;nbsp;Inventor document object has the collection of views, so you may also change properties of View objects in the collection Document.Views.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;DisplayModeEnum constants are discribed in the Inventor Programming Help:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kHiddenEdgeRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kIllustrationRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kMonochromeRendering, &lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kRealisticRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedWithEdgesRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kShadedWithHiddenEdgesRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWatercolorRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeNoHiddenEdges, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeRendering, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Calibri"&gt;kWireframeWithHiddenEdgesRendering&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2012 11:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3599630#M134777</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2012-08-29T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for Visual styles - Shaded with edges</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3600634#M134778</link>
      <description>&lt;P&gt;Thanks o lot!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2012 21:35:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-visual-styles-shaded-with-edges/m-p/3600634#M134778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-29T21:35:17Z</dc:date>
    </item>
  </channel>
</rss>

