i've got a macro which creates a drawing from an assaembly and saves it as an DWG. Now i want to save that drawing as a detached drawing. I don't want to save the drawing as a normal drawing beforehand, because that takes to much time.
I don't think, that should be a problem but with this code (with "oDrawingDoc" defined as "SldWorks.DrawingDoc"):
Value = oDrawingDoc.SaveAs("C:\Users\USER\Desktop\" + "Test" + ".SLDDRW", swSaveAsDetachedDrawing, swSaveAsOptions_Silent, Nothing, nErrors, nWarnings)
i get "Run Time Error 450" that says: "Wrong number of arguments or invalid property assignment".
Interestingly, as i begin to type "SaveAs", no such suggestion is displayed in the flyout-menu (which should after typing the dot!?). Same, as i type the first "(". Normally, the mandatory inputs are displayed in a yellow frame.
Is there something wrong with my variable declaration?
Help is appreciated.