Hi everyone,
The topic summary pretty much describes it.
The code snippet is:
Set swAssy = swApp.OpenDoc6(strAssyToReference, swDocASSEMBLY, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
At the end the drawing, assembly, and part are all open, but theassembly is read only. I open the part and drawing in the same way:
Set swPart = swApp.OpenDoc6(strPartToReference, swDocPART, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
Set swDrawing = swApp.OpenDoc6(strDrawingToOpen, swDocDRAWING, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
If I save the drawing and close everything (without saving changesto the assembly, because it won't allow that) then re-open theassembly from solidworks in the normal way, it opens read/write.
Any Ideas?
Thanx,
-plhSolidworksApi macros





The topic summary pretty much describes it.
The code snippet is:
Set swAssy = swApp.OpenDoc6(strAssyToReference, swDocASSEMBLY, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
At the end the drawing, assembly, and part are all open, but theassembly is read only. I open the part and drawing in the same way:
Set swPart = swApp.OpenDoc6(strPartToReference, swDocPART, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
Set swDrawing = swApp.OpenDoc6(strDrawingToOpen, swDocDRAWING, _
swOpenDocOptions_Silent, "", nErrors, nWarnings)
If I save the drawing and close everything (without saving changesto the assembly, because it won't allow that) then re-open theassembly from solidworks in the normal way, it opens read/write.
Any Ideas?
Thanx,
-plhSolidworksApi macros