Access to measurements API

I am trying to access the internal measurement objects (MeasurementService and MeasurementAPI) so as to integrate / embed the viewer in another application.

Looking at the documents and github comments, none of the approaches seem to work using 3.7.1 and 4.12.9.

For example, I looked at the approach mentioned here (Best way to save and load measurements from external data store · Issue #1800 · OHIF/Viewers · GitHub)

OHIF.measurements.MeasurementApi.Instance.tools

but the OHIF object does not exist.

Any help on this would be appreciated.

in OHIF v3, check out Measurement Tracking | OHIF

Hi @parneshraniga, were you able to resolve this issue? I am currently trying to do the same.
Thanks

Hi @janaoravcova . Yes I did for V3.

window.ohif.app.servicesManager.services.MeasurementService.measurements will have all the measurements

Cheers,
Parnesh