<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>anhht-hue さんのアクティビティ</title><link>https://www.aras.com/community/members/anhht_2d00_hue</link><description>anhht-hue さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>How to update file attached to Document without remove old file and re-add ?</title><link>https://www.aras.com/community/f/development/9068/how-to-update-file-attached-to-document-without-remove-old-file-and-re-add</link><pubDate>Mon, 10 Feb 2020 03:23:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b064d137-348e-4d84-a4b1-8fdc4fea5fa1</guid><dc:creator>anhht-hue</dc:creator><description>&lt;p&gt;Hi everybody, please support me for this situation,&lt;/p&gt;
&lt;p&gt;In my case,&lt;/p&gt;
&lt;p&gt;1. I created new Document and attached a text file (Document generation = 1)&lt;/p&gt;
&lt;p&gt;2. When I update Document, If file is attached have file name is same with old file in Aras server -&amp;gt; My code will remove old file with &amp;quot;delete&amp;quot; action (Document&amp;nbsp;&lt;span&gt;generation&amp;nbsp; = 2)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. After that it will re-add new file with &amp;quot;add&amp;quot; action (Document generation&amp;nbsp;&amp;nbsp;= 3)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Requirement: After Update document -&amp;gt; Document&amp;nbsp;generation&amp;nbsp;must be 2. And file attached in tag document is only &amp;quot;new file&amp;quot; (If not delete old file and re-add, Aras will be create 2 files with same name but different content)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks so much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CAD Document] Query CADDocument File for download to local</title><link>https://www.aras.com/community/f/community/6429/cad-document-query-caddocument-file-for-download-to-local</link><pubDate>Thu, 10 Oct 2019 12:26:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d7d40621-33b0-4a8f-8059-78a33922959f</guid><dc:creator>anhht-hue</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Please show me how I can get information CADFiles(Native File / Viewable FIle) of CADDocument&lt;/p&gt;
&lt;p&gt;My code as below.&lt;/p&gt;
&lt;p&gt;-----------------------&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Item docItem&amp;nbsp; = myAras.newItem(&amp;quot;CAD&amp;quot;, &amp;quot;get&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;docItem .setAttribute(&amp;quot;select&amp;quot;, &amp;quot;*&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;docItem.setProperty(&amp;quot;item_number&amp;quot;, &amp;quot;ABC&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Item relItem =&amp;nbsp;myAras.newItem(&amp;quot;CADFiles&amp;quot;, &amp;quot;get&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;relItem&amp;nbsp;.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;*&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;docItem.addRelationship(relItem&amp;nbsp;);&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Create CAD Document using IOM API</title><link>https://www.aras.com/community/f/development/3430/create-cad-document-using-iom-api</link><pubDate>Fri, 13 Oct 2017 02:59:46 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:af5b4dae-3dc1-4ddf-b62a-cf1100108da0</guid><dc:creator>Former Member</dc:creator><description>Hi,

How can I create and attach file with a  CAD Document through IOM API?

Here is the code I am trying to implement.

&amp;lt;hr /&amp;gt;

// Create the CAd Document item

var docItem = MyInnovator.newItem(&amp;quot;CAD&amp;quot;, &amp;quot;add&amp;quot;);
docItem.setProperty(&amp;quot;item_number&amp;quot;, &amp;quot;CADDoc 004&amp;quot;);

// Create the File item and set the path to the file.
var fileItem = MyInnovator.newItem(&amp;quot;File&amp;quot;, &amp;quot;add&amp;quot;);
fileItem.setProperty(&amp;quot;filename&amp;quot;, &amp;quot;My Document.docx&amp;quot;);
fileItem.attachPhysicalFile(&amp;quot;D:\\My Document.docx&amp;quot;);

// Create the relationship between the CAd Document and File
var relItem = MyInnovator.newItem(&amp;quot;CADFiles&amp;quot;, &amp;quot;add&amp;quot;);
docItem.addRelationship(relItem);

relItem.setRelatedItem(fileItem);
var results = docItem.apply();

&amp;lt;hr /&amp;gt;

I guess CAD files are null able type of relation since there is null value in related id column in CADFiles table...

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Discussion Starter I</title><link>https://www.aras.com/community/achievements/21025ab1-febb-4fb4-a872-d32a921cb45c</link><pubDate>Thu, 17 Oct 2019 05:56:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:79d10ca7-7b90-4b6a-96fa-57c18ead528d</guid><dc:creator /><description>Start a discussion in a forum that receives 5 replies.</description></item><item><title>[Part Classification] How to create AML to add classification for Part</title><link>https://www.aras.com/community/f/development/6158/part-classification-how-to-create-aml-to-add-classification-for-part</link><pubDate>Mon, 15 Jul 2019 07:20:28 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b29dc12a-365d-430d-9698-461c953ac910</guid><dc:creator>anhht-hue</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1563174995814v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hi everyone,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As my picture above, I want to use AML to edit Part and set value Item Class, Class Path and some value like m_Capacitance Uni, etc.&lt;br /&gt;I&amp;#39;m just a newbie in Aras. So please help me or let me know some keywords to resovle this issue.&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Search Parameter with date time</title><link>https://www.aras.com/community/f/development/5959/search-parameter-with-date-time</link><pubDate>Sun, 21 Apr 2019 09:22:09 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3a235407-4845-4d56-b6f1-8619978d34a5</guid><dc:creator>anhht-hue</dc:creator><description>&lt;p&gt;I have condition parameter search for ItemType Part like this (modified_on &amp;gt; 2019-04-11T00:00:00 and&amp;nbsp;&amp;nbsp;&lt;span&gt;modified_on &amp;lt;= 2019-&lt;/span&gt;&lt;span&gt;04-&lt;/span&gt;&lt;span&gt;20T00:00:00)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case 1. When I new item AML&amp;nbsp; to search &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;Item type=&amp;quot;Part&amp;quot; action=&amp;quot;get&amp;quot; select=&amp;quot;*&amp;quot; where=&amp;quot;[Part].modified_on &amp;amp;gt; &amp;#39;2019-04-11T00:00:00&amp;#39;&amp;nbsp; AND [Part].modified_on &amp;amp;lt;=&amp;#39;2019-04-20T00:00:00&amp;#39; &amp;gt;&amp;quot;. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----&amp;gt; it will return&amp;nbsp;list Part&amp;nbsp;with Part modified on 2019:04:05T00:00:00 -&amp;gt; Wrong, I dont know why the result is wrong&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case 2. So I change code to create new AML&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;Item type=&amp;quot;Part&amp;quot; action=&amp;quot;get&amp;quot; select=&amp;quot;*&amp;quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;lt;modified_on condition=&amp;quot;gt&amp;quot;&amp;gt;2019-04-11T00:00:00&amp;nbsp;&amp;lt;/modified_on&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;lt;modified_on condition=&amp;quot;le&amp;quot;&amp;gt;2019-04-20T00:00:00&amp;lt;/modified_on&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;/Item&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----&amp;gt; It will return true results. So please help to find error in this case 1. Thanks so much&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Sun, 21 Apr 2019 09:22:10 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c8e863c9-4db6-4a70-b948-bbb1008b6df2</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>