<?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: How to set a comment (chekin note) by SaveAs of a WTPart per API in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050253#M10904</link>
    <description>&lt;P&gt;Hi, yes, the comment is usually filled by checkout/checkin.&lt;/P&gt;&lt;P&gt;I find it a pity to first create some objects using SaveAs, then force a checkout/checkin only to set a comment explaining why (or how in my case) the object was created... I guess it is the way to go.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2026 16:15:11 GMT</pubDate>
    <dc:creator>lmouchard</dc:creator>
    <dc:date>2026-01-08T16:15:11Z</dc:date>
    <item>
      <title>How to set a comment (chekin note) by SaveAs of a WTPart per API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050209#M10898</link>
      <description>&lt;P&gt;Version: Windchill 13.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: In our customization, we use the SaveAsHelper class to duplicate some WTPart (and structure) and would like to "tag" the function used by setting a comment on the new WTPart, for example: "created by Copy Machine". Then it would be easier to track whether the SaveAs menu of Windchill was used or if the customization was used.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I cannot find a mean to set this comment/note on an pass it the the SaveAs function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried setting "iterationInfo.note" as attribute in the SaveAsObjectInfo, but without success (nor error message).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt; final HashMap&amp;lt;RevisionControlled, AbstractSaveAsObjectInfo&amp;gt; saveAsObjects = new HashMap&amp;lt;&amp;gt;();
        for (WTPart wtPart : partsToCopy) {
            final AutoNumberingHelper helper = new AutoNumberingHelper(containerRef);
            final String newPartNumber = helper.getNumber(wtPart.getTypeDefinitionReference());
            final Map&amp;lt;String, String&amp;gt; ibas = new HashMap&amp;lt;&amp;gt;();
            // checkin Comment I try to set, but this has no visible effect.
            ibas.put("iterationInfo.note", "created by Copy Line &amp;amp; Machines"); 
            final AbstractSaveAsObjectInfo info = new PartSaveAsObjectInfo(newPartNumber, wtPart.getName(), folder,((WTContainer) containerRef.getObject()).getOrganization(), wtPart.getView(), null, ibas);
            saveAsObjects.put(wtPart, info);
        }

        final SaveAsHelper saver = new SaveAsHelper(saveAsObjects, null);
        saver.checkConflicts();
        saver.invokeSaveAsPreActionEvent();
        final Map&amp;lt;RevisionControlled, RevisionControlled&amp;gt; saveAsResult = saver.saveAs();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Does someone have an Idea how to set the comment on the new object?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 09:46:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050209#M10898</guid>
      <dc:creator>lmouchard</dc:creator>
      <dc:date>2026-01-08T09:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a comment (chekin note) by SaveAs of a WTPart per API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050237#M10901</link>
      <description>&lt;P&gt;Let's have a try with the methods of&amp;nbsp;EnterpriseService instead of SaveAsHelper... It allows to copy the object (but not save them), modify, them save them.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 13:58:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050237#M10901</guid>
      <dc:creator>lmouchard</dc:creator>
      <dc:date>2026-01-08T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a comment (chekin note) by SaveAs of a WTPart per API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050244#M10902</link>
      <description>&lt;P&gt;I thought comments were part of the Check-In process, have you looked there?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 15:12:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050244#M10902</guid>
      <dc:creator>rkassmeyer</dc:creator>
      <dc:date>2026-01-08T15:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a comment (chekin note) by SaveAs of a WTPart per API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050253#M10904</link>
      <description>&lt;P&gt;Hi, yes, the comment is usually filled by checkout/checkin.&lt;/P&gt;&lt;P&gt;I find it a pity to first create some objects using SaveAs, then force a checkout/checkin only to set a comment explaining why (or how in my case) the object was created... I guess it is the way to go.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 16:15:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050253#M10904</guid>
      <dc:creator>lmouchard</dc:creator>
      <dc:date>2026-01-08T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a comment (chekin note) by SaveAs of a WTPart per API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050255#M10905</link>
      <description>&lt;P&gt;followed&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS59135?source=search," target="_blank"&gt;https://www.ptc.com/en/support/article/CS59135?source=search,&lt;/A&gt;&amp;nbsp;but there are still other fields to set (Domain?) for the SaveAs to work.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 16:16:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-set-a-comment-chekin-note-by-SaveAs-of-a-WTPart-per-API/m-p/1050255#M10905</guid>
      <dc:creator>lmouchard</dc:creator>
      <dc:date>2026-01-08T16:16:46Z</dc:date>
    </item>
  </channel>
</rss>

