'How to force calibration before measuring a DWG file in Forge Viewer?

After checking the documentation of Forge Viewer, I found that there is an option to force the calibration before taking measurements in PDF sheets.

But is there a similar option to force calibration on other types of files, like DWG? Or is there any other workaround?



Solution 1:[1]

I guess you mean the forcePDFCalibration option mentioned here.

For DWG one option could be setting forceCalibrate to true after loading the model:

var ext = viewer.getExtension("Autodesk.Measure");
ext.forceCalibrate = true;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adam Nagy