<?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 rule will not run on another PC in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534192#M66516</link>
    <description>&lt;P&gt;We use an iLogic rule to set sheet numbers back to the master BOM. This has worked amazingly on my PC meanwhile on my co-workers PC the rule doesn't even run it doesn't show any kind of loading or anything. The other rules all work but then this one doesn't on his end. I'm at a complete loss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'start of ilogic codeDim oDoc As DrawingDocument:&lt;BR /&gt;oDoc = ThisDoc.Document&lt;/P&gt;&lt;P&gt;Dim oSheets As Sheets&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;Dim oViews As DrawingViews&lt;BR /&gt;Dim oView As DrawingView&lt;BR /&gt;Dim SheetNumber As String&lt;BR /&gt;i =1&lt;/P&gt;&lt;P&gt;oSheets = oDoc.Sheets&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For Each oSheet In oSheets&lt;BR /&gt;oViews = oSheet.DrawingViews&lt;BR /&gt;For Each oView In oViews&lt;BR /&gt;'capture the current view label&lt;BR /&gt;ViewLabel = oView.Name&lt;BR /&gt;oModelName = _&lt;BR /&gt;oView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName&lt;BR /&gt;Try&lt;BR /&gt;SheetNumber =Mid(oSheet.Name, InStr(1, oSheet.Name, ":") + 1)&lt;BR /&gt;i=1+1&lt;BR /&gt;iProperties.Value(oModelName, "Custom", "SHEET") = SheetNumber&lt;BR /&gt;&lt;BR /&gt;Catch&lt;BR /&gt;'do nothing if error&lt;BR /&gt;End Try&lt;BR /&gt;'End If&lt;BR /&gt;Next&lt;BR /&gt;Next&lt;BR /&gt;'end of ilogic code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes through on my PC and sets the sheets even on the drawing that he is working in but will not run on his. I was thinking it could be a windows verison problem but then why do the all of the other rules but this one work on his pc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on Windows 7 he is on Windows 10.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 15:16:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-31T15:16:33Z</dc:date>
    <item>
      <title>iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534192#M66516</link>
      <description>&lt;P&gt;We use an iLogic rule to set sheet numbers back to the master BOM. This has worked amazingly on my PC meanwhile on my co-workers PC the rule doesn't even run it doesn't show any kind of loading or anything. The other rules all work but then this one doesn't on his end. I'm at a complete loss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'start of ilogic codeDim oDoc As DrawingDocument:&lt;BR /&gt;oDoc = ThisDoc.Document&lt;/P&gt;&lt;P&gt;Dim oSheets As Sheets&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;Dim oViews As DrawingViews&lt;BR /&gt;Dim oView As DrawingView&lt;BR /&gt;Dim SheetNumber As String&lt;BR /&gt;i =1&lt;/P&gt;&lt;P&gt;oSheets = oDoc.Sheets&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For Each oSheet In oSheets&lt;BR /&gt;oViews = oSheet.DrawingViews&lt;BR /&gt;For Each oView In oViews&lt;BR /&gt;'capture the current view label&lt;BR /&gt;ViewLabel = oView.Name&lt;BR /&gt;oModelName = _&lt;BR /&gt;oView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName&lt;BR /&gt;Try&lt;BR /&gt;SheetNumber =Mid(oSheet.Name, InStr(1, oSheet.Name, ":") + 1)&lt;BR /&gt;i=1+1&lt;BR /&gt;iProperties.Value(oModelName, "Custom", "SHEET") = SheetNumber&lt;BR /&gt;&lt;BR /&gt;Catch&lt;BR /&gt;'do nothing if error&lt;BR /&gt;End Try&lt;BR /&gt;'End If&lt;BR /&gt;Next&lt;BR /&gt;Next&lt;BR /&gt;'end of ilogic code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes through on my PC and sets the sheets even on the drawing that he is working in but will not run on his. I was thinking it could be a windows verison problem but then why do the all of the other rules but this one work on his pc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on Windows 7 he is on Windows 10.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534192#M66516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534592#M66517</link>
      <description>&lt;P&gt;My guess is that the Windows 10 PC (the one on which the rule currently isn't working) has extension settings that differ from the Windows 7 (your) machine.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Should be in &lt;STRONG&gt;Control Panel -&amp;gt; Folder Options -&amp;gt; View -&amp;gt; Advanced Settings&lt;/STRONG&gt;. Make sure that the "&lt;STRONG&gt;Hide extensions for known file types&lt;/STRONG&gt;" is set to the same thing as the working machine.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:04:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534592#M66517</guid>
      <dc:creator>MegaJerk</dc:creator>
      <dc:date>2016-08-31T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534608#M66518</link>
      <description>Try removing the 'Try', 'Catch' and 'End Try' lines of code. Then you'll&lt;BR /&gt;see the error message on his machine that is probably being suppressed. It&lt;BR /&gt;might be something to do with the 'Mid' statement only working on older&lt;BR /&gt;.Net frameworks or something like that.&lt;BR /&gt;&lt;BR /&gt;Post the error message back here so someone can help you.&lt;BR /&gt;Luke</description>
      <pubDate>Wed, 31 Aug 2016 17:09:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534608#M66518</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2016-08-31T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534609#M66519</link>
      <description>&lt;P&gt;That was surprisingly easy to fix didn't even think to check there.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534609#M66519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534634#M66520</link>
      <description>&lt;P&gt;You da man Megajerk!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/6534634#M66520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule will not run on another PC</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/7445161#M75642</link>
      <description>&lt;BLOCKQUOTE&gt;Thank you, this solution slaved my issue.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN&gt;My guess is that the Windows 10 PC (the one on which the rule currently isn't working) has extension settings that differ from the Windows 7 (your) machine.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should be in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Control Panel -&amp;gt; Folder Options -&amp;gt; View -&amp;gt; Advanced Settings&lt;/STRONG&gt;&lt;SPAN&gt;. Make sure that the "&lt;/SPAN&gt;&lt;STRONG&gt;Hide extensions for known file types&lt;/STRONG&gt;&lt;SPAN&gt;" is set to the same thing as the working machine.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-will-not-run-on-another-pc/m-p/7445161#M75642</guid>
      <dc:creator>djen</dc:creator>
      <dc:date>2017-10-09T14:39:45Z</dc:date>
    </item>
  </channel>
</rss>

