<?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 Betreff: Setup sheets: add calculations in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12590210#M2184</link>
    <description>&lt;P&gt;Try this on setupsheet page:&lt;/P&gt;&lt;P&gt;${real(Block.Limits.ZLength) + real(height_above_model)}&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 09:32:55 GMT</pubDate>
    <dc:creator>a_bako</dc:creator>
    <dc:date>2024-02-29T09:32:55Z</dc:date>
    <item>
      <title>Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12586020#M2175</link>
      <description>&lt;P&gt;Hi I work commonly with Powermill macros, but not as much with the setup sheet side of things in powermill. I was wondering if there is a way that I could take two parameters that can be used in setup sheets and do some math with them and display the results of that math in the setup sheet. Does anyone know if there is a way to do that? To help explain what I am wanting to do here is an example of two values I want to displayed after they are added together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this value...&lt;/P&gt;&lt;P&gt;${Block.Limits.ZLength}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added to this value...&lt;/P&gt;&lt;P&gt;${height_above_model}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then want the result of that displayed on the setup sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 16:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12586020#M2175</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-27T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12587266#M2176</link>
      <description>&lt;P&gt;try to write it like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;${Block.Limits.ZLength + height_above_model}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12587266#M2176</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-02-28T07:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588125#M2177</link>
      <description>&lt;P&gt;I tried it out this morning, and it does not work. Not sure if HTML is capable of doing math. It is like it just adds the two strings together so it takes the value of the first part of the expression and puts it next to the value from the second part of the expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${Block.Limits.ZLength} = 2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${height_above_model} = .03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It displays&lt;/P&gt;&lt;P&gt;2.10.03&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it is not possible to do the math in the HTML for the setup sheet is it possible to do the math somewhere else and pass it into the setup sheet?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:47:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588125#M2177</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-28T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588280#M2178</link>
      <description>&lt;P&gt;did you tryed to pot it in the same {}?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;${Block.Limits.ZLength + height_above_model}&lt;/LI-CODE&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;NOT this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;${Block.Limits.ZLength} + {height_above_model}&lt;/LI-CODE&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;</description>
      <pubDate>Wed, 28 Feb 2024 16:46:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588280#M2178</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-02-28T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588296#M2179</link>
      <description>&lt;P&gt;I have attempted these different approaches and few others and everything returns simply as different combinations of the string but never with the values calculated together.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588296#M2179</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-28T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588318#M2180</link>
      <description>&lt;P&gt;thats odd... for me it seems to work just fine&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:53:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588318#M2180</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-02-28T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588459#M2181</link>
      <description>&lt;P&gt;Could you send me a snapshot of what it produces on your setup sheet?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588459#M2181</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-28T16:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588516#M2182</link>
      <description>&lt;P&gt;Youre right... for testing i used an int value that seems to work fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyway i have another solution attempt for you:&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;LI-CODE lang="markup"&gt;&amp;lt;table&amp;gt;								
		&amp;lt;tr id="result"&amp;gt;${height_above_model}|${Block.Limits.ZLength}&amp;lt;/tr&amp;gt;

		&amp;lt;script&amp;gt;
			var element = document.getElementById("result");
			var nums = element.innerText.split('|'); 
			element.innerText = parseFloat(nums[0].replace(',','.')) + parseFloat(nums[1].replace(',','.'))
		&amp;lt;/script&amp;gt;
&amp;lt;/table&amp;gt;&lt;/LI-CODE&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;Here i write both values splited by '|', then i use JavaSkript to split and parse them,&lt;/P&gt;&lt;P&gt;and finially i write em back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ugly but it seems to work.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588516#M2182</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-02-28T16:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588529#M2183</link>
      <description>&lt;P&gt;That does it. Thanks for your help. I was wondering if it would require some javaskript. I have not done any work with Java so this is a helpful start.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12588529#M2183</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-28T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12590210#M2184</link>
      <description>&lt;P&gt;Try this on setupsheet page:&lt;/P&gt;&lt;P&gt;${real(Block.Limits.ZLength) + real(height_above_model)}&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:32:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12590210#M2184</guid>
      <dc:creator>a_bako</dc:creator>
      <dc:date>2024-02-29T09:32:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setup sheets: add calculations</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12591163#M2185</link>
      <description>&lt;P&gt;This solution also works and is simple to implement. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 15:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/setup-sheets-add-calculations/m-p/12591163#M2185</guid>
      <dc:creator>Daniel.Reister</dc:creator>
      <dc:date>2024-02-29T15:49:24Z</dc:date>
    </item>
  </channel>
</rss>

