<?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 rule to change iproperties ipt part without opening file in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777680#M58093</link>
    <description>k.&lt;BR /&gt;&lt;BR /&gt;So to clarify some more, this pre-written rule is used in the ipt's by the user even when it isn't called by this new proposed rule?&lt;BR /&gt;&lt;BR /&gt;Also, Is the intention to just run this rule from the idw, get the part document that corresponds with the idw, run the external rule, and only alter that single part?&lt;BR /&gt;&lt;BR /&gt;Also, is it only ever supposed to alter 1 ipt at a time/ be run from the idw to only change iProperties in 1 file?&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Aug 2015 14:03:21 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2015-08-19T14:03:21Z</dc:date>
    <item>
      <title>ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5775977#M58064</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help me .&lt;/P&gt;&lt;P&gt;I would like create a rule who call &amp;nbsp;external rule to change iproperties in a ipt&amp;nbsp;file&amp;nbsp;without opening ipt.&lt;/P&gt;&lt;P&gt;Is there a command line like &amp;nbsp;"&lt;SPAN&gt;auto&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;RunExternalRule(....)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I try it without succes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone can explain any method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's very nice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PKZ&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 14:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5775977#M58064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-18T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5776188#M58066</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must use an external application (.exe, etc) that accesses the Apprentice Server if you wish to run a rule to change iProperties outside of inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also just make a rule to run from a blank document in inventor that accesses Apprentice Server, or you can just access the files as deferred/invisible from within a rule in inventor.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 16:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5776188#M58066</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-18T16:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777094#M58074</link>
      <description>&lt;P&gt;Thanks mechmachine for you answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there not à way with&amp;nbsp;&amp;nbsp;a rule like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;modelname&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ModelDocument&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FullFileName&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN&gt;namerule&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"rulename&lt;/SPAN&gt;&lt;SPAN&gt;.vb&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;auto&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Automation&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;auto&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;RunExternalRule&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;modelname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"namerule&lt;/SPAN&gt;&lt;SPAN&gt;")&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for you help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 05:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777094#M58074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T05:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777096#M58075</link>
      <description>&lt;P&gt;I forgot to say that i want to do this from a idw file and want to update the ipt composant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 05:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777096#M58075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777624#M58088</link>
      <description>&lt;P&gt;So you already have a rule in your .ipt that changes the iProperties to what you want?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:45:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777624#M58088</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-19T13:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777646#M58089</link>
      <description>&lt;P&gt;No in fact i want to call an external rule who change iproperties &amp;nbsp;in the .ipt from the .idw opened.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:52:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777646#M58089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777652#M58090</link>
      <description>Do you already have this rule written? Or are you just wanting to make 2 rules to over complicate things?</description>
      <pubDate>Wed, 19 Aug 2015 13:54:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777652#M58090</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-19T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777662#M58091</link>
      <description>&lt;P&gt;yes i have already rules but i don't know how run it into a .ipt from .idw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:58:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777662#M58091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777680#M58093</link>
      <description>k.&lt;BR /&gt;&lt;BR /&gt;So to clarify some more, this pre-written rule is used in the ipt's by the user even when it isn't called by this new proposed rule?&lt;BR /&gt;&lt;BR /&gt;Also, Is the intention to just run this rule from the idw, get the part document that corresponds with the idw, run the external rule, and only alter that single part?&lt;BR /&gt;&lt;BR /&gt;Also, is it only ever supposed to alter 1 ipt at a time/ be run from the idw to only change iProperties in 1 file?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777680#M58093</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-19T14:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777718#M58094</link>
      <description>&lt;P&gt;ok&amp;nbsp;&lt;/P&gt;&lt;P&gt;i frequently create .idw &amp;nbsp;part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have to change iproperties in this .idw &amp;nbsp;but i also want to whange iproperties directly in the .ipt concerned like "&lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Creation Date&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Now" and others&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it will be very usefull to me &amp;nbsp;not opening and closing each .ipt 1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very nice for your help, i know that my english isn't very good but i also learn inthe end. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:18:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777718#M58094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777800#M58096</link>
      <description>&lt;P&gt;Here is a sub routine I made that can accomplish what you want with minor modifications. I left in the proper way to change iProps in case you ever need it. You should only need to change things in ChangeIDWiProps Sub amd the ChangeModeliProps Sub.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You shouldn't need to uncomment anything to get it working for you; just simply replace with the name of your external rule. HOWEVER, you SHOULD change your iProperty format in your external rule because simply using iProperties.Value("Project", ....) ONLY changes it for the active document, and will thus not work for running an external rule in a document that is not active (i.e.; it will just keep applying the changes inteded for the ipt to the idw). Good luck.&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;&lt;P&gt;&amp;nbsp;&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;&lt;PRE&gt;Sub Main()

