<?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: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1 in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122973#M86508</link>
    <description>&lt;P&gt;It seems this used to work as expected prior to 2018.3?&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/uncheck-quot-checked-date-quot-with-ilogic/td-p/8005675" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/uncheck-quot-checked-date-quot-with-ilogic/td-p/8005675&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-iproperty-date-to-blank-field/td-p/8060572" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-iproperty-date-to-blank-field/td-p/8060572&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 12:27:29 GMT</pubDate>
    <dc:creator>cmcconnell</dc:creator>
    <dc:date>2018-07-11T12:27:29Z</dc:date>
    <item>
      <title>iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1601</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8115008#M86309</link>
      <description>&lt;P&gt;Hello - I have created a form and rule that allows me to edit properties in the drawing and push them back to the model. It works great, except if some of my date fields are empty - the blanks are replaced with 01/01/2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;If (ThisDrawing.ModelDocument Is Nothing) Then Return

' Get referenced model
oModelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

'MessageBox.Show(oModelName, "Title")


'send properties to model from drawing
'Part Number
iProperties.Value(oModelName, "Project", "Part Number") = iProperties.Value("Project", "Part Number")
'Description
iProperties.Value(oModelName, "Project", "Description") = iProperties.Value("Project", "Description")
'Designer
iProperties.Value(oModelName, "Project", "Designer") = iProperties.Value("Project", "Designer")
'Creation Date
iProperties.Value(oModelName, "Project", "Creation Date") = iProperties.Value("Project", "Creation Date")
'Checked Date
iProperties.Value(oModelName, "Status", "Checked Date") = iProperties.Value("Status", "Checked Date")
'Checked By
iProperties.Value(oModelName, "Status", "Checked By") = iProperties.Value("Status", "Checked By")
'Eng. Approved Date
iProperties.Value(oModelName, "Status", "Eng. Approved Date") = iProperties.Value("Status", "Eng. Approved Date")
'Eng. Approved By
iProperties.Value(oModelName, "Status", "Eng. Approved By") = iProperties.Value("Status", "Eng. Approved By")
'Mfg. Approved Date
iProperties.Value(oModelName, "Status", "Mfg. Approved Date") = iProperties.Value("Status", "Mfg. Approved Date")
'Mfg. Approved By
iProperties.Value(oModelName, "Status", "Mfg. Approved By") = iProperties.Value("Status", "Mfg. Approved By")
'Revision Description
iProperties.Value(oModelName, "Summary", "Comments") = iProperties.Value("Summary", "Comments")
'Rev Date
iProperties.Value(oModelName, "Custom", "Rev Date") = iProperties.Value("Custom", "Rev Date")
'Rev Drawn By
iProperties.Value(oModelName, "Custom", "Rev Drawn By") = iProperties.Value("Custom", "Rev Drawn By")
'Rev Checked By
iProperties.Value(oModelName, "Custom", "Rev Checked By") = iProperties.Value("Custom", "Rev Checked By")
'Rev Approved By
iProperties.Value(oModelName, "Custom", "Rev Approved By") = iProperties.Value("Custom", "Rev Approved By")
'Category
iProperties.Value(oModelName, "Summary", "Category") = iProperties.Value("Summary", "Category")
'Model Comments
iProperties.Value(oModelName, "Custom", "Model Comments") = iProperties.Value("Custom", "Model Comments")
'Alert for Approval
iProperties.Value(oModelName, "Custom", "Alert for Approval") = iProperties.Value("Custom", "Alert for Approval")
'Company
iProperties.Value(oModelName, "Summary", "Company") = iProperties.Value("Summary", "Company")
'Vendor
iProperties.Value(oModelName, "Project", "Vendor") = iProperties.Value("Project", "Vendor")
'Status
iProperties.Value(oModelName, "Custom", "Status") = iProperties.Value("Custom", "Status")
'Mold
iProperties.Value(oModelName, "Custom", "Mold") = iProperties.Value("Custom", "Mold")
'Stock Number
iProperties.Value(oModelName, "Project", "Stock Number") = iProperties.Value("Project", "Stock Number")
'Catalog No.
iProperties.Value(oModelName, "Custom", "Catalog No.") = iProperties.Value("Custom", "Catalog No.")
'Machined From
iProperties.Value(oModelName, "Custom", "Machined From") = iProperties.Value("Custom", "Machined From")
'Process
iProperties.Value(oModelName, "Custom", "Process") = iProperties.Value("Custom", "Process")
'Molded Part Number
iProperties.Value(oModelName, "Custom", "Molded Part Number") = iProperties.Value("Custom", "Molded Part Number")
'Company
iProperties.Value(oModelName, "Custom", "Company") = iProperties.Value("Custom", "Company")

