<?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: Help, Check if Part number = Filename, Change Case and add Stock Number. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541274#M127618</link>
    <description>&lt;P&gt;OK.&amp;nbsp; So that tip likely won't help you in this specific situation.&amp;nbsp; So in Inventor's API or iLogic, Document objects and this PropertySets object both have this property called 'Dirty'.&amp;nbsp; When you first open a document, the value of this property is False by default.&amp;nbsp; When anything happens while that document is open that modifies it in a way that may cause it to want to save when you close it, that will change the value of that property to True.&amp;nbsp; So checking the value of this property is one way of determining whether or not you may need to save a document.&amp;nbsp; Lets say I have a rule that checks the value of an iProperty, and if the value isn't what I'm expecting, it will then change its value.&amp;nbsp; If I just opened a document, then ran this rule, it may or may not have made any changes to that iProperty, because it may have not needed to change the value of the iProperty.&amp;nbsp; At the end of that rule, I may want to determine if any changes were made that may need to be saved.&amp;nbsp; I can check the value of that 'Dirty' property, and if its value is True, that means I should save the document, but if its value is False, I don't need to save the document, because no changes were made.&amp;nbsp; It's just one fairly simple way to avoid saving a document, if its not needed, in case it may take a long time to save the document, and you want to avoid if possible.&lt;/P&gt;
&lt;P&gt;So, just to recap, after reading your response, I don't believe you would benefit from using this technique here in this case.&amp;nbsp; It's just a tip to keep in mind as your future rules get more complex.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 18:57:35 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2021-08-12T18:57:35Z</dc:date>
    <item>
      <title>Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10524931#M127299</link>
      <description>&lt;P&gt;Hi All, I just started playing with iLogic and reading through all Forum posts to edit code to accomplish what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use Part1,Part2 etc. to name our parts and can include extra info after for example Part1 70x70x6 Angle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code that checks if part number is the same as file name then change Part number to Upper Case and if the Part number includes "PART"&amp;nbsp; I get the number of the part and set it to Stock Number (As I only want to set Stock number for certain parts)&lt;/P&gt;&lt;P&gt;If Part number is not the Same it Changes it to file name and does the rest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Reason I am Getting the Stock Numbers is for my Parts Lists as I cant be certain Item numbers In BOM is same as Part Number and 99% of the time I have to set it Manually and keep making sure it is correct by enabling the part number in parts list checking and the removing part number again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the Rule to Run After Open Document Trigger to make sure all Parts Assemblies and drawings have the Correct Part Number to Stop Errors from occurring in our drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our Parts Lists have Columns ITEM(Where I will now use Stock Number), Description, Mass and Material.&lt;/P&gt;&lt;P&gt;So Stock Number will now be used in our Balloons and Part detail labels Will Use Stock Number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the long Explanation, Here is my Question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Part Number is Already the same as Filename and is set to Uppercase and Stock Number is Correct, can I stop it From Doing it again and again every time I open that File. So Basically just Check and Exit if it is Correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stopping it from changing it every time will Reduce Processing time Immensely.&lt;/P&gt;&lt;P&gt;If my code is messy any Tips would be great!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before Rule&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Before Rule.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/949326iEFCF0B486AC556F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Before Rule.png" alt="Before Rule.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; After Rule&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="After Rule.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/949327iAE5573BCD88C3E16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="After Rule.png" alt="After Rule.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #db9652;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;FileName&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;PartNumber&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;)

&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;  &lt;SPAN style="color: #db9652;"&gt;UCase&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;PartNumber&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;UCase&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oDoc&lt;/SPAN&gt;)
	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;UCase&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;))
	
