<?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: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)? in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/668106#M190398</link>
    <description>&lt;P&gt;Thank you all again for your excellent suggestions. Stuart, you interpreted correctly that in&amp;nbsp; my case, the order of variables, and the names themselves may change, when a design is updated, or a new one created, so your search functions will be very helpful (after I port them to Mathcad 15). Still one step short of what I was hoping for, but way better than where I started. You also correctly anticipated my next problem.... that of unit handling. Thank you again! I had planned to manage units outside Mathcad, but the functions you provided will certainly make me re-think that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I want to share that I have had some success &lt;EM&gt;&lt;STRONG&gt;changing&lt;/STRONG&gt;&lt;/EM&gt; variable names outside Mathcad in a text editor. I have done that manually so far, but I think that if I can do it manually in a text editor, I should be able to automate that with something like Python. &amp;nbsp; Unfortunately, my attempts to create a new variable in a text editor have failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 21:14:09 GMT</pubDate>
    <dc:creator>Tom_VanHeuklon</dc:creator>
    <dc:date>2020-05-26T21:14:09Z</dc:date>
    <item>
      <title>Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/665990#M190171</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I wonder if anybody can suggest a means to programmatically create variable names and assign values to them, using data from an Excel spreadsheet? I have attached a very simple example to illustrate what I want to do. I have electronic component identifiers (Reference Designators) in column A, and the corresponding values for those components in Column B. I would like the values in column A to become variable names in Mathcad, and the values in column B to become the values of these variables. In the example below, I have manually created the variables in Mathcad, but I would like to automate that.&amp;nbsp; Seems pretty simple, but I haven't figured out how to do it. Any suggestions would be greatly appreciated! Thank you.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Excel_to_Mathcad_Illustration.jpg" style="width: 870px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26962iF0EA0972D544F499/image-size/large?v=v2&amp;amp;px=999" role="button" title="Excel_to_Mathcad_Illustration.jpg" alt="Excel_to_Mathcad_Illustration.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 23:13:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/665990#M190171</guid>
      <dc:creator>Tom_VanHeuklon</dc:creator>
      <dc:date>2020-05-14T23:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666005#M190172</link>
      <description>&lt;P&gt;As far as I'm aware, Tom, there is no way of programmatically creating names in a straightforward fashion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've asked for such a feature several times over the years, but it's not appeared yet.&amp;nbsp; There have been other user requests for this feature, eg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/t5/PTC-Mathcad/Create-variable-names-automatically/m-p/574404" target="_blank"&gt;https://community.ptc.com/t5/PTC-Mathcad/Create-variable-names-automatically/m-p/574404&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Coincidentally, I recently (Apr 2020) followed up an Alfasoft article on Unicode character creation by asking Alfasoft about this capability.&amp;nbsp; &amp;nbsp;They said that they had had similar requests from other customers, didn't know whether it was on PTC's development path for Mathcad, but would forward my request to PTC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.alfasoft.com/hc/en-us/articles/360003722078-How-to-add-things-on-top-of-characters-used-as-variable-names" target="_blank"&gt;https://support.alfasoft.com/hc/en-us/articles/360003722078-How-to-add-things-on-top-of-characters-used-as-variable-names&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With a &lt;FONT face="courier new,courier"&gt;createName&lt;/FONT&gt; type function, it would be straightforward to vectorize it over a list of names imported from Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;From my letter to Alfasoft:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting the referenced article - it was interesting and solves a particular problem that several have had over the years. However (there’s always a ‘however’, isn’t there?), the process of adding a constructed character or name by copy &amp;amp; paste is somewhat mandraulic, not to mention “copy&amp;amp;paste” errors being a somewhat notorious and common phenomenon. On the face of it, the process would seem to be better suited to automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could a feature request please be raised to add a function to Mathcad Prime 6 that takes a string and creates a new name (variable/function) on the left-hand side of a definition and which is then available for use 'later on' in the worksheet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eg, make a name ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;newName:=concat("var",num2str(1))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;newName = "var1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;newName := stack(97,0x0333)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;newName = "a̅0̳"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;followed by creating the name,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;createName(newName) := &amp;lt;expression&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would have the effect of manually typing/pasting a name and be fully equivalent to &lt;FONT face="courier new,courier"&gt;var1 := &amp;lt;expression&amp;gt;&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Used on the rhs, or as a function parameter, &lt;FONT face="courier new,courier"&gt;createName&lt;/FONT&gt; would not create a name but would stand in place of the name &lt;FONT face="courier new,courier"&gt;var1&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other options might be to prefix '&lt;FONT face="courier new,courier"&gt;newName&lt;/FONT&gt;' with an operator (eg, @ or 🄋 (or even&lt;span class="lia-unicode-emoji" title=":card_file_box:"&gt;🗃&lt;/span&gt;or &lt;span class="lia-unicode-emoji" title=":file_cabinet:"&gt;🗄&lt;/span&gt;!) - available via the ribbon) to identify a name indirection, eg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;( 3 + 🄋newName == 3 _ var1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Suspicions that I might be subtly asking for a macro capability are, I am sure, completely unwarranted. Indeed, the thought has never so much as passed through my head …)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From a subsequent worksheet I was playing around with to create complex names, and a candidate for a function like &lt;FONT face="courier new,courier"&gt;createName&lt;/FONT&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 A.png" style="width: 648px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26965i8C5E5C5D5B468E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 A.png" alt="2020 05 15 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 03:10:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666005#M190172</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-15T03:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666090#M190180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can sort of do it like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 432px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26977i37AEAA2C014BAE48/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;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:21:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666090#M190180</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2020-05-15T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666093#M190181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Forgot to show you can get myVariables direct from an Excel component.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 319px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26978iF03D43FE7C9B7E41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:37:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666093#M190181</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2020-05-15T11:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666125#M190183</link>
      <description>&lt;P&gt;A similar solution using a lookup function variant - I've used this type of thing before when dealing with spreadsheet or other tabular data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 B.png" style="width: 661px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26991i51DFDC1299226264/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 B.png" alt="2020 05 15 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 C.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/26992i293F920E5A538D71/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 C.png" alt="2020 05 15 C.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:04:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666125#M190183</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-15T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666152#M190184</link>
      <description>&lt;P&gt;Ah, apologies ,.. that wasn't the version I intended to post.&amp;nbsp; Forgot to copy across another couple of functions&amp;nbsp; Mea culpa.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This version is slightly more general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 D.png" style="width: 646px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27000i7394116266F99746/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 D.png" alt="2020 05 15 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 E.png" style="width: 646px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27001iC70B354CAF27D6F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 E.png" alt="2020 05 15 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:59:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666152#M190184</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-15T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666182#M190189</link>
      <description>&lt;P&gt;I suppose, for completeness sake, that I'd better add that if all you're interested in is the name in the leading column or row, then hlookup and vlookup are sufficient if multicolumn tables are the target (and easily specialized for a 2-column table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 15 H.png" style="width: 652px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27004iA25A726B334BE5BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 15 H.png" alt="2020 05 15 H.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 16:56:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/666182#M190189</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-15T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667220#M190283</link>
      <description>&lt;P&gt;Thank you Terry. Yes, this approach "sort" of does what I want. Unfortunately, when I then go to use these variables in subsequent calculations, it gets a bit "ugly". Consider a very simple example of a voltage divider using my two resistors, what I want to do would look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Voltage_Divider_Example1.jpg" style="width: 464px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27220iB0966C3A94415E10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Voltage_Divider_Example1.jpg" alt="Voltage_Divider_Example1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas your approach would look like this: &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Voltage_Divider_Example2.jpg" style="width: 290px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27221i270A85599D496C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="Voltage_Divider_Example2.jpg" alt="Voltage_Divider_Example2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although not exactly what I was looking for, your suggestion is much appreciated none-the-less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 14:01:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667220#M190283</guid>
      <dc:creator>Tom_VanHeuklon</dc:creator>
      <dc:date>2020-05-21T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667242#M190284</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could make it a little less ugly by renaming "MyVar" as just "v"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 222px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27227i3890D41F63C2AD27/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;Appreciate your appreciation&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:12:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667242#M190284</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2020-05-21T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667248#M190285</link>
      <description>&lt;P&gt;Apart from the fact that it is desirable to have a function that can define a worksheet variable, in order to drive that variable name from e.g. Excel, you must have a reference. At some point you need to decide which one of the many variable names that are defined in the Excel table will be used at which position in a Mathcad expression. So why not let the row index do that....&lt;/P&gt;
&lt;P&gt;Then it might look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_2-1590074781699.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27230i5EE68662D653DC3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_2-1590074781699.png" alt="LucMeekes_2-1590074781699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Also bear in mind that it's almost as difficult to bring units over from Excel to Mathcad&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:29:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667248#M190285</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2020-05-21T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667276#M190288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;But, by chance, you are looking for something like this (it can be developed to make it more automatic):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TVH answer.jpg" style="width: 335px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27237iBABF0CCD8388FFC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="TVH answer.jpg" alt="TVH answer.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 18:25:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667276#M190288</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2020-05-21T18:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667321#M190290</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14826"&gt;@LucMeekes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Apart from the fact that it is desirable to have a function that can define a worksheet variable, in order to drive that variable name from e.g. Excel, you must have a reference. At some point you need to decide which one of the many variable names that are defined in the Excel table will be used at which position in a Mathcad expression. So why not let the row index do that....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may have grasped the wrong end of the stick here, Luc, but I was under the impression that the absolute row number of a component value might change, or a different component could be selected at a different time.&amp;nbsp; In which case, a lookup-type solution is possibly a better way to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, I've created a tailored version of one of my lookup functions to make it easier to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 A.png" style="width: 580px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27254iE60CFC6B379526BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 A.png" alt="2020 05 22 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&amp;nbsp;Also bear in mind that it's almost as difficult to bring units over from Excel to Mathcad&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How true.&amp;nbsp; I'm surprised that no maintenance subscriber has asked for a modified version of str2num that converts quantified numeric strings (eg, "3.14159 mp" or 2.7Fb" (where mp = millipotrzebie and Fb = furschlugginer blintz )), so that we'd have:&lt;/P&gt;
&lt;P&gt;str2num("3.14159 mp") = 7.111&amp;nbsp;μm&lt;/P&gt;
&lt;P&gt;str2num("2.71828mp") = 99.014 t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose some enterprising individual could probably write one ... (I think I've may have one hidden deep in my M15 archive)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, here's one way of tackling the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 B.png" style="width: 590px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27255i8B9C876F715F5EEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 B.png" alt="2020 05 22 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 C.png" style="width: 610px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27256iEFCFA4978D596DDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 C.png" alt="2020 05 22 C.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 00:18:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667321#M190290</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-22T00:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667388#M190302</link>
      <description>&lt;P&gt;I guess instead of&lt;/P&gt;
&lt;P&gt;str2num("2.71828mp") = 99.014 t&lt;/P&gt;
&lt;P&gt;you meant&lt;/P&gt;
&lt;P&gt;str2num("2.71828 Fb") = 99.014 t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 08:49:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667388#M190302</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2020-05-22T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667405#M190305</link>
      <description>&lt;P&gt;Hah!&amp;nbsp; That I did, Luc!&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How apt that I recently changed my avatar to this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scream - copy paste 01 [2].png" style="width: 458px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27266iEAA2E48D8FA62584/image-size/large?v=v2&amp;amp;px=999" role="button" title="scream - copy paste 01 [2].png" alt="scream - copy paste 01 [2].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By way of contrition, I present a "simplified from a user perspective" use of my lookup-by-name function.&amp;nbsp; I've put all the lookup functions into an Area and the data generation into another Area (as it's&amp;nbsp;&lt;EM&gt;not needed by the general user&lt;/EM&gt;).&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 D.png" style="width: 680px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27268i69C393038092697E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 D.png" alt="2020 05 22 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This, hopefully, shows how easy it could be to use the functions:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;copy and paste (Argggghhh!) the first Area into a worksheet,&lt;/LI&gt;
&lt;LI&gt;load and convert the Excel data,&lt;/LI&gt;
&lt;LI&gt;create a tailored read function (if the user wants to, otherwise use one of the lookup functions directly or create a shorter alias for the needed one)&lt;/LI&gt;
&lt;LI&gt;lookup the required variables&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 09:24:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667405#M190305</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-22T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667422#M190308</link>
      <description>&lt;P&gt;"(Argggghhh!)"&lt;/P&gt;
&lt;P&gt;Yes, apart from the crazy situation that mean() is a Premium function, you unfortunately cannot link to reference sheets in Prime Express.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 10:43:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667422#M190308</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2020-05-22T10:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667430#M190309</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14826"&gt;@LucMeekes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;"(Argggghhh!)"&lt;/P&gt;
&lt;P&gt;Yes, apart from the crazy situation that mean() is a Premium function,&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's just ... mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;you unfortunately cannot link to reference sheets in Prime Express.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A nuisance, to be sure, but in M15 I used to include the (&lt;STRONG&gt;&lt;EM&gt;named&lt;/EM&gt;&lt;/STRONG&gt;) Areas in my template.&amp;nbsp; That way, I wouldn't worry about changes to my Reference worksheets changing values in an already existing worksheet.&amp;nbsp; &amp;nbsp;I know I should have a better config control system for keeping versions separate, but I'm not that organized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Got bored whilst working on something else, so threw together a &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;val2num&lt;/FONT&gt; &lt;/STRONG&gt;function in Mathcad Express.&amp;nbsp; &amp;nbsp;It converts quantified strings to standard numeric quantities (for quantities that it knows about).&amp;nbsp; It's quite moody, though, and sulks if the user doesn't leave a space between the numeric value and the unit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 F.png" style="width: 684px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27280iC549EB3BB8C8FB54/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 F.png" alt="2020 05 22 F.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020 05 22 E.png" style="width: 938px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27281iF4596BC7360CD1BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020 05 22 E.png" alt="2020 05 22 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on making the function Potrzebie-aware.&amp;nbsp; &amp;nbsp;Apparently, Proxima Centauri is&amp;nbsp;17739573709665 furshlugginer potrzebie away (plus or minus a page or two).&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;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 11:56:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/667430#M190309</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2020-05-22T11:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/668106#M190398</link>
      <description>&lt;P&gt;Thank you all again for your excellent suggestions. Stuart, you interpreted correctly that in&amp;nbsp; my case, the order of variables, and the names themselves may change, when a design is updated, or a new one created, so your search functions will be very helpful (after I port them to Mathcad 15). Still one step short of what I was hoping for, but way better than where I started. You also correctly anticipated my next problem.... that of unit handling. Thank you again! I had planned to manage units outside Mathcad, but the functions you provided will certainly make me re-think that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I want to share that I have had some success &lt;EM&gt;&lt;STRONG&gt;changing&lt;/STRONG&gt;&lt;/EM&gt; variable names outside Mathcad in a text editor. I have done that manually so far, but I think that if I can do it manually in a text editor, I should be able to automate that with something like Python. &amp;nbsp; Unfortunately, my attempts to create a new variable in a text editor have failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 21:14:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/668106#M190398</guid>
      <dc:creator>Tom_VanHeuklon</dc:creator>
      <dc:date>2020-05-26T21:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/670373#M190526</link>
      <description>&lt;P&gt;I think I found a solution to the second half of my problem... that of programmatically CREATING a variable in Mathcad: AutoHotKey (&lt;A href="https://www.autohotkey.com/)" target="_blank"&gt;https://www.autohotkey.com/)&lt;/A&gt;. The simple example below shows a program in AutoHotKey that creates 4 variable in Mathcad when Ctrl-K is pressed. I still have a lot to figure out with regard to opening a file and parsing it in AutoHotKey, but I am confident that it can be done. This might not be the most elegant solution but&amp;nbsp; I think it will accomplish my objective. Thanks again for the suggestions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Creating_Mathcad_Variables_with_AutoHotKey.jpg" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/27905i1E223AA59E68A6F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Creating_Mathcad_Variables_with_AutoHotKey.jpg" alt="Creating_Mathcad_Variables_with_AutoHotKey.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 18:50:34 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/670373#M190526</guid>
      <dc:creator>Tom_VanHeuklon</dc:creator>
      <dc:date>2020-06-08T18:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create variable names and assign values from Excel spreadsheet (MCD15)?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/670408#M190528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good bit of research.&lt;/P&gt;
&lt;P&gt;Visual Basic in Excel had a similar SendKeys method.&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>Mon, 08 Jun 2020 20:57:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Programmatically-create-variable-names-and-assign-values-from/m-p/670408#M190528</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2020-06-08T20:57:05Z</dc:date>
    </item>
  </channel>
</rss>

