<?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: Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin conve in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910723#M209284</link>
    <description>&lt;P&gt;The key is &amp;lt;&lt;SPAN&gt;*.*mcd&amp;gt;! That was so easy, thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 07:45:02 GMT</pubDate>
    <dc:creator>NK_10848499</dc:creator>
    <dc:date>2023-11-07T07:45:02Z</dc:date>
    <item>
      <title>Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin converter</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910643#M209279</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have enormous number of .xmcd files needed to be converted to .mcdx. Inside most of them there are links to each other. Considering nested structure of my files and the fact that you can not choose the whole folder for nested convertion in built-in MathCAD Prime Converter I need to automate at least filling Converter with list of files. Would be even better - to make the whole process fully automatic. Have someone done this before? Is there any API for the Converter? Nothing like that was found by me in the PTC support database &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;There is some kind of workaround - to generate multiple paths to files relative to the root folder and join them with " "`s but resulting string is far too long to be accepted by the FilePickupDialog of the Converter. Too many files needed to be converted.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:05:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910643#M209279</guid>
      <dc:creator>NK_10848499</dc:creator>
      <dc:date>2023-11-06T20:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin conve</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910653#M209281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Converter can take large number files.&amp;nbsp; There are 233 files here loaded in one go from a directory&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 493px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92649i516437D33B9C7310/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Press Ctrl&amp;nbsp; A to select all the files then you can convert them in one go:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 619px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92651iA2CAC4969BA860BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:10:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910653#M209281</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2023-11-06T23:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin conve</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910688#M209282</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A class="" href="https://community.ptc.com/t5/user/viewprofilepage/user-id/269418" target="_self"&gt;&lt;SPAN class=""&gt;terryhendicott&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;! &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Thanks for answering, but all those files on your screens are in the same directory "F:\MathCad\", aren`t they? In my case I have hundreds of &lt;U&gt;deep-nested&lt;/U&gt; folders and thousands of files. Furthermore, that folder structure should be intact due to the fact that most of of the files have each other &lt;U&gt;inserted as a reference&lt;/U&gt; with fixed relative paths.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2023 05:17:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910688#M209282</guid>
      <dc:creator>NK_10848499</dc:creator>
      <dc:date>2023-11-07T05:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin conve</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910721#M209283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You must use the power of windows to select all the files in all the directory tree structure.&lt;/P&gt;
&lt;P&gt;the converter will place the new files in the correct directories..&lt;/P&gt;
&lt;P&gt;For example a three tiered directory structure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 224px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92661iAE6C37BE3E06A221/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With one Mathcad 15 etc file per directory.&amp;nbsp; This works no matter how many files in a directory&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 445px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92662i48FCE6BCC87BAC9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.JPG" style="width: 494px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92663i8FBA9CD5E4DB08A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.JPG" alt="Capture3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.jpg" style="width: 540px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92664iB137ADCFC860E79A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.jpg" alt="Capture4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note one file is *.mcd other two are *.xmcd.&lt;/P&gt;
&lt;P&gt;Start the converter from Prime or as stand alone and press add worksheets&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture6.JPG" style="width: 901px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92665i9C0171687D1BE0C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture6.JPG" alt="Capture6.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You get the windows open dialog box.&amp;nbsp; In the upper right hand search box type *.*mcd as the search term and it will select files in the directory structure for you.&amp;nbsp; Ctrl A will select them all.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture7.JPG" style="width: 918px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92666i6AFD98E427401020/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture7.JPG" alt="Capture7.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Choose open and the list box in the converter is filled with the relevant files with their directory included.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture8.JPG" style="width: 704px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92667i9AF9E54147DEA0D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture8.JPG" alt="Capture8.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select&amp;nbsp; them all with CTRL A.&amp;nbsp; Press convert and leave it alone until finished.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture9.JPG" style="width: 708px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92668iABA32AC877367280/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture9.JPG" alt="Capture9.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now check the directories:&amp;nbsp; Each directory has the converted file and a html log of the conversion..&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture10.JPG" style="width: 855px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92669i0FAC46DE39ED3171/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture10.JPG" alt="Capture10.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture11.JPG" style="width: 783px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/92670iD7ED14E5440B054F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture11.JPG" alt="Capture11.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As far as I am aware there is no limit to the number of files in the directory tree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:32:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910721#M209283</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2023-11-07T07:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python convertion .xmcd to .mcdx of multiple files in nested folders using API for builtin conve</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910723#M209284</link>
      <description>&lt;P&gt;The key is &amp;lt;&lt;SPAN&gt;*.*mcd&amp;gt;! That was so easy, thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:45:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Python-convertion-xmcd-to-mcdx-of-multiple-files-in-nested/m-p/910723#M209284</guid>
      <dc:creator>NK_10848499</dc:creator>
      <dc:date>2023-11-07T07:45:02Z</dc:date>
    </item>
  </channel>
</rss>

