This example shows how to handle RapidDraft drawings.
RapidDraft drawings may be out of sync with their underlying models. To ensure correct printing and dimensioning of drawings, you need to first detect and then address any synchronization issues.
Check whether the drawing is up-to-date with respect to its underlying model.
The attached macro shows how to use several APIs to check whether a RapidDraft drawing is in sync with its underlying model and if not, to reload the model.
- Extract the archive in a convenient location.
- Open the macro (VBA, VB.NET, or C#) in the SolidWorks Macro Editor.
- In the macro modify local_path_name to point to box_RapidDraft.SLDDRW.
- Run the macro.
The drawing file is opened and updated.
|- required for full access.|
- Looking for more API Examples?
Copyright © 2011 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.