scenarios we are working on,
- To show PI&D diagram with annotations, which help to select the asset and create a threat for that asset.
- Or draw a rectangle over the PI&D diagram to select multiple assets.
For the above two scenarios we are referring APIs in,
- Quickstart — cognite-sdk 5.3.1 documentation (readthedocs-hosted.com)
We are successful in getting the PI&D as image by following the below steps,
1. List Files
2. Convert a diagram to image format
3. Get the results for converting an engineering diagram to an image
Best answer by Ola LiabøtrøView original
The way to work with P&IDs going forward is to overlay them with annotations. An annotation denotes a region in a file and can link to e.g. assets. You can see documentation here:
The convert to image flow will be deprecated. https://docs.cognite.com/api/v1/#tag/Engineering-diagrams/operation/diagramDetect is the easiest way to detect references to assets, but the output should be written to the annotations API.
The overlaying of annotations is handled by a unified file viewer component which is being rolled out to relevant applications. I am not sure which application is most ideal for the mentioned use cases, or if creating a custom app is the intention, but it should anyway be based on annotations.
Hope that helps!
Regarding your second second point; if you have access to Cognite Data Fusion, we have multiple apps such as Data Explorer and Interactive Engineering Diagrams where you can visualize and manually create annotations for your files. Currently, only annotations of types
diagrams.FileLinkcan be visualized and manually created in those apps. Moreover, annotations in these apps can only be edited and created one at a time.
Hope this helps,
Its a custom app that we are building and i was hoping there was something similar to Cognite Reveal for engineering diagrams...is that what the new file viewer is? can we test it in beta