JpPhysics
Mechanical
- Mar 25, 2002
- 35
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.