<?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: Know the state of mathcad calculation through API Excel in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780976#M200029</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is from the help files for the API and may be what you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Object: Worksheet&lt;/P&gt;
&lt;P&gt;Methods&lt;/P&gt;
&lt;P&gt;DefaultCalculationTimeout(arg as integer)—Gets/Sets the DefaultCalculationTimeOut value of the worksheet. It defines the default time that the application waits for the engine to recalculate the whole document, and affects different types of Get/SetValue APIs except APIs whose time out is passed as a parameter.&lt;BR /&gt;arg is defined in seconds&lt;BR /&gt;0 means do not wait&lt;BR /&gt;–1 means wait no matter how long&lt;BR /&gt;The default time-out is 60 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 11:45:36 GMT</pubDate>
    <dc:creator>terryhendicott</dc:creator>
    <dc:date>2022-02-26T11:45:36Z</dc:date>
    <item>
      <title>Know the state of mathcad calculation through API Excel</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780919#M200027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had conflicts between Excel VBA and Mathcad. Basically, VBA seems to not wait for Mathcad to finish its calculation, leading to errors (e.g. not retrieving outputs). I solved most of these issues by adding the command&lt;/P&gt;&lt;P&gt;Application.Wait (Now + TimeValue("xxx"))&lt;/P&gt;&lt;P&gt;which forces VBA to wait xxx seconds before resuming the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, I was wondering if there is a way to know from VBA the state of Mathcad (is it calculating or is it ready to start calculations?). That way, I can tell VBA to wait as a function of Mathcad state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 16:54:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780919#M200027</guid>
      <dc:creator>DM_10127316</dc:creator>
      <dc:date>2022-02-25T16:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Know the state of mathcad calculation through API Excel</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780958#M200028</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please specify which version of Mathcad are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 23:06:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780958#M200028</guid>
      <dc:creator>VladimirN</dc:creator>
      <dc:date>2022-02-25T23:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Know the state of mathcad calculation through API Excel</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780976#M200029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is from the help files for the API and may be what you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Object: Worksheet&lt;/P&gt;
&lt;P&gt;Methods&lt;/P&gt;
&lt;P&gt;DefaultCalculationTimeout(arg as integer)—Gets/Sets the DefaultCalculationTimeOut value of the worksheet. It defines the default time that the application waits for the engine to recalculate the whole document, and affects different types of Get/SetValue APIs except APIs whose time out is passed as a parameter.&lt;BR /&gt;arg is defined in seconds&lt;BR /&gt;0 means do not wait&lt;BR /&gt;–1 means wait no matter how long&lt;BR /&gt;The default time-out is 60 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 11:45:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Know-the-state-of-mathcad-calculation-through-API-Excel/m-p/780976#M200029</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2022-02-26T11:45:36Z</dc:date>
    </item>
  </channel>
</rss>

