<?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 Fabrication API ContentManager.SaveItemAs doesn't seem to work from CAMduct 2023 in Fabrication CADmep Forum</title>
    <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/fabrication-api-contentmanager-saveitemas-doesn-t-seem-to-work/m-p/12033854#M5286</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear forum master or anyone else,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is regarding a small add-in I was trying to do in CAMduct 2023 using Fabrication API. Please see the attached MAJ file in the zip. Open the MAJ file in CAMduct and run the C# code snippet below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var item1 = Job.Items[0];&lt;BR /&gt;var path1 = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);&lt;BR /&gt;//path1 += "\\Item1.ITM";&lt;BR /&gt;var saveResult = ContentManager.SaveItemAs(item1, path1, "ItemName1", true);&lt;/P&gt;&lt;P&gt;I tried to make path1 as a pure path, or to make it as a full path file name. None of them seem to work. The return message is "Invalid parameters". I also tried to make "ItemName1" the actual name of the item. No luck so far. Can you indicate what I did wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Yao&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 15:30:41 GMT</pubDate>
    <dc:creator>JeffYao28</dc:creator>
    <dc:date>2023-06-14T15:30:41Z</dc:date>
    <item>
      <title>Fabrication API ContentManager.SaveItemAs doesn't seem to work from CAMduct 2023</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/fabrication-api-contentmanager-saveitemas-doesn-t-seem-to-work/m-p/12033854#M5286</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear forum master or anyone else,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is regarding a small add-in I was trying to do in CAMduct 2023 using Fabrication API. Please see the attached MAJ file in the zip. Open the MAJ file in CAMduct and run the C# code snippet below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var item1 = Job.Items[0];&lt;BR /&gt;var path1 = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);&lt;BR /&gt;//path1 += "\\Item1.ITM";&lt;BR /&gt;var saveResult = ContentManager.SaveItemAs(item1, path1, "ItemName1", true);&lt;/P&gt;&lt;P&gt;I tried to make path1 as a pure path, or to make it as a full path file name. None of them seem to work. The return message is "Invalid parameters". I also tried to make "ItemName1" the actual name of the item. No luck so far. Can you indicate what I did wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Yao&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/fabrication-api-contentmanager-saveitemas-doesn-t-seem-to-work/m-p/12033854#M5286</guid>
      <dc:creator>JeffYao28</dc:creator>
      <dc:date>2023-06-14T15:30:41Z</dc:date>
    </item>
  </channel>
</rss>

