<?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 (iLogic) Setting 'Design View Representation' for a specific subassembly in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/5900879#M119555</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very simple problem I'd say, but can't figure out how to do it:&lt;/P&gt;&lt;P&gt;I Want to control the 'Design View Representation' (named CD Draadmodel) of a specific subassembly (named 00001 - Main).&lt;/P&gt;&lt;P&gt;Thought something like the code below should work, but I'm not much of a programmer, and alas it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ThisApplication.ActiveDocument.ComponentDefinition("00001 - Main").RepresentationsManager.DesignViewRepresentation("CW Draadmodel").Activate&lt;/PRE&gt;&lt;P&gt;Does somebody know how to do this?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 12:14:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-10T12:14:53Z</dc:date>
    <item>
      <title>(iLogic) Setting 'Design View Representation' for a specific subassembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/5900879#M119555</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very simple problem I'd say, but can't figure out how to do it:&lt;/P&gt;&lt;P&gt;I Want to control the 'Design View Representation' (named CD Draadmodel) of a specific subassembly (named 00001 - Main).&lt;/P&gt;&lt;P&gt;Thought something like the code below should work, but I'm not much of a programmer, and alas it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ThisApplication.ActiveDocument.ComponentDefinition("00001 - Main").RepresentationsManager.DesignViewRepresentation("CW Draadmodel").Activate&lt;/PRE&gt;&lt;P&gt;Does somebody know how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 12:14:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/5900879#M119555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-10T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) Setting 'Design View Representation' for a specific subassembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/5903433#M119556</link>
      <description>&lt;P&gt;Try this. Pay attention to the :1 after your assembly name as it needs to be exactly the occurrence name as it shows up in the browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim ocomp As ComponentOccurrence
For Each ocomp In ThisApplication.ActiveDocument.ComponentDefinition.Occurrences
    If ocomp.Name = "00001 - Main:1" Then
    ocomp.SetDesignViewRepresentation ("CW Draadmodel", True)
	Exit For
    End If
Next ocomp&lt;/PRE&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 18:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/5903433#M119556</guid>
      <dc:creator>bobvdd</dc:creator>
      <dc:date>2015-11-11T18:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) Setting 'Design View Representation' for a specific subassembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/9973477#M119557</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;(&lt;SPAN&gt;"Sub Assembly Name"&lt;/SPAN&gt;).&lt;SPAN&gt;SetDesignViewRepresentation&lt;/SPAN&gt;(&lt;SPAN&gt;"View 1"&lt;/SPAN&gt;,,&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Just run this rule in parent assembly where you want to set specific design view representation of sub-assembly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Assembly Name = name appearing in browser for your subassembly&lt;/P&gt;&lt;P&gt;View 1 = name of your desired view representation in that sub assembly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attached image, Sub assembly name is "Chamber Insulation Riveted" and desired view representation is "Default". It's set by this one line rule only&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 13:18:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/9973477#M119557</guid>
      <dc:creator>Kunal_Bhansali</dc:creator>
      <dc:date>2021-01-02T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) Setting 'Design View Representation' for a specific subassembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/11204379#M138755</link>
      <description>&lt;P&gt;What will be the code for changing the Design View Representation of the Assembly itself, say View1 to View2, instead of the subassembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also my other rules will work on the design representation. i,e. if I'm in View 1 and running a logic parametric rule to change the size, which has the suppression of some components, whether the same will reflect in View 2 which is not activated.&lt;/P&gt;&lt;P&gt;if not, what should I do, so that it's updated in both the view Representation&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:20:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-setting-design-view-representation-for-a-specific/m-p/11204379#M138755</guid>
      <dc:creator>ArunS2DHBM</dc:creator>
      <dc:date>2022-05-31T10:20:03Z</dc:date>
    </item>
  </channel>
</rss>

