<?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 to automate &amp;quot;re-apply model properties&amp;quot; to a model sketch within a drawing view in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13046714#M172239</link>
    <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10752974"&gt;@brendan6HKZU&lt;/a&gt;&lt;/SPAN&gt; Did the information provided answer your question? If so, please use Accept Solution so that others may find this in the future. Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 11:01:29 GMT</pubDate>
    <dc:creator>CGBenner</dc:creator>
    <dc:date>2024-09-26T11:01:29Z</dc:date>
    <item>
      <title>iLogic to automate "re-apply model properties" to a model sketch within a drawing view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13034040#M172051</link>
      <description>&lt;P&gt;Looking for an iLogic code to automate "re-apply model properties" function within inventor drawing view anytime the model/view is updated. Currently I have a model sketch that I show in my view on the drawing. The sketch has an array of lines that has a specific color assigned to it. When the array adds lines, then snew lines come in without the assigned color in the sketch. I then click "re-apply model properties" after the update the model/view, and this then fixes the new lines to have the correct color. I want to automate this so I don't have to click this button anytime the model/view changes. See attached pic of where this button is in the model browser. Should be an easy solution, I just don't know how to code this button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brendan6HKZU_0-1726855956974.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1411733i5611FE97268BA179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brendan6HKZU_0-1726855956974.png" alt="brendan6HKZU_0-1726855956974.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 18:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13034040#M172051</guid>
      <dc:creator>brendan6HKZU</dc:creator>
      <dc:date>2024-09-20T18:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to automate "re-apply model properties" to a model sketch within a drawing view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13034320#M172053</link>
      <description>&lt;P&gt;People have dome some similar things to this. It seems you're working from assemblies so this should be pretty relevant:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-get-model-sketches-to-drawing-view/td-p/10125076" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-get-model-sketches-to-drawing-view/td-p/10125076&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no call to just get to that option as a true or false. You have to chase it through the drawing view using the referenced document descriptor. Then filter it out any other items, you have yours named so I imagine this will work very closely to what you're looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What a weird option in the model browser, it even has a hotkey in the drawing view. Good information to know though, it just indirectly solved one of my drawing problems.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 20:48:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13034320#M172053</guid>
      <dc:creator>J_Pfeifer_</dc:creator>
      <dc:date>2024-09-20T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to automate "re-apply model properties" to a model sketch within a drawing view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13046714#M172239</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10752974"&gt;@brendan6HKZU&lt;/a&gt;&lt;/SPAN&gt; Did the information provided answer your question? If so, please use Accept Solution so that others may find this in the future. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13046714#M172239</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-09-26T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to automate "re-apply model properties" to a model sketch within a drawing view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13046809#M172242</link>
      <description>&lt;P&gt;I took the rule from the posted article above. I modified line 4 to match my drawing view number (35) and modified the sketch name on line 17 to match my sketch that is in the drawing. I then get the error message that is posted in the picture below. Please advise on how I can fix this if possible. I think this could work but there is a chance I am not properly applying the code. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brendan6HKZU_0-1727350918874.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414415i53D0ADD1B8A5C718/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brendan6HKZU_0-1727350918874.png" alt="brendan6HKZU_0-1727350918874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brendan6HKZU_1-1727351005970.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414419i70808D0938511505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brendan6HKZU_1-1727351005970.png" alt="brendan6HKZU_1-1727351005970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:47:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13046809#M172242</guid>
      <dc:creator>brendan6HKZU</dc:creator>
      <dc:date>2024-09-26T11:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to automate "re-apply model properties" to a model sketch within a drawing view</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13273139#M175780</link>
      <description>&lt;P&gt;Hi, you need to create a geometry proxy for the sketch first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;if oSketch.Name = "Wire/Swage Sketch" Then&lt;BR /&gt;    Call&lt;/SPAN&gt; &lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;CreateGeometryProxy&lt;/SPAN&gt;(oPartDef.&lt;SPAN&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;), o&lt;SPAN&gt;SketchProxy&lt;/SPAN&gt;)&lt;BR /&gt;    oView.setIncludeStatus(oSketchProxy, True)&lt;BR /&gt;    oView.setVisablity(oSketchProxy, True)&lt;BR /&gt;End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, this wont re-apply model properties though. once the sketch has already been set to be included, if the sketch properties are then updated eg. line colour, the sketch does not update, even if you run this rule again... to update, perhaps set include status to false, update, then set to true again forcing the IDW to get the sketch again with the updated properties.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 09:09:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-automate-quot-re-apply-model-properties-quot-to-a/m-p/13273139#M175780</guid>
      <dc:creator>Paul1084</dc:creator>
      <dc:date>2025-01-21T09:09:58Z</dc:date>
    </item>
  </channel>
</rss>

