<?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: [VBA] Read and write a text region in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40284#M16172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table of contents is a real missing utils in Mathcad.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It certainly is and one which I hope will be included in Prime in future releases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2014 09:26:41 GMT</pubDate>
    <dc:creator>MikeArmstrong</dc:creator>
    <dc:date>2014-04-05T09:26:41Z</dc:date>
    <item>
      <title>[VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40276#M16164</link>
      <description>Dear all,I wish I could interact with text region of a mathcad document using a VBA form.Does anyone know a way to access to text region object (I'm talking about sentences, not string assigned) ?Thanks by Advance.François</description>
      <pubDate>Thu, 03 May 2018 16:22:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40276#M16164</guid>
      <dc:creator>fract</dc:creator>
      <dc:date>2018-05-03T16:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40277#M16165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the Extra Components worksheet which Richard has posted. There will be something in there which will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://www.ptcusercommunity.com/docs/DOC-1071#comment-3162"&gt;http://communities.ptc.com/docs/DOC-1071#comment-3162&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 15:51:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40277#M16165</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2014-03-27T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40278#M16166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mike for you answer. I watched at Richard's file carrefully and didn't find yet what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize my description maybe needs an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I open mathcad (15.0 in my case) and directly write the sentence on my worksheet : "A man on a tree".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wonder : Does Mathcad automation allow me to write this sentence in my worksheet using VBA script? And does it allow me to read this sentence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I aim to developp a script which identify titles level using tags (T1, T2, T3 ...) And includes numbering in titles text region &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:00:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40278#M16166</guid>
      <dc:creator>fract</dc:creator>
      <dc:date>2014-03-28T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40279#M16167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very tricky point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to write a table of contents before and found it was too much hassle. Unfortunately Mathcad hasn't really got the features to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:20:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40279#M16167</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2014-03-28T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40280#M16168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello François,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached files to show the progress that I've managed so far in this direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table of contents was a direct copy from this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The xl sheet can re-write a given region of XML code but it is difficult to manage.&lt;/P&gt;&lt;P&gt;If you have a template with a tagged region it is possible to change just about anything , BUT it is also possible to corrupt everything so caution is advised.&lt;/P&gt;&lt;P&gt;The worksheet will allow the selection of any mathcad file , the current macro is specific to the A.XMCD file attached and will save a changed worksheet under a new name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Label position file was an attempt to modify items from within mathcad , there are many fields in the XML structure (look in the help&amp;gt; Developer reference under the automation interface).&lt;/P&gt;&lt;P&gt;I didn't find enough information to make it very useful but still a good start point.&lt;/P&gt;&lt;P&gt;The program can read the XY coordinates for any region &amp;amp; the hope was that these could be modified.&lt;/P&gt;&lt;P&gt;So far they appear to be read only.&lt;/P&gt;&lt;P&gt;This is totally dependant on the interface that PTC allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can read the XML code for math regions &amp;amp; this (in theory) should have read write permission.&lt;/P&gt;&lt;P&gt;So far. however I haven't managed to access any text content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is of some use to you, If you find any improvements please post them as I will be interested to find new way to control the way that mathcad works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:35:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40280#M16168</guid>
      <dc:creator>AndyWesterman</dc:creator>
      <dc:date>2014-03-28T11:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40281#M16169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only access the XML of a math region via the automation interface, not a tex region. The only way I can think of modifying the text would be to edit the file itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:29:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40281#M16169</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2014-03-28T12:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40282#M16170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is no way to interact with text region using Mathcad automation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will look for another way to make this table of contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your explaination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inserted an Excel file in my calculation note. So I manage to create a numbering with Excel formula considering tabulation (for each tabulation, it takes into account a sub-level).&lt;/P&gt;&lt;P&gt;So this file provide an output table with all my numbered titles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I call this table in another Excel component for each title in my note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not really accurate and considering nearly 140 titles my mathcad file weight is about 7 Mo and needs a few minutes to be opened...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table of contents is a real missing utils in Mathcad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:32:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40282#M16170</guid>
      <dc:creator>fract</dc:creator>
      <dc:date>2014-03-28T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40283#M16171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can do something with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:38:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40283#M16171</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2014-03-28T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40284#M16172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table of contents is a real missing utils in Mathcad.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It certainly is and one which I hope will be included in Prime in future releases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 09:26:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/40284#M16172</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2014-04-05T09:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/496398#M177695</link>
      <description>&lt;P&gt;Thanks Andy,&lt;/P&gt;
&lt;P&gt;This helped me a lot! Including creating a matrix in XML (I had to search a bit about XML table formats but i got there). However my Mathcad file has an embedded excel spreadsheet instead of a matrix...Do you know about&amp;nbsp;OLE2 Mathcad interface? I would prefer to activate the embedded excel spreadsheet (like we do by double-clicking)&amp;nbsp;and then copy paste my new valuesthrough VBA (i.e. The VBA code, like yours will be on an independent workbook). I also found a post about the excel add-in mathcad but I couldn't install this so I don't know what can I get from there)&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;Marisa Soares&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:12:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/496398#M177695</guid>
      <dc:creator>SMCS</dc:creator>
      <dc:date>2018-01-05T22:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: [VBA] Read and write a text region</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/496409#M177698</link>
      <description>&lt;P&gt;Your post here makes it no clearer what you want to do than your PM. Do you want to call Mathcad from Excel, or call Excel from Mathcad?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 01:25:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/VBA-Read-and-write-a-text-region/m-p/496409#M177698</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2018-01-06T01:25:54Z</dc:date>
    </item>
  </channel>
</rss>

