<?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: Autogeneration of MathCAD Prime Files using the API or changing XML data in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/955813#M212477</link>
    <description>&lt;P&gt;Renaming the .mcdx file to .zip, unzipping its contents to a subdirectory and then rezipping this directory again maintaining the directory/subdirectory structure and renaming the .zip file back to .mcdx should work OK. At least I never had any problem doing so.&lt;/P&gt;
&lt;P&gt;Maybe you try a different archive program and take care to maintain the very same directory structure and really use zip format and not rar or anything else when you rezip.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 20:43:34 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2024-06-11T20:43:34Z</dc:date>
    <item>
      <title>Autogeneration of MathCAD Prime Files using the API or changing XML data</title>
      <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/955810#M212475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am attempting to create a program that will autogenerate several MathCAD file templates based on variables that will be taken from an excel sheet that contains a list of parts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MathCAD Prime 9.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some things I've looked into are using the API or changing the XML data directly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API doesn't seem to support a way to add in new inputs and outputs to a blank worksheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the XML data directly seems like it could be a good option. From other posts I've read it sounds like you can change the file extension to a zip, unzip the file, change some data in one of the files, then rezip and change the extension back. However when I have tried this the process of unzipping and rezipping changes how it is compressed which causes it to be unreadable by mathcad, even if I don't change any of the internal files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can inputs and outputs to a blank worksheet with the API that I am missing? Is there a way to unzip and rezip the mcdx file that will maintain the readability of the file in MathCAD?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 20:08:45 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/955810#M212475</guid>
      <dc:creator>JE_11147360</dc:creator>
      <dc:date>2024-06-11T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autogeneration of MathCAD Prime Files using the API or changing XML data</title>
      <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/955813#M212477</link>
      <description>&lt;P&gt;Renaming the .mcdx file to .zip, unzipping its contents to a subdirectory and then rezipping this directory again maintaining the directory/subdirectory structure and renaming the .zip file back to .mcdx should work OK. At least I never had any problem doing so.&lt;/P&gt;
&lt;P&gt;Maybe you try a different archive program and take care to maintain the very same directory structure and really use zip format and not rar or anything else when you rezip.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 20:43:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/955813#M212477</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-06-11T20:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Autogeneration of MathCAD Prime Files using the API or changing XML data</title>
      <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/957877#M212661</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/838914"&gt;@JE_11147360&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up with you on your post to see if your question has been answered.&amp;nbsp;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 21:08:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/957877#M212661</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2024-06-24T21:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Autogeneration of MathCAD Prime Files using the API or changing XML data</title>
      <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/958241#M212695</link>
      <description>&lt;P&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/838914"&gt;@JE_11147360&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an interesting thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In worksheet.xml, I see any math regions and can probably figure out the formatting to modify or construct new ones programmatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, text regions, while present, give an Item-idref instead of actual text.&amp;nbsp; In the xaml folder, there ends up being a xamlpackage file for each and every text field.&amp;nbsp; These too are compressed and can be uncompressed (unzipped).&amp;nbsp; The resulting xaml sub-folder for each one contains a Document.xaml file which is editable and contains the actual text of the text field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some interesting possibilities going through my head right now.&amp;nbsp; This info might help someone else out.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 11:46:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/958241#M212695</guid>
      <dc:creator>JeffH1</dc:creator>
      <dc:date>2024-06-26T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Autogeneration of MathCAD Prime Files using the API or changing XML data</title>
      <link>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/966630#M213199</link>
      <description>&lt;P&gt;This is interesting.&amp;nbsp; There are some good things here,&amp;nbsp; It is still like we are working with a black box.&amp;nbsp; If the api would give us more control it would be direct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see my results in the results.xml file but would still want to verify it is for my variable MYVAR_Yield:=8.66 for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;resultData result-id="20" calculation-status="Synchronized"&amp;gt;&amp;lt;ml:result&amp;gt;&amp;lt;ml:real&amp;gt;8.6698971036686263&amp;lt;/ml:real&amp;gt;&amp;lt;/ml:result&amp;gt;&amp;lt;/resultData&amp;gt;&amp;lt;resultData&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 18:13:12 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Autogeneration-of-MathCAD-Prime-Files-using-the-API-or-changing/m-p/966630#M213199</guid>
      <dc:creator>Cody_Godines</dc:creator>
      <dc:date>2024-08-14T18:13:12Z</dc:date>
    </item>
  </channel>
</rss>

