Has anyone used the OpenDoc6 in SW 2003
Has anyone used the OpenDoc6 in SW 2003
(OP)
I am trying to open a drawing Docuemnt, but cannot get it to work.
Here is the code:
Dim RetVal as Variant
RetVal = SolidWorks.Application.OpenDoc6(
"Drawing.slddrw", 3, 5, "", 0, 0)
Can anyone see the problem? And yes, I have tried declaring RetVal as an object, as a ModelDoc2 and as a DrawingDoc.
Thanks,
John G.
Here is the code:
Dim RetVal as Variant
RetVal = SolidWorks.Application.OpenDoc6(
"Drawing.slddrw", 3, 5, "", 0, 0)
Can anyone see the problem? And yes, I have tried declaring RetVal as an object, as a ModelDoc2 and as a DrawingDoc.
Thanks,
John G.






RE: Has anyone used the OpenDoc6 in SW 2003
Dim RetVal as Object
Set RetVal = SolidWorks.Application.OpenDoc6("Drawing.slddrw", 3, 5, "", 0, 0)
This is a MUST for all objects in VB, you have to use Set.
HTH,
Stefan
--
unofficial german SolidWorks helppage
http://solidworks.cad.de
Shareware, freeware, tools and macros
http://swtools.cad.de