<?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 Get date from excel to Custom Property in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8112900#M87051</link>
    <description>&lt;P&gt;Yes, if no confidential.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 02:45:08 GMT</pubDate>
    <dc:creator>dgreatice</dc:creator>
    <dc:date>2018-07-06T02:45:08Z</dc:date>
    <item>
      <title>Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110588#M87046</link>
      <description>&lt;P&gt;We have a Project Excel sheet that goves us the delivery time to finish a Project that our PM fills with some dates for each Project we are currently developing.&lt;/P&gt;&lt;P&gt;I have the next code but the date on the spreadsheet comes back as numbers in the custom Iproperty,&amp;nbsp;&lt;/P&gt;&lt;P&gt;the custom iprop does not get any value if I set it as Date, and gives me random numbers if I set it up as Text.&lt;/P&gt;&lt;P&gt;We search the row by Project name&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPROJ&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDATE&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;

&lt;SPAN&gt;oPROJ&lt;/SPAN&gt; = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;)
&lt;SPAN&gt;'oDATE = iProperties.Value("Custom", "DEADLINE")&lt;/SPAN&gt;

&lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;"X:\ILOGIC\PROJECT_TEST.xlsx"&lt;/SPAN&gt;, &lt;SPAN&gt;"CURRENT"&lt;/SPAN&gt;)

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;rowPR&lt;/SPAN&gt; = 3 &lt;SPAN&gt;To&lt;/SPAN&gt; 100

&lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN&gt;"A"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;rowPR&lt;/SPAN&gt;) = &lt;SPAN&gt;oPROJ&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;

 &lt;SPAN&gt;oDATE&lt;/SPAN&gt; =  &lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN&gt;"B"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;rowPR&lt;/SPAN&gt;)

&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"DEADLINE"&lt;/SPAN&gt;)= &lt;SPAN&gt;oDATE&lt;/SPAN&gt;


&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;Save&lt;/SPAN&gt;
&lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 07:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110588#M87046</guid>
      <dc:creator>j.romo</dc:creator>
      <dc:date>2018-07-05T07:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110645#M87047</link>
      <description>&lt;P&gt;Change this line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-page"&gt;&lt;CENTER&gt;&lt;DIV class="MinimumWidthContainer"&gt;&lt;DIV class="min-width-wrapper"&gt;&lt;DIV class="min-width"&gt;&lt;DIV class="lia-content"&gt;&lt;DIV class="lia-quilt lia-quilt-reply-page lia-quilt-layout-two-column-main-side lia-top-quilt"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-panel lia-panel-section lia-component-editor"&gt;&lt;DIV class="lia-decoration-border"&gt;&lt;DIV class="lia-decoration-border-content"&gt;&lt;DIV&gt;&lt;DIV class="lia-panel-content-wrapper"&gt;&lt;DIV class="lia-panel-content"&gt;&lt;DIV class="lia-panel-message message-uid-8110588"&gt;&lt;DIV class="lia-message-view-wrapper lia-js-data-messageUid-8110588 lia-component-forums-widget-message-view-two"&gt;&lt;DIV class="MessageView lia-message-view-forum-message lia-message-view-display lia-row-standard-read lia-thread-topic"&gt;&lt;DIV class="lia-quilt lia-quilt-forum-message lia-quilt-layout-custom-forum-message"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-main-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-tooltip-trigger"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;PRE&gt;&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"DEADLINE"&lt;/SPAN&gt;)= Date.FromOADate(&lt;SPAN&gt;oDATE)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CENTER&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Jul 2018 08:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110645#M87047</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2018-07-05T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110726#M87048</link>
      <description>&lt;P&gt;Hello dgreatice&lt;/P&gt;&lt;P&gt;Didnt work, even changing the custom property to date or text.&lt;/P&gt;&lt;P&gt;found a work around , In the Spreadsheet the cells have to be as text for the code to work.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 08:49:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8110726#M87048</guid>
      <dc:creator>j.romo</dc:creator>
      <dc:date>2018-07-05T08:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8111050#M87049</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create that code with date type in data excel, not a text type. and my iProperties&amp;nbsp; is date value, and its work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 11:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8111050#M87049</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2018-07-05T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8111115#M87050</link>
      <description>&lt;P&gt;Thats weird&lt;/P&gt;&lt;P&gt;I can Share the IPT file and the XLSX file&lt;/P&gt;&lt;P&gt;if you want to take a look?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 12:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8111115#M87050</guid>
      <dc:creator>j.romo</dc:creator>
      <dc:date>2018-07-05T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Get date from excel to Custom Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8112900#M87051</link>
      <description>&lt;P&gt;Yes, if no confidential.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 02:45:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-get-date-from-excel-to-custom-property/m-p/8112900#M87051</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2018-07-06T02:45:08Z</dc:date>
    </item>
  </channel>
</rss>

