RawheadRex
Mechanical
- Feb 9, 2001
- 236
Hi Folks,
I'm having a hell of a time w/ something and I'm sure the answer is simple. Here's my situation, I'm trying to come up to speed using VB.NET (VS2005 flavor) to author an application that's using the SolidWorks 2007 API. My previous experience (and I've had a fair amount of it) has been w/ VB6 and VBA. The issue that I'm having is that I can't seem to declare variables for things like SldWorks.SldWorks or ModelDoc2 objects. I know have the correct type libraries referenced and I can see them in the list. By everything that I know I should have access to the SolidWorks API having done this. Can someone PLEASE tell me that I'm missing something and what that might be?
Oh, I'm not trying to do an Add-in just a simple tool for doing batch clean-up of custom properties on SolidWorks files in a specified directory. Yes, I know that I can pull this off in VBA but I really need to get my feet wet w/ .NET for upcoming projects where VBA won't be an option.
It goes w/o saying that after 2 hours of this crap I'm red-faced and swearing up a storm. If anyone can throw me a lifeline here I would be extremely appreciative.
Best regards,
Chris Gervais
Application Engineer
CSWP, CSWST
I'm having a hell of a time w/ something and I'm sure the answer is simple. Here's my situation, I'm trying to come up to speed using VB.NET (VS2005 flavor) to author an application that's using the SolidWorks 2007 API. My previous experience (and I've had a fair amount of it) has been w/ VB6 and VBA. The issue that I'm having is that I can't seem to declare variables for things like SldWorks.SldWorks or ModelDoc2 objects. I know have the correct type libraries referenced and I can see them in the list. By everything that I know I should have access to the SolidWorks API having done this. Can someone PLEASE tell me that I'm missing something and what that might be?
Oh, I'm not trying to do an Add-in just a simple tool for doing batch clean-up of custom properties on SolidWorks files in a specified directory. Yes, I know that I can pull this off in VBA but I really need to get my feet wet w/ .NET for upcoming projects where VBA won't be an option.
It goes w/o saying that after 2 hours of this crap I'm red-faced and swearing up a storm. If anyone can throw me a lifeline here I would be extremely appreciative.
Best regards,
Chris Gervais
Application Engineer
CSWP, CSWST