&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;  &lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Contains&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"PART"&lt;/SPAN&gt;) &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
	&lt;SPAN style="color: #db9652;"&gt;GetString&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Split&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;), &lt;SPAN style="color: #35b173;"&gt;" "&lt;/SPAN&gt;)
	&lt;SPAN style="color: #b2b2b5;"&gt;'Get First String Of Part Number, Get String from 5th Character(Starting Position), 5 Characters&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Stock Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #ce5c95;"&gt;Mid&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;GetString&lt;/SPAN&gt;(0), 5, 5)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
    &lt;SPAN style="color: #ce5c95;"&gt;Return&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt;

	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;oDoc&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;UCase&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;)) 
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; 	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Contains&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"PART"&lt;/SPAN&gt;) &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;

	&lt;SPAN style="color: #db9652;"&gt;GetString&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Split&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;), &lt;SPAN style="color: #35b173;"&gt;" "&lt;/SPAN&gt;)
	&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Stock Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #ce5c95;"&gt;Mid&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;GetString&lt;/SPAN&gt;(0), 5, 5)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;P.S. This was Compiled from Different posts about different changes adapted to fit my needs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10524931#M127299</guid>
      <dc:creator>helouise</dc:creator>
      <dc:date>2021-08-06T09:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525299#M127312</link>
      <description>&lt;P&gt;with exit sub&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Public Sub main
oDoc = ThisDoc.FileName(False)
PartNumber = iProperties.Value("Project", "Part Number")

If  UCase(PartNumber) = UCase(oDoc)
	iProperties.Value("Project", "Part Number") = UCase(iProperties.Value("Project", "Part Number"))
Exit Sub
If  iProperties.Value("Project", "Part Number").Contains("PART") Then
	GetString = Split(iProperties.Value("Project", "Part Number"), " ")
	'Get First String Of Part Number, Get String from 5th Character(Starting Position), 5 Characters
	iProperties.Value("Project", "Stock Number") = Mid(GetString(0), 5, 5)
End If
    Return

Else

	iProperties.Value("Project", "Part Number") = oDoc
	iProperties.Value("Project", "Part Number") = UCase(iProperties.Value("Project", "Part Number")) 
End If

If 	iProperties.Value("Project", "Part Number").Contains("PART") Then

	GetString = Split(iProperties.Value("Project", "Part Number"), " ")
	iProperties.Value("Project", "Stock Number") = Mid(GetString(0), 5, 5)
End If
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 11:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525299#M127312</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-08-06T11:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525825#M127335</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, thank you for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to check if the Stock number is correct and if it is, to then exit and do nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to do it this way, if there are no changes needed the part wont need saving as saving every part again reduces processing speed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code makes it much more automated but some of my assemblies contain more than 5000 parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:38:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525825#M127335</guid>
      <dc:creator>helouise</dc:creator>
      <dc:date>2021-08-06T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525833#M127336</link>
      <description>&lt;P&gt;Did the new code from the Part number help top solve the initial problem?&lt;/P&gt;
