<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Extensible By Design &#187; Extensible By Design</title>
	<atom:link href="http://extensiblecad.com/words/category/solidworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://extensiblecad.com/words</link>
	<description>SolidWorks and PDMWorks Enterprise Development Blog</description>
	<lastBuildDate>Mon, 02 Feb 2009 09:02:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Come See Us At SolidWorks World</title>
		<link>http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/</link>
		<comments>http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 08:49:21 +0000</pubDate>
		<dc:creator>Jeff Cope</dc:creator>
				<category><![CDATA[MS Office]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[SolidWorks Enterprise PDM]]></category>

		<guid isPermaLink="false">http://extensiblecad.com/words/?p=157</guid>
		<description><![CDATA[Extensible CAD will be exhibiting in booth #2 at SolidWorks World this year.  We will be showing InspectionXpert for SolidWorks, InspectionXpert First-Article and Office2PDM.  InspectionXpert is software that automates the creation of first article inspection sheets from CAD drawings.  Office2PDM is an addin for MS Office that enables you to work with Enterprise PDM from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://extensiblecad.com/words/wp-content/uploads/2007/10/jeffcopeteaser.jpg"><img class="size-medium wp-image-12 alignleft" title="Jeff Cope" src="http://extensiblecad.com/words/wp-content/uploads/2007/10/jeffcopeteaser.jpg" alt="" width="67" height="70" /></a>Extensible CAD will be exhibiting in booth #2 at SolidWorks World this year.  We will be showing InspectionXpert for SolidWorks, InspectionXpert First-Article and Office2PDM.  InspectionXpert is software that automates the creation of first article inspection sheets from CAD drawings.  Office2PDM is an addin for MS Office that enables you to work with Enterprise PDM from inside of Word, Powerpoint and Excel.</p>
<p>I will also be presenting personally on Enterprise PDM Customization on Monday at 1:30pm.  Unfortunately they scheduled me at the same time as Joy Garon&#8217;s What&#8217;s New In EPDM 2009 but that is just how it goes.  Stop by my session if you can and if not, then stop by our booth and say hello.</p>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<small><p>&copy; Jeff Cope for <a href="http://extensiblecad.com/words">Extensible By Design</a>, 2009. |
	<a href="http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/">Permalink</a> |
	<a href="http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/#comments">One comment</a> |
	Add to
	<a href="http://del.icio.us/post?url=http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/&amp;title=Come See Us At SolidWorks World"><img src="http://yoursite.com/images/icons/delicious.gif" border="0"> del.icio.us</a>
	<a href="http://www.digg.com/submit"><img src="http://yoursite.com/images/digg.gif" border="0"> digg</a><br/>
	Who's linking ?
	<a href="http://www.technorati.com/search/http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/" title="Search on Technorati"><img src="http://yoursite.com/images/icons/technorati.gif" border="0">Technorati</a>
	<a href="http://www.blogpulse.com/search?query=http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/" title="Search on Blogpulse"><img src="http://yoursite.com/images/icons/blogpulse.gif" border="0">BlogPulse</a>
	<a href="http://google.com/blogsearch?q=http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/" title="Search on Google Blog Search"><img src="http://yoursite.com/images/icons/google.gif" border="0">Google</a><br/>
	Want more on these topics ? Browse the archive of posts filed under <a href="http://extensiblecad.com/words/category/ms-office/" title="View all posts in MS Office" rel="category tag">MS Office</a>, <a href="http://extensiblecad.com/words/category/solidworks/" title="View all posts in SolidWorks" rel="category tag">SolidWorks</a>, <a href="http://extensiblecad.com/words/category/pdmplm/solidworks-enterprise-pdm-pdmplm/" title="View all posts in SolidWorks Enterprise PDM" rel="category tag">SolidWorks Enterprise PDM</a>.</small></p>
<p>Copyright 2007 <a href=http://extensiblecad.com/words>Extensible By Design.</a>  All rights reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://extensiblecad.com/words/2009/02/02/come-see-us-at-solidworks-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SolidWorks API Presentation &#8211; Beginner&#8217;s Guide To The API</title>
		<link>http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/</link>
		<comments>http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 17:40:11 +0000</pubDate>
		<dc:creator>Jeff Cope</dc:creator>
				<category><![CDATA[CAD]]></category>
		<category><![CDATA[Macros]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[SolidWorks API]]></category>

		<guid isPermaLink="false">http://extensiblecad.com/words/?p=150</guid>
		<description><![CDATA[From time to time I do presentations on the SolidWorks API and one that gets requested fairly often is the Beginner&#8217;s Guide To The API.  I just presented this in Roanoke, VA at the Blue Ridge SolidWorks User&#8217;s Group headed up by Jeremy Marks.  They were a good bunch of guys (although there was a [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time I do presentations on the SolidWorks API and one that gets requested fairly often is the Beginner&#8217;s Guide To The API.  I just presented this in Roanoke, VA at the Blue Ridge SolidWorks User&#8217;s Group headed up by Jeremy Marks.  They were a good bunch of guys (although there was a University of North Carolina fan in attendance) and it seems like a well-run group.  However, after risking my life to get there by driving through what seemed the rain-storm of the century on unfamiliar mountain highways with almost no visibility I have decided that in the future it might be safer for me to simply make the presentation available on my blog : )</p>
<p><a href="http://extensiblecad.com/words/wp-content/uploads/2008/12/beginners-guide-to-the-api.pdf">beginners-guide-to-the-api</a></p>
<p>Also, the SolidWorks Autonumbering Macro (w/ MS Access Database) that I usually show has been written up for ConnectPress with a link to download the Macro and Database.  You can view that article here:</p>
<p><a href="http://www.solidworkscommunity.com/feature_full.php?cpfeatureid=32314">http://www.solidworkscommunity.com/feature_full.php?cpfeatureid=32314</a></p>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<small><p>&copy; Jeff Cope for <a href="http://extensiblecad.com/words">Extensible By Design</a>, 2008. |
	<a href="http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/">Permalink</a> |
	<a href="http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/#comments">One comment</a> |
	Add to
	<a href="http://del.icio.us/post?url=http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/&amp;title=SolidWorks API Presentation &#8211; Beginner&#8217;s Guide To The API"><img src="http://yoursite.com/images/icons/delicious.gif" border="0"> del.icio.us</a>
	<a href="http://www.digg.com/submit"><img src="http://yoursite.com/images/digg.gif" border="0"> digg</a><br/>
	Who's linking ?
	<a href="http://www.technorati.com/search/http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/" title="Search on Technorati"><img src="http://yoursite.com/images/icons/technorati.gif" border="0">Technorati</a>
	<a href="http://www.blogpulse.com/search?query=http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/" title="Search on Blogpulse"><img src="http://yoursite.com/images/icons/blogpulse.gif" border="0">BlogPulse</a>
	<a href="http://google.com/blogsearch?q=http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/" title="Search on Google Blog Search"><img src="http://yoursite.com/images/icons/google.gif" border="0">Google</a><br/>
	Want more on these topics ? Browse the archive of posts filed under <a href="http://extensiblecad.com/words/category/cad/" title="View all posts in CAD" rel="category tag">CAD</a>, <a href="http://extensiblecad.com/words/category/macros/" title="View all posts in Macros" rel="category tag">Macros</a>, <a href="http://extensiblecad.com/words/category/solidworks/" title="View all posts in SolidWorks" rel="category tag">SolidWorks</a>, <a href="http://extensiblecad.com/words/category/solidworks/solidworks-api/" title="View all posts in SolidWorks API" rel="category tag">SolidWorks API</a>.</small></p>
<p>Copyright 2007 <a href=http://extensiblecad.com/words>Extensible By Design.</a>  All rights reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://extensiblecad.com/words/2008/12/17/solidworks-api-presentation-beginners-guide-to-the-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EPDM Number Generator&#8230;Updated For 2009</title>
		<link>http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/</link>
		<comments>http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 07:04:21 +0000</pubDate>
		<dc:creator>Jeff Cope</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Enterprise PDM]]></category>
		<category><![CDATA[Enterprise PDM API]]></category>
		<category><![CDATA[PDMWE API]]></category>
		<category><![CDATA[PDMWorks Enterprise]]></category>
		<category><![CDATA[SolidWorks Enterprise PDM]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[solidworks enterprise pdm]]></category>

		<guid isPermaLink="false">http://extensiblecad.com/words/?p=140</guid>
		<description><![CDATA[Due to blackmail and extortion a request from my good friend Rohizzle, I have updated the popular Number Generator to work with 2009.  I have not made any enhancements so you can refer to the previous version&#8217;s post for instructions.  Net:  This is an addin for SolidWorks Entperprise PDM that enables users to pick, at run-time, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://extensiblecad.com/words/wp-content/uploads/2007/10/jeffcopeteaser.jpg"><img class="size-medium wp-image-12 alignleft" title="Jeff Cope" src="http://extensiblecad.com/words/wp-content/uploads/2007/10/jeffcopeteaser.jpg" alt="" width="67" height="70" /></a>Due to <span style="text-decoration: line-through;">blackmail and extortion</span> a request from my good friend Rohizzle, I have updated the popular Number Generator to work with 2009.  I have not made any enhancements so you can refer to the <a href="http://extensiblecad.com/words/2008/07/09/pdmwe-number-generator-part-deaux/" target="_blank">previous version&#8217;s post</a> for instructions. </p>
<p>Net:  This is an addin for SolidWorks Entperprise PDM that enables users to pick, at run-time, the numbering sequence to use for auto-numbering.</p>
<p><a href="http://extensiblecad.com/words/wp-content/uploads/2008/12/numbergeneratorforpdmwe2009.zip">2009 Version Download</a></p>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<small><p>&copy; Jeff Cope for <a href="http://extensiblecad.com/words">Extensible By Design</a>, 2008. |
	<a href="http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/">Permalink</a> |
	<a href="http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/#comments">6 comments</a> |
	Add to
	<a href="http://del.icio.us/post?url=http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/&amp;title=EPDM Number Generator&#8230;Updated For 2009"><img src="http://yoursite.com/images/icons/delicious.gif" border="0"> del.icio.us</a>
	<a href="http://www.digg.com/submit"><img src="http://yoursite.com/images/digg.gif" border="0"> digg</a><br/>
	Who's linking ?
	<a href="http://www.technorati.com/search/http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/" title="Search on Technorati"><img src="http://yoursite.com/images/icons/technorati.gif" border="0">Technorati</a>
	<a href="http://www.blogpulse.com/search?query=http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/" title="Search on Blogpulse"><img src="http://yoursite.com/images/icons/blogpulse.gif" border="0">BlogPulse</a>
	<a href="http://google.com/blogsearch?q=http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/" title="Search on Google Blog Search"><img src="http://yoursite.com/images/icons/google.gif" border="0">Google</a><br/>
	Want more on these topics ? Browse the archive of posts filed under <a href="http://extensiblecad.com/words/category/net/" title="View all posts in .NET" rel="category tag">.NET</a>, <a href="http://extensiblecad.com/words/category/solidworks/enterprise-pdm/" title="View all posts in Enterprise PDM" rel="category tag">Enterprise PDM</a>, <a href="http://extensiblecad.com/words/category/solidworks/enterprise-pdm-api/" title="View all posts in Enterprise PDM API" rel="category tag">Enterprise PDM API</a>, <a href="http://extensiblecad.com/words/category/pdmplm/pdmwe/pdmwe-api/" title="View all posts in PDMWE API" rel="category tag">PDMWE API</a>, <a href="http://extensiblecad.com/words/category/pdmworks-enterprise/" title="View all posts in PDMWorks Enterprise" rel="category tag">PDMWorks Enterprise</a>, <a href="http://extensiblecad.com/words/category/pdmplm/solidworks-enterprise-pdm-pdmplm/" title="View all posts in SolidWorks Enterprise PDM" rel="category tag">SolidWorks Enterprise PDM</a>, <a href="http://extensiblecad.com/words/category/xml/" title="View all posts in XML" rel="category tag">XML</a>.</small></p>
<p>Copyright 2007 <a href=http://extensiblecad.com/words>Extensible By Design.</a>  All rights reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://extensiblecad.com/words/2008/12/02/epdm-number-generatorupdated-for-2009/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Setting Up and Troubleshooting Your SolidWorks Add-in Development Environment.  Take off, eh&#8230;</title>
		<link>http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/</link>
		<comments>http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 05:31:31 +0000</pubDate>
		<dc:creator>Jeff Cope</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[SolidWorks API]]></category>

		<guid isPermaLink="false">http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/</guid>
		<description><![CDATA[  Writing Add-ins in SolidWorks can be tricky stuff as it involves class libraries, COM, interfaces, etc&#8230;  It can be argued whether it is easier or harder in .NET (ease of use of .NET versus pain in the rear of COM Interop) but your good friends at SolidWorks set out to make it easy on [...]]]></description>
			<content:encoded><![CDATA[<p> <img border="0" vspace="15" width="450" src="http://extensiblecad.com/words/wp-content/uploads/2007/12/mckenzie_bros.jpg" hspace="15" height="348" /></p>
<p>Writing Add-ins in SolidWorks can be tricky stuff as it involves class libraries, COM, interfaces, etc&#8230;  It can be argued whether it is easier or harder in .NET (ease of use of .NET versus pain in the rear of COM Interop) but your good friends at SolidWorks set out to make it easy on all of us by creating Visual Studio templates for quickly creating SolidWorks Add-ins.  <span id="more-85"></span>The templates are packaged with the SolidWorks API SDK, support VB and C# and are analagous to having a SolidWorks part template that already has some geometry in it, custom properties, material assigned, etc&#8230;  When it was introduced back in the day, it was a Godsend.  It does have its issues from time to time though.  For some reason, I have had trouble deploying both on SolidWorks 2007 and 2008.  The SolidWorks API SDK installer runs without errors but when I attempt to create a new SolidWorks Add-in, I see this unfriendly message:</p>
<p> <img border="0" vspace="10" align="middle" width="783" src="http://extensiblecad.com/words/wp-content/uploads/2008/06/solidworks-developmentenvironmentthree.png" hspace="10" alt="SolidWorks Add-in Template Error" height="142" /></p>
<p>The I have spoken to a few other developers and concluded that I am not the only one so I decided to write a post on it.  Besides, I go through this everytime I have to reinstall SolidWorks, which is just often enough to be a real pain but not quite often enough for me to ever remember the steps to fix the issue.  I should admit then I am writing this as much for myself as I am for you.  Here goes&#8230;</p>
<p> The Cause:</p>
<p>Based on the error message, you might get the impression that this is a trust or security issue.  That might lead you down a path of signing the dll with a strong name, configuring .NET security policy on your machine, etc&#8230; (i.e. the path to frustration).  To find the real cause, we must examine the Global Assembly Cache, GAC, to take a look at this SolidWorksTools dll file.  The GAC is where shared .NET assemblies are placed so that they can be made available to other applications.  On Windows XP, the GAC is located at &#8220;C:Windows\assemblies\&#8221;.  Taking a look at the GAC, we see that it contains a different version of the SolidWorksTools dll file than that which is expected by the SolidWorks Add-in Template for Visual Studio.  The version in the GAC is version 2.0.0.0 and not version 1.0.0.1, which is what the SolidWorks Add-in Template for Visual Studio is looking for.</p>
<p> <img border="0" vspace="10" align="middle" width="1014" src="http://extensiblecad.com/words/wp-content/uploads/2008/06/solidworks-developmentenvironmentone.png" hspace="10" height="724" /></p>
<p> If we take a look at the template itself, then we can see where the version is specified for the SolidWorks Add-in Template for Visual Studio.  FYI, the template is contained in a zip file (SWVBAddin.zip for Visual Basic) which in turn is contained in the &#8220;&#8230;Templates\Project Templates\&lt;Visual Basic or Visual C#&gt;&#8221; folder of your Visual Studio 2005 directory.  Note:  I have Visual Studio 2008 but it is still in the box so I&#8217;ll let you know once I try it if the templates go in the same place. </p>
<p><img border="0" vspace="15" width="844" src="http://extensiblecad.com/words/wp-content/uploads/2008/06/solidworks-developmentenvironmenteleven.png" hspace="15" alt="SWAddin.zip file containing SolidWorks Add-in Template" height="399" /></p>
<p>The zip file contains various bitmaps, icons, classes and modules as you would expect to see in an Add-in but it also a file called VBAddin.vstemplate which is a Visual Studio template file.  Once you open it, you see that indeed a different version of the SolidWorksTools dll file has been specified than the one which is installed in the GAC.  .</p>
<p> <img border="0" vspace="15" align="middle" width="870" src="http://extensiblecad.com/words/wp-content/uploads/2008/06/solidworks-developmentenvironmentfour.png" hspace="15" alt="SolidWorksTools dll issue" height="100" /></p>
<p>In theory, one should be able to update the VBAddin.vstemplate file above to refer to the insalled version of the SolidWorkTools dll file.  One of my favorite philosophers once explained why this might not work for me:</p>
<p> &#8221;In theory there is no difference between theory and practice.  In practice there is.&#8221;  &#8211; Yogi Berra</p>
<p>What I do is just to uninstall the SolidWorksTools dll file in the GAC (right mouse button on the file in the GAC and select uninstall) and replace it with the version 1.0.0.1 file that SolidWorks API support gave me the first time I ever reported this issue (a long time ago, in a galaxy far, far away&#8230;) .  You can do this by simply dropping the file in the GAC folder (e.g. C:\Windows\assemblies). </p>
<p>Once you add the version 1.0.0.1 SolidWorksTools dll file to the GAC, you can go into Visual Studio and attempt to create a new SolidWorks project from the SolidWorks Add-in Template for Visual Studio.</p>
<p> <img border="0" vspace="15" width="690" src="http://extensiblecad.com/words/wp-content/uploads/2008/06/solidworks-developmentenvironmenttwo.png" hspace="15" alt="SolidWorks Add-in Template for Visual Studio" height="478" /></p>
<p>And it works!  Now you can begin writing that Add-in (i.e. the one that is now a few days late while you fought with the SolidWorks SDK).</p>
<p>Note:  For any SolidWorks Add-ins that were previously compiling using the 1.0.0.1 dll, you will have to change your Visual Studio Project to reference the newer version.</p>
<p> Good luck.</p>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<small><p>&copy; Jeff Cope for <a href="http://extensiblecad.com/words">Extensible By Design</a>, 2008. |
	<a href="http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/">Permalink</a> |
	<a href="http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/#comments">10 comments</a> |
	Add to
	<a href="http://del.icio.us/post?url=http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/&amp;title=Setting Up and Troubleshooting Your SolidWorks Add-in Development Environment.  Take off, eh&#8230;"><img src="http://yoursite.com/images/icons/delicious.gif" border="0"> del.icio.us</a>
	<a href="http://www.digg.com/submit"><img src="http://yoursite.com/images/digg.gif" border="0"> digg</a><br/>
	Who's linking ?
	<a href="http://www.technorati.com/search/http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/" title="Search on Technorati"><img src="http://yoursite.com/images/icons/technorati.gif" border="0">Technorati</a>
	<a href="http://www.blogpulse.com/search?query=http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/" title="Search on Blogpulse"><img src="http://yoursite.com/images/icons/blogpulse.gif" border="0">BlogPulse</a>
	<a href="http://google.com/blogsearch?q=http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/" title="Search on Google Blog Search"><img src="http://yoursite.com/images/icons/google.gif" border="0">Google</a><br/>
	Want more on these topics ? Browse the archive of posts filed under <a href="http://extensiblecad.com/words/category/net/" title="View all posts in .NET" rel="category tag">.NET</a>, <a href="http://extensiblecad.com/words/category/com/" title="View all posts in COM" rel="category tag">COM</a>, <a href="http://extensiblecad.com/words/category/solidworks/" title="View all posts in SolidWorks" rel="category tag">SolidWorks</a>, <a href="http://extensiblecad.com/words/category/solidworks/solidworks-api/" title="View all posts in SolidWorks API" rel="category tag">SolidWorks API</a>.</small></p>
<p>Copyright 2007 <a href=http://extensiblecad.com/words>Extensible By Design.</a>  All rights reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://extensiblecad.com/words/2008/06/12/setting-up-and-troubleshooting-your-solidworks-add-in-development-environment-take-off-eh/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Fun With SolidWorks Equations</title>
		<link>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/</link>
		<comments>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 14:40:33 +0000</pubDate>
		<dc:creator>Jeff Cope</dc:creator>
				<category><![CDATA[CAD]]></category>
		<category><![CDATA[SolidWorks]]></category>

		<guid isPermaLink="false">http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/</guid>
		<description><![CDATA[Disclaimer:  This post isn&#8217;t directly API-related but using logic statements in SolidWorks equations is so useful that I decided to post it.  Also, the syntax is in a kind of &#8220;techno-weenie-ese&#8221; so I thought I would help folks with the syntax.   The SolidWorks equation editor is a very useful, powerful and yet easy to use [...]]]></description>
			<content:encoded><![CDATA[<p><img border="1" vspace="10" align="top" width="323" src="http://extensiblecad.com/words/wp-content/uploads/2008/03/navier-stokes.png" hspace="10" alt="SolidWorks Equations Are Cool" height="49" /></p>
<p>Disclaimer:  This post isn&#8217;t directly API-related but using logic statements in SolidWorks equations is so useful that I decided to post it.  Also, the syntax is in a kind of &#8220;techno-weenie-ese&#8221; so I thought I would help folks with the syntax. </p>
<p> The SolidWorks equation editor is a very useful, powerful and yet easy to use tool for building design intent into your SolidWorks model.  However, most people don&#8217;t take full advantage of its power.  In addition to support for constants, which are nice, the equation editor allows If&#8230;Then type logic statements.  The idea is that you can set a dimension&#8217;s value to one of two values depending on the veracity of a logic statement pertaining to another/other dimension(s).  Say what?&#8230;.</p>
<p> Time for an example&#8230;</p>
<p><span id="more-82"></span></p>
<p> Let&#8217;s say I have dimensions A, B and C.  I want to set C = 4 if A+B&lt;5.  If however, A+B&gt;=5 then I want to set C=8.  This is relatively easy to do using the the IIF statement (if statement to lay people).  The syntax is like this:  IIF([test statement],[value if true],[value if false]).  In our example above, the statement would look like this:  IIF(A+B&lt;5, 4, 8).  Pretty simple, right?  I thought so.  In SolidWorks, it would look like this:  d2@extrude1=IIF(&#8220;d1@sketch4&#8243;+&#8221;d2@sketch4&#8243;&lt;5, 4, 8). </p>
<p> As the example video below shows, IIF statements can be extremely powerful in conjunction with the Instant3D functionality that was added in SolidWorks 2008.  Notice how the hub diameter and number of spokes is updated real-time as I drag the ID  accross the 3.00in threshhold.</p>
<p><object width="425" height="373"><param name="movie" value="http://www.youtube.com/v/UvOm0XK0Nvw&#038;rel=0&#038;border=1&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/UvOm0XK0Nvw&#038;rel=0&#038;border=1&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed></object></p>
<p>
You may download the example file show <a href="http://extensiblecad.com/words/wp-content/uploads/2008/03/circular-pattern-part-with-iif-statements-in-equations.zip" title="http://extensiblecad.com/words/wp-content/uploads/2008/03/circular-pattern-part-with-iif-statements-in-equations.zip">from here.</a></p>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<small><p>&copy; Jeff Cope for <a href="http://extensiblecad.com/words">Extensible By Design</a>, 2008. |
	<a href="http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/">Permalink</a> |
	<a href="http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/#comments">16 comments</a> |
	Add to
	<a href="http://del.icio.us/post?url=http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/&amp;title=Fun With SolidWorks Equations"><img src="http://yoursite.com/images/icons/delicious.gif" border="0"> del.icio.us</a>
	<a href="http://www.digg.com/submit"><img src="http://yoursite.com/images/digg.gif" border="0"> digg</a><br/>
	Who's linking ?
	<a href="http://www.technorati.com/search/http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/" title="Search on Technorati"><img src="http://yoursite.com/images/icons/technorati.gif" border="0">Technorati</a>
	<a href="http://www.blogpulse.com/search?query=http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/" title="Search on Blogpulse"><img src="http://yoursite.com/images/icons/blogpulse.gif" border="0">BlogPulse</a>
	<a href="http://google.com/blogsearch?q=http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/" title="Search on Google Blog Search"><img src="http://yoursite.com/images/icons/google.gif" border="0">Google</a><br/>
	Want more on these topics ? Browse the archive of posts filed under <a href="http://extensiblecad.com/words/category/cad/" title="View all posts in CAD" rel="category tag">CAD</a>, <a href="http://extensiblecad.com/words/category/solidworks/" title="View all posts in SolidWorks" rel="category tag">SolidWorks</a>.</small></p>
<p>Copyright 2007 <a href=http://extensiblecad.com/words>Extensible By Design.</a>  All rights reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://extensiblecad.com/words/2008/03/26/fun-with-solidworks-equations/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

