SldWorks.SldWorks ? Reference missing?

Oct 11, 2004 1 Replies

I notice that at lot of the SW API examples use the following Type definitions. Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swModelTitle As SldWorks.ModelDoc2 Dim swModelPath As SldWorks.ModelDoc2



They always cause a compile error for me, though. I just re-define them as Type Object and everything works fine, but I'm just wondering why this happens. Anyone tell me why?



Thanks


I've got it - Needed the reference to Sldworks Type Library added. Sorry

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required