InventorVb.DocumentUpdate(True)&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2018 21:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8115008#M86309</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-07-06T21:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8121835#M86468</link>
      <description>&lt;P&gt;I have been able to get part of the way there,&amp;nbsp;by changing the code for each date property to that shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the values are not populated in the model, it does not overwrite them with 1/1/1601. However, if I delete the date value in my idw property and push it to my model it sees that as a value other than 1/1/1601 and fills the model property with 1/1/1601. &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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody know a way through this insanity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Creation Date
If iProperties.Value(oModelName, "Project", "Creation Date") &amp;lt;&amp;gt; "01/01/1601" Then
iProperties.Value(oModelName, "Project", "Creation Date") = iProperties.Value("Project", "Creation Date")
End If&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 22:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8121835#M86468</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-07-10T22:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122087#M86469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/410387"&gt;@cmcconnell&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current behavior for Data is using&amp;nbsp;"01/01/1601" as default value if the Date property being cleared, and return the specified value if it is checked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the code, if you delete the Date value from IDW, the Date property in IDW returns default "01/01/1601" and then the Date property of the model is overwritten in case of the model Date property being not "01/01/1601" since the value is set back to model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not quite sure I understand your question correctly. In the following code, do you want the set property from IDW to model being implemented or not if the Date property in model is not "01/01/1601"?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'Creation Date
If iProperties.Value(oModelName, "Project", "Creation Date") &amp;lt;&amp;gt; "01/01/1601" Then
iProperties.Value(oModelName, "Project", "Creation Date") = iProperties.Value("Project", "Creation Date")
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 03:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122087#M86469</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2018-07-11T03:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122925#M86506</link>
      <description>&lt;P&gt;Here is the problem: When I have adate property in the titleblock which is driven by the model property, and this property is empty (01/01/1601 in the back ground). When I use my rule to copy properties from my idw to my model, any date value that is empty shows up in the titleblock as 01/01/1601. To manually fix this, i need to go check and uncheck the date in the model property editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added that line to my rule so that it checks the model property for a value. If that value is 01/01/1601, it does not copy the 01/01/1601 from the idw. Which seems to satisfy that part of the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part which I am now having difficulty with: If I clear a date in my idw property editor and push my properties back to the model, the 01/01/1601 is copied to the model and then displayed in the tblock.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122925#M86506</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-07-11T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122973#M86508</link>
      <description>&lt;P&gt;It seems this used to work as expected prior to 2018.3?&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/uncheck-quot-checked-date-quot-with-ilogic/td-p/8005675" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/uncheck-quot-checked-date-quot-with-ilogic/td-p/8005675&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-iproperty-date-to-blank-field/td-p/8060572" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-iproperty-date-to-blank-field/td-p/8060572&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8122973#M86508</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-07-11T12:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125083#M86557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/410387"&gt;@cmcconnell&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience. Yes, there is&amp;nbsp;an&amp;nbsp;issue with 2018.3 for setting Date property to Nothing, we have the issue tracked and will get it fixed ASAP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What inventor version are you using? The issue is only reproducible with 2018.3, that I can see correct behavior with inventor 2019.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 06:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125083#M86557</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2018-07-12T06:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125792#M86571</link>
      <description>&lt;P&gt;Hmm I am using 2019. I will try and capture the behavior I am seeing in a video. It is entirely possible I am doing something wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 12:14:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125792#M86571</guid>
      <dc:creator>corym</dc:creator>
      <dc:date>2018-07-12T12:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125963#M86574</link>
      <description>&lt;P&gt;corym-2018-0014.mp4 is a&amp;nbsp;video of the original behavior (when I started this thread). Notice the dates 01/01/1601 appear in the titleblock when I have blank dates in my idw and i push the properties from my idw to the model. (I also show how to manually get rid of the 01/01/1601)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;corym-2018-0015.mp4 is a video of my fix using the if statements in my rule. If the date property in the model is not equal to 01/01/1601 it copies the property from the idw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with my fix is: if originally, I have a date in the properties, and want to remove it, I can make the property blank in the idw, but when I push it to the model, it shows as 01/01/1601. (back to the original issue)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8125963#M86574</guid>
      <dc:creator>corym</dc:creator>
      <dc:date>2018-07-12T13:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic: Copy iProperties from .idw to .ipt/.iam replaces empty dates w 1/1/1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8126044#M86578</link>
      <description>&lt;P&gt;Sorry - I posted with the wrong ID. cmcconnell and corym are one in the same...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-copy-iproperties-from-idw-to-ipt-iam-replaces-empty-dates/m-p/8126044#M86578</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-07-12T13:39:44Z</dc:date>
    </item>
  </channel>
</rss>

