<?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: Macros 201 &#8211; How To Register Your SolidWorks Macro To Receive Notifications For SolidWorks Events</title>
	<atom:link href="http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/feed/" rel="self" type="application/rss+xml" />
	<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/</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: Brian</title>
		<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/comment-page-1/#comment-328</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 24 Sep 2008 00:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/?p=25#comment-328</guid>
		<description>Hi Jeff,
I just began studying your work, very nice.  If you could help a newbie... in this macro, my machine reports a compile error, sub or function not defined on the &quot;Call writeVersion&quot; line.  Is there something I don&#039;t have turned on or installed?  I&#039;m still using SW2007x64 sp5.0.  Thanks.
Brian</description>
		<content:encoded><![CDATA[<p>Hi Jeff,<br />
I just began studying your work, very nice.  If you could help a newbie&#8230; in this macro, my machine reports a compile error, sub or function not defined on the &#8220;Call writeVersion&#8221; line.  Is there something I don&#8217;t have turned on or installed?  I&#8217;m still using SW2007x64 sp5.0.  Thanks.<br />
Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/comment-page-1/#comment-273</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Thu, 24 Apr 2008 20:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/?p=25#comment-273</guid>
		<description>Hi Marco,

The only way I know of to do what you want is to turn this Macro into a SolidWorks Add-in.

Jeff</description>
		<content:encoded><![CDATA[<p>Hi Marco,</p>
<p>The only way I know of to do what you want is to turn this Macro into a SolidWorks Add-in.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco</title>
		<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/comment-page-1/#comment-272</link>
		<dc:creator>marco</dc:creator>
		<pubDate>Thu, 24 Apr 2008 15:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/?p=25#comment-272</guid>
		<description>How can set this macro autorun ?</description>
		<content:encoded><![CDATA[<p>How can set this macro autorun ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/comment-page-1/#comment-259</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sat, 22 Mar 2008 05:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/?p=25#comment-259</guid>
		<description>Hi Anne,

I am really sorry for the slow response.  The problem is that you are using a DIm statement outside of a function or procedure.  Inside of procedure you declare a variable using the Dim statement but outside of a procedure you use either the Public or Private statements depending on what access you want to the variable.

Try this:

Option Explicit

Private SwApp As SldWorks.SldWorks

Let me know if that helps.  If not, then make sure that you have a reference to the SldWorks Type Library under Tools, References.

May the force be with you,
Jeff</description>
		<content:encoded><![CDATA[<p>Hi Anne,</p>
<p>I am really sorry for the slow response.  The problem is that you are using a DIm statement outside of a function or procedure.  Inside of procedure you declare a variable using the Dim statement but outside of a procedure you use either the Public or Private statements depending on what access you want to the variable.</p>
<p>Try this:</p>
<p>Option Explicit</p>
<p>Private SwApp As SldWorks.SldWorks</p>
<p>Let me know if that helps.  If not, then make sure that you have a reference to the SldWorks Type Library under Tools, References.</p>
<p>May the force be with you,<br />
Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne</title>
		<link>http://extensiblecad.com/words/2007/11/01/macros-201-how-to-register-your-solidworks-macro-to-receive-notifications-for-solidworks-events/comment-page-1/#comment-240</link>
		<dc:creator>Anne</dc:creator>
		<pubDate>Thu, 13 Mar 2008 07:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://extensiblecad.com/words/?p=25#comment-240</guid>
		<description>I had this macro code and I am not sure why it can&#039;t work..

-----------------------------------------------------------
Option Explicit

Dim SwApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim SelMgr As SldWorks.SelectionMgr
Dim boolstatus As Boolean
-----------------------------------------------------------

It says that User-defined type not defined and the SwApp As SldWorks.SldWorks is highlighted. I am unsure why too. Can you help?

I am using SW 2008 with VB6</description>
		<content:encoded><![CDATA[<p>I had this macro code and I am not sure why it can&#8217;t work..</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Option Explicit</p>
<p>Dim SwApp As SldWorks.SldWorks<br />
Dim Part As SldWorks.ModelDoc2<br />
Dim SelMgr As SldWorks.SelectionMgr<br />
Dim boolstatus As Boolean<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>It says that User-defined type not defined and the SwApp As SldWorks.SldWorks is highlighted. I am unsure why too. Can you help?</p>
<p>I am using SW 2008 with VB6</p>
]]></content:encoded>
	</item>
</channel>
</rss>
