<?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: Changing ipart member in a drawing in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876952#M98842</link>
    <description>&lt;PRE&gt;Dim DV As DrawingView = ActiveSheet.View("VIEW1").View
DV.ActiveMemberName = "iPartTest-03"&lt;/PRE&gt;&lt;P&gt;Turns out it's even easier in iLogic.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 15:04:51 GMT</pubDate>
    <dc:creator>clutsa</dc:creator>
    <dc:date>2019-06-27T15:04:51Z</dc:date>
    <item>
      <title>Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876716#M98838</link>
      <description>&lt;P&gt;I would like to know If an ilogic rule can be written that would do the same thing as If one was to go into the base view settings in a drawing and change out the ipart member that is being used within the drawing?&amp;nbsp; screencast video is attached.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:57:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876716#M98838</guid>
      <dc:creator>J.Oye</dc:creator>
      <dc:date>2019-06-27T13:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876927#M98841</link>
      <description>&lt;PRE&gt;Sub ChangeiFactoryViewMember()
    Dim app As Application
    Dim IDW As DrawingDocument

    Set app = ThisApplication
    Set IDW = app.ActiveDocument
    Dim DV As DrawingView
    Set DV = IDW.ActiveSheet.DrawingViews(1)
    DV.ActiveMemberName = "iPartTest-02"
    

End Sub&lt;/PRE&gt;&lt;P&gt;You'll want to add error trapping and some code to figure out what member you want to change to but it's fairly straight forward.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Sorry just realized I posted VBA code not iLogic. I'll do a new one for iLogic... just a minute.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876927#M98841</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2019-06-27T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876952#M98842</link>
      <description>&lt;PRE&gt;Dim DV As DrawingView = ActiveSheet.View("VIEW1").View
DV.ActiveMemberName = "iPartTest-03"&lt;/PRE&gt;&lt;P&gt;Turns out it's even easier in iLogic.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8876952#M98842</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2019-06-27T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8877097#M98844</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;osheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Activesheet&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;osheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;(1)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;RefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;OriginDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;=  &lt;SPAN&gt;RefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocuments&lt;/SPAN&gt;(1)
 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFactory&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;iPartFactory&lt;/SPAN&gt; = &lt;SPAN&gt;OriginDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;iPartFactory&lt;/SPAN&gt;
		
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMemberList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN&gt;To&lt;/SPAN&gt; &lt;SPAN&gt;OriginDoc&lt;/SPAN&gt;.&lt;SPAN&gt;componentdefinition&lt;/SPAN&gt;.&lt;SPAN&gt;iPartFactory&lt;/SPAN&gt;.&lt;SPAN&gt;TableRows&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt;
	&lt;SPAN&gt;oMember&lt;/SPAN&gt; = &lt;SPAN&gt;OriginDoc&lt;/SPAN&gt;.&lt;SPAN&gt;componentdefinition&lt;/SPAN&gt;.&lt;SPAN&gt;iPartFactory&lt;/SPAN&gt;.&lt;SPAN&gt;TableRows&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;i&lt;/SPAN&gt;).&lt;SPAN&gt;MemberName&lt;/SPAN&gt;
	&lt;SPAN&gt;oMemberList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oMember&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oValue&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;InputListBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Select Member"&lt;/SPAN&gt;, &lt;SPAN&gt;oMemberList&lt;/SPAN&gt;, &lt;SPAN&gt;oMemberList&lt;/SPAN&gt;(0), &lt;SPAN&gt;"Ilogic"&lt;/SPAN&gt;, &lt;SPAN&gt;"Available Members"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oValue&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveMemberName&lt;/SPAN&gt; = &lt;SPAN&gt;oValue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hi, Here I share an ilogic code. It seemed to be a simple task but the truth gave me headaches.&lt;BR /&gt;Try to generate a list box with the contents of the ranks of ipart members. To achieve this, I had to take the reference document and here there was a problem, open the derivative document, the one that does not have the table, then it is necessary to refer again to the document of origin of the ipart. Then all the members of ipart must be generated and saved, because if they are not saved, they will not be able to change the reference in the view.&lt;BR /&gt;I hope I have been clear and that the code is useful for you. regards&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8877097#M98844</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-27T15:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8877134#M98847</link>
      <description>&lt;P&gt;Much appreciated clutsa, code worked out great!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/8877134#M98847</guid>
      <dc:creator>J.Oye</dc:creator>
      <dc:date>2019-06-27T15:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/10369230#M125213</link>
      <description>&lt;P&gt;I want auto-update ipart view, placed in idw, as ipart changes its configuration &amp;amp; lengths,&lt;BR /&gt;with your solution I am Unable to get desired output as of now, Kindly tell me how to use this Programme or other logic program?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 08:02:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/10369230#M125213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-07T08:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/11487116#M143947</link>
      <description>&lt;P&gt;Hi. What about if I use İassembly rather than ipart in the drawing? I would appraciate if you help me. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:34:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/11487116#M143947</guid>
      <dc:creator>ulasdeniz</dc:creator>
      <dc:date>2022-10-17T06:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ipart member in a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/11493684#M144058</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/auto-updation-of-drawing-views-of-iparts-to-active-factory/m-p/10376920#M125339" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is a post working with iassemblies on a drawing.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/changing-ipart-member-in-a-drawing/m-p/11493684#M144058</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-10-19T14:58:47Z</dc:date>
    </item>
  </channel>
</rss>

