×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

.NET API reference

.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,

Chris Gervais
Application Engineer
CSWP, CSWST

RE: .NET API reference

RawheadRex,

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources