<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fun With SolidWorks Equations</title>
	<atom:link href="http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/feed/" rel="self" type="application/rss+xml" />
	<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/</link>
	<description>SolidWorks and PDMWorks Enterprise Development Blog</description>
	<lastBuildDate>Mon, 26 Apr 2010 18:11:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jeff Cope</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/comment-page-1/#comment-346</link>
		<dc:creator>Jeff Cope</dc:creator>
		<pubDate>Wed, 17 Dec 2008 02:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comment-346</guid>
		<description>I am familiar with the switch statement as I use it in Access and VBA all the time.  I was unable to get it to work though so I assumed it wasn&#039;t supported.  I will go back and try it again.  Maybe it was just too late at night or something.</description>
		<content:encoded><![CDATA[<p>I am familiar with the switch statement as I use it in Access and VBA all the time.  I was unable to get it to work though so I assumed it wasn&#8217;t supported.  I will go back and try it again.  Maybe it was just too late at night or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProteusDesign</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/comment-page-1/#comment-345</link>
		<dc:creator>ProteusDesign</dc:creator>
		<pubDate>Wed, 17 Dec 2008 02:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comment-345</guid>
		<description>Typo in switch syntax. should be:

switch (x&gt;2, 1.5 , x&gt;1, .5,  x&lt;1, 2.5)</description>
		<content:encoded><![CDATA[<p>Typo in switch syntax. should be:</p>
<p>switch (x&gt;2, 1.5 , x&gt;1, .5,  x&lt;1, 2.5)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProteusDesign</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/comment-page-1/#comment-344</link>
		<dc:creator>ProteusDesign</dc:creator>
		<pubDate>Wed, 17 Dec 2008 02:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comment-344</guid>
		<description>In case it&#039;s useful, Wiley SolidWorks 2007 Bible pg 311 gives example of syntax of switch command as follows:
switch (X&gt;2, 1.5, X&gt;1, .5, x 2 switch returns 1.5.  If 2 &lt; X &lt; 1 returns .5 etc.
I assume you can specify how ever many conditions you need.

In a quick search I find nothing about switch or choose in SolidWorks help.

Now what I was looking for when I stumbled on this site was something related to equations to wow my students.  In the past I&#039;ve created elaborate design tables to size, quantify and locate features and parts according to criteria like an overall dimension and that kind of thing, but I was hoping to use equations to create surfaces or at least curves directly from mathematical expressions - (and not just from a table of coordinates generated elsewhere).  

To give a simple example, start with an expression like Y=Sin(X) and generate a sine wave shaped curve.  I was hoping not just to FIT geometry but to create it.  

A example closer to SolidWorks functionality.  I can create a design table that given the overall height of a tower, equations could generate a corresponding configuration having approprate width and the number of cross members.  But what if say I wanted a tapering tower?   In that case I&#039;m not just changing the count of cross members being patterned, I&#039;m also generating a unique length for each cross member.</description>
		<content:encoded><![CDATA[<p>In case it&#8217;s useful, Wiley SolidWorks 2007 Bible pg 311 gives example of syntax of switch command as follows:<br />
switch (X&gt;2, 1.5, X&gt;1, .5, x 2 switch returns 1.5.  If 2 &lt; X &lt; 1 returns .5 etc.<br />
I assume you can specify how ever many conditions you need.</p>
<p>In a quick search I find nothing about switch or choose in SolidWorks help.</p>
<p>Now what I was looking for when I stumbled on this site was something related to equations to wow my students.  In the past I&#8217;ve created elaborate design tables to size, quantify and locate features and parts according to criteria like an overall dimension and that kind of thing, but I was hoping to use equations to create surfaces or at least curves directly from mathematical expressions &#8211; (and not just from a table of coordinates generated elsewhere).  </p>
<p>To give a simple example, start with an expression like Y=Sin(X) and generate a sine wave shaped curve.  I was hoping not just to FIT geometry but to create it.  </p>
<p>A example closer to SolidWorks functionality.  I can create a design table that given the overall height of a tower, equations could generate a corresponding configuration having approprate width and the number of cross members.  But what if say I wanted a tapering tower?   In that case I&#8217;m not just changing the count of cross members being patterned, I&#8217;m also generating a unique length for each cross member.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/comment-page-1/#comment-300</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Tue, 08 Jul 2008 15:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comment-300</guid>
		<description>Ahh thanks, got it. Just took a bit more work. I&#039;ll probably be trying out the switch statment soon. I&#039;ll try to let you know how it goes.</description>
		<content:encoded><![CDATA[<p>Ahh thanks, got it. Just took a bit more work. I&#8217;ll probably be trying out the switch statment soon. I&#8217;ll try to let you know how it goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Cope</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/comment-page-1/#comment-298</link>
		<dc:creator>Jeff Cope</dc:creator>
		<pubDate>Fri, 04 Jul 2008 05:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comment-298</guid>
		<description>Hi Joel,

Thanks for reading.  You can nest IFF statements.  Just put your second IIF statement inside the False condition portion of the first IFF statement.  I don&#039;t know if there is a limit to how many you may nest but I have not run into it in Excel or Access.  I think SolidWorks should be the same with regard to that.  

Also, I haven&#039;t tried it yet but there is something called a Switch statement (and another lesser used function called Choose) that sounds similar to what you are looking for.  Excel and Access both support it so I was wondering if SolidWorks does as well.  I haven&#039;t tried it yet but if you try it, then please post the results here.

You can read up on them here:
http://www.dailydoseofexcel.com/archives/2005/02/21/the-switch-function/

Thanks,
Jeff</description>
		<content:encoded><![CDATA[<p>Hi Joel,</p>
<p>Thanks for reading.  You can nest IFF statements.  Just put your second IIF statement inside the False condition portion of the first IFF statement.  I don&#8217;t know if there is a limit to how many you may nest but I have not run into it in Excel or Access.  I think SolidWorks should be the same with regard to that.  </p>
<p>Also, I haven&#8217;t tried it yet but there is something called a Switch statement (and another lesser used function called Choose) that sounds similar to what you are looking for.  Excel and Access both support it so I was wondering if SolidWorks does as well.  I haven&#8217;t tried it yet but if you try it, then please post the results here.</p>
<p>You can read up on them here:<br />
<a href="http://www.dailydoseofexcel.com/archives/2005/02/21/the-switch-function/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2005/02/21/the-switch-function/</a></p>
<p>Thanks,<br />
Jeff</p>
]]></content:encoded>
	</item>
</channel>
</rss>
