<?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 Betreff: Save Parameters of a model in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12870685#M1607</link>
    <description>This works for me&lt;BR /&gt;&lt;BR /&gt;entity $model = input entity model 'select a model'&lt;BR /&gt;string $msg = 'Modified on: ' + local_time($model.ModificationTime).timestamp + CRLF&lt;BR /&gt;$msg = $msg + 'Created on: ' + local_time($model.ImportTime).timestamp + CRLF&lt;BR /&gt;$msg = $msg + 'Model path: ' + $model.Path + CRLF&lt;BR /&gt;&lt;BR /&gt;message info $msg&lt;BR /&gt;</description>
    <pubDate>Mon, 01 Jul 2024 06:17:27 GMT</pubDate>
    <dc:creator>kevin.hammond3WX4X</dc:creator>
    <dc:date>2024-07-01T06:17:27Z</dc:date>
    <item>
      <title>Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12866585#M1601</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1381072i81BBFD7EDDA4EE30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Model.JPG" alt="Model.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Can someone help me with this situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i save the information of "Modified On", "Created On" and "Path" of a model in 3 Strings Variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the parameters by using:&lt;BR /&gt;print entity parameters model '24-2744-eaa'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i can´t acess them by using:&lt;BR /&gt;print entity parameters model '24-2744-eaa' Modified-On&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;print entity parameters model ('24-2744-eaa').modified-on&lt;/P&gt;&lt;P&gt;I am working with PowerMill 2015&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12866585#M1601</guid>
      <dc:creator>hugo_wy</dc:creator>
      <dc:date>2024-06-28T09:40:47Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12866827#M1602</link>
      <description>&lt;P&gt;try this macro:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $model = input entity model 'select a model'
string $msg = 'Modified on: ' + $model.ModificationTime + CRLF
$msg = $msg + 'Created on: ' + $model.ImportTime + CRLF
$msg = $msg + 'Created on: ' + $model.Path + CRLF

message info $msg&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12866827#M1602</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-06-28T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867049#M1603</link>
      <description>&lt;P&gt;Thanks for the fast response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the result of the macro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1381167iEDF45F853A4A0DA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="result.JPG" alt="result.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The "Modified on" and "Created on" returns a crazy number.&lt;/P&gt;&lt;P&gt;It should return "2024-06-27 16:40"&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:22:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867049#M1603</guid>
      <dc:creator>hugo_wy</dc:creator>
      <dc:date>2024-06-28T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867269#M1604</link>
      <description>&lt;P&gt;Maby try this function&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;time_to_string($model.ModificationTime,'M') &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867269#M1604</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-06-28T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867299#M1605</link>
      <description>&lt;P&gt;Still don´t work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;entity model = INPUT ENTITY MODEL 'select a model'&lt;BR /&gt;string msg = time_to_string($model.ModificationTime,'M')&lt;/P&gt;&lt;P&gt;MESSAGE INFO $msg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result_2.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1381216i62BB87C257E6D2FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="result_2.JPG" alt="result_2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:18:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867299#M1605</guid>
      <dc:creator>hugo_wy</dc:creator>
      <dc:date>2024-06-28T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867520#M1606</link>
      <description>&lt;P&gt;Ok sorry i currently dont own a powermill licence so i cannot test but please try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;local_time($model.ModificationTime).timestamp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $model = input entity model 'select a model'
string $msg = 'Modified on: ' + local_time($model.ModificationTime).timestamp + CRLF
$msg = $msg + 'Created on: ' + local_time($model.ImportTime).timestamp + CRLF
$msg = $msg + 'Created on: ' + $model.Path + CRLF

message info $msg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like this you can get the separate information:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $model = input entity model 'select a model'

object $dateInfo = local_time($model.ModificationTime)

string $msg = 'Year: ' + $dateInfo.Year + CRLF
$msg = $msg + 'Month: ' + $dateInfo.Month + CRLF
$msg = $msg + 'Day: ' + $dateInfo.Day + CRLF
$msg = $msg + 'Hour: ' + $dateInfo.Hour + CRLF
$msg = $msg + 'minute: ' + $dateInfo.Minute + CRLF
$msg = $msg + 'second: ' + $dateInfo.second + CRLF

message info $msg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theres also a function for the UTC time =&amp;gt; utc_time()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for more information look up page 75 in the macro programming guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 22:31:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12867520#M1606</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-06-28T22:31:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12870685#M1607</link>
      <description>This works for me&lt;BR /&gt;&lt;BR /&gt;entity $model = input entity model 'select a model'&lt;BR /&gt;string $msg = 'Modified on: ' + local_time($model.ModificationTime).timestamp + CRLF&lt;BR /&gt;$msg = $msg + 'Created on: ' + local_time($model.ImportTime).timestamp + CRLF&lt;BR /&gt;$msg = $msg + 'Model path: ' + $model.Path + CRLF&lt;BR /&gt;&lt;BR /&gt;message info $msg&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2024 06:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12870685#M1607</guid>
      <dc:creator>kevin.hammond3WX4X</dc:creator>
      <dc:date>2024-07-01T06:17:27Z</dc:date>
    </item>
    <item>
      <title>Betreff: Save Parameters of a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12870818#M1608</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works fine.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 07:42:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/save-parameters-of-a-model/m-p/12870818#M1608</guid>
      <dc:creator>hugo_wy</dc:creator>
      <dc:date>2024-07-01T07:42:20Z</dc:date>
    </item>
  </channel>
</rss>