&lt;P&gt;I will help you further with Stock Number..&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:44:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10525833#M127336</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-08-06T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10533254#M127446</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, Sorry for the late reply.&lt;/P&gt;&lt;P&gt;Your code did clean it up, my code also worked but clearly yours is better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I Need to do is stop the Rule from running again if part number and Stock Number is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 07:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10533254#M127446</guid>
      <dc:creator>helouise</dc:creator>
      <dc:date>2021-08-10T07:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541123#M127613</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10150147"&gt;@helouise&lt;/a&gt;.&amp;nbsp; You mentioned before that you did not want to save the part again if no changes were needed, but i didn't see anything within the code for saving the part.&amp;nbsp; However, just in case this might be useful to you, there is a technique I often use in my rules that deal with iProperties.&amp;nbsp; I use this to avoid saving the file if it is not necessary.&amp;nbsp; When you access the iProperty sets the manual way (&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-337775FC-7B4C-4F03-8CA5-B46B65DAD2D8" target="_blank" rel="noopener"&gt;Document.PropertySets&lt;/A&gt;) the &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-E2737708-6D2C-4FF3-A66D-1793A890B2A3" target="_blank" rel="noopener"&gt;PropertySets&lt;/A&gt; object has a Property you can check called '&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-72F36330-1A7A-40D2-A754-4B2FFB8F4A32" target="_blank" rel="noopener"&gt;Dirty&lt;/A&gt;', which has a Boolean value that is ReadOnly.&amp;nbsp; If any iProperties have changed since the document was opened, this property will change to True.&amp;nbsp; At the end of a rule that may have changed some iProperties, where I would normally save and/or close the document, I check this value, and only Save if it is True.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B166FEBB95D67CFA84899D32D8E17FC1/emoticons/1f4a1.png" alt=":light_bulb:" title=":light_bulb:" /&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 17:49:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541123#M127613</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-12T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541231#M127616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I meant is if I open the file it runs the rule and then it requires a save. Even if the properties were correct the rule still changed it so then it will prompt for save if I want to close the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are many parts in assembly this then takes a lot of time when i press save.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I Just want the Rule to change the values if they are not correct otherwise do nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It needs to check if part number is in capitals and the stock number is indeed the correct one according to Part Number if it is the do nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please Elaborate on your post for checking if it is dirty, I dont completely understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies I am new to iLogic and this is a trial and Error process which takes a lot of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 18:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541231#M127616</guid>
      <dc:creator>helouise</dc:creator>
      <dc:date>2021-08-12T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541274#M127618</link>
      <description>&lt;P&gt;OK.&amp;nbsp; So that tip likely won't help you in this specific situation.&amp;nbsp; So in Inventor's API or iLogic, Document objects and this PropertySets object both have this property called 'Dirty'.&amp;nbsp; When you first open a document, the value of this property is False by default.&amp;nbsp; When anything happens while that document is open that modifies it in a way that may cause it to want to save when you close it, that will change the value of that property to True.&amp;nbsp; So checking the value of this property is one way of determining whether or not you may need to save a document.&amp;nbsp; Lets say I have a rule that checks the value of an iProperty, and if the value isn't what I'm expecting, it will then change its value.&amp;nbsp; If I just opened a document, then ran this rule, it may or may not have made any changes to that iProperty, because it may have not needed to change the value of the iProperty.&amp;nbsp; At the end of that rule, I may want to determine if any changes were made that may need to be saved.&amp;nbsp; I can check the value of that 'Dirty' property, and if its value is True, that means I should save the document, but if its value is False, I don't need to save the document, because no changes were made.&amp;nbsp; It's just one fairly simple way to avoid saving a document, if its not needed, in case it may take a long time to save the document, and you want to avoid if possible.&lt;/P&gt;
&lt;P&gt;So, just to recap, after reading your response, I don't believe you would benefit from using this technique here in this case.&amp;nbsp; It's just a tip to keep in mind as your future rules get more complex.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 18:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541274#M127618</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-12T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541401#M127621</link>
      <description>&lt;P&gt;first check if the Partnumber is already Ucase&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;If Not PartNumber = UCase(oDoc)
	iProperties.Value("Project", "Part Number") = UCase(iProperties.Value("Project", "Part Number"))
Exit Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Aug 2021 20:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10541401#M127621</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-08-12T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10542247#M127636</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, and what about the Stock number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It needs to check that as well.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 05:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/10542247#M127636</guid>
      <dc:creator>helouise</dc:creator>
      <dc:date>2021-08-13T05:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help, Check if Part number = Filename, Change Case and add Stock Number.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/13086787#M172960</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I have a similar issue which I am trying to solve, so basically, I have assembly idw's which I am updating. I have multiple parts and each one of them have stock number which I want to remove. I am doing it manually atm, I dont want to remove stock number from the iproperties but just on the idw. is there a way or code which I can use thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mkapoorG5CWX_0-1729044351061.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1421913iF6E04431E3C26002/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mkapoorG5CWX_0-1729044351061.png" alt="mkapoorG5CWX_0-1729044351061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to remove "basket support 2" but without manually clicking it and deleting it.&lt;/P&gt;&lt;P&gt;thanks, would appreciate the help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 02:07:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-check-if-part-number-filename-change-case-and-add-stock/m-p/13086787#M172960</guid>
      <dc:creator>mkapoorG5CWX</dc:creator>
      <dc:date>2024-10-16T02:07:37Z</dc:date>
    </item>
  </channel>
</rss>

