Update Referenced Drawing

Hi, here what I need to programmatically do via API on C#:

1. Open Assembly or Part Document

2. Change one or more quotas values on the opened document

3. Open up an associated drawing, correctly updated after quotas changes

4. Save drawing as PDF or DWG (maintaining unsaved the original source that now can be closed)

The problem is that the drawing is not being updated...I've tried:

swModelDrawing.WindowRedraw();

swModelDrawing.EditRebuild3();

swModelDrawing.ForceRebuild3(false);

swModExtDrawing.SaveAs(

    "fileName.pdf",

    (int)swSaveAsVersion_e.swSaveAsCurrentVersion,

    (int)swSaveAsOptions_e.swSaveAsOptions_Silent, // maybe swSaveAsOptions_SaveReferenced ??

    null,

    ref swErrors,

    ref swWarnings);

I know the problem is here, 'cause I'm sure 1. and 2. works correctly (I use them for other purposes).

Many thanks for any advice.

SolidworksApi macros