.NET API reference
.NET API reference
(OP)
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,
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






RE: .NET API reference
I too have just begun trying to learn VB.net but have not have the problem you describe. How did you set up your references? Please state your steps exactly. Also, post some of your code for the group to look over.
SA