Dim oDwgDoc As DrawingDocument
Try
	oDwgDoc = ThisApplication.ActiveDocument
Catch
	MsgBox("Use Drawing Document Instead")
	Exit Sub
End Try

Dim oSheet As Sheet = oDwgDoc.ActiveSheet
Dim oDrawingView As DrawingView = oSheet.DrawingViews.Item(1)
Dim oModelDoc As Document = ThisApplication.Documents.ItemByName(oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument.FullFileName)

ChangeIDWiProps(oDwgDoc)
ChangeModeliProps(oModelDoc)

End Sub

''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Sub ChangeIDWiProps(oDoc As DrawingDocument)

'iLogicVb.Automation.RunExternalRule([DOCUMENT OBJECT], [RULE NAME])
iLogicVb.Automation.RunExternalRule(oDoc,"Sheet Name Formatting.txt")

'http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html
'oDoc.PropertySets.Item("Inventor Summary Information").Item("Author").Value = ""
'oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value = ""
'oDoc.PropertySets.Item("Inventor Document Summary Information").Item("Manager").Value = ""
'oDoc.PropertySets.Item("Inventor User Defined Properties").Item("WO#").Value = ""

End Sub

''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Sub ChangeModeliProps(oDoc As Document)

'iLogicVb.Automation.RunExternalRule([DOCUMENT OBJECT], [RULE NAME])
iLogicVb.Automation.RunExternalRule(oDoc,"Sheet Name Formatting.txt")

'http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html
'oDoc.PropertySets.Item("Inventor Summary Information").Item("Author").Value = ""
'oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value = ""
'oDoc.PropertySets.Item("Inventor Document Summary Information").Item("Manager").Value = ""
'oDoc.PropertySets.Item("Inventor User Defined Properties").Item("WO#").Value = ""

End Sub&lt;/PRE&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>Wed, 19 Aug 2015 14:55:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777800#M58096</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-19T14:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777824#M58098</link>
      <description>&lt;P&gt;I have an iLogic rule that kind of does what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This rule looks through my .idw sheets and finds the part/assembly I am looking for based off of the part number, in this example it is looking for an assembly that has a part number that begins with MF, MR, MS, MV, AR, AA, AW, AX, or AD. &amp;nbsp;What it is doing is changing the Designer of the model to match the current user. &amp;nbsp;Sometimes we have someone create the models and someone else create the drawings.&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;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN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.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Designer&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Expression&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication.Username&lt;/SPAN&gt;
            
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;    

    &lt;SPAN&gt;Catch&lt;/SPAN&gt;
        &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Show&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Error: Finding assembly and overriding Designer.&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
    
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5777824#M58098</guid>
      <dc:creator>bretrick30</dc:creator>
      <dc:date>2015-08-19T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779086#M58130</link>
      <description>&lt;P&gt;Thank's very nice&amp;nbsp;MechMachineMan and&amp;nbsp;bretrick30 for these answers.&lt;/P&gt;&lt;P&gt;I'll try to undersatnd the syntax of these rules and i'll return &amp;nbsp;you feed back soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:55:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779086#M58130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779447#M58135</link>
      <description>&lt;P&gt;very well !&lt;/P&gt;&lt;P&gt;i try it , and it's very usefull for me.&lt;/P&gt;&lt;P&gt;i'll integrate it in my rules to easy change iproperties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i check if some iproperties are not completed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very nice MechMachine&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 09:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779447#M58135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic rule to change iproperties ipt part without opening file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779842#M58142</link>
      <description>&lt;P&gt;By using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If iProp.Value is Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If iProp.Value = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If iProp.Value.IsNullOrEmpty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 3 of these work by just checking the contents of the String Type Variable and any one would work for this case. If they have writing in them, but its not what you want, you have to compare the format then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ie; if your part number is supposed to be like 123-4567 we could check for the format usingthe like operator from vb.net (google "vb.net msdn like operator" for more info)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iProp.Value Like "###-####" &amp;nbsp; ' # is a number wildcard; just means it's a digit, - is the symbol itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or something simpler like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iProp.Value Like "*-*" &amp;nbsp; &amp;nbsp;'* is a wildcard when using the like operator; can be any char(number/letter/symbol) and any number of chars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;A href="https://msdn.microsoft.com/en-us/library/swf8kaxw.aspx)" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/swf8kaxw.aspx)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:29:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-to-change-iproperties-ipt-part-without-opening-file/m-p/5779842#M58142</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-20T13:29:09Z</dc:date>
    </item>
  </channel>
</rss>

