Skip to main content
Lars Moastuen
Expert ⭐️⭐️⭐️⭐️
Jan 12, 2023 5:47 PM UTC

Please see https://docs.cognite.com/api/v1/#tag/Engineering-diagrams for details on the API for engineering diagrams. The JavaScript SDK doesn’t have dedicated endpoints for this API as its rarely used with Javascript, but it can be accessed using generic REST API functionality in CogniteClient, e.g. https://cognitedata.github.io/cognite-sdk-js/classes/cogniteclient.html#post.

Note that we do not have a dedicated file viewer component in place at this time, so you will need to write a custom document viewer on your own.

Lars Moastuen (Software Engineer, Atlas AI)

20 replies

Practitioner ⭐️
Jan 23, 2023 12:24 PM UTC

 

How do we draw a rectangle to select assets on top of P&ID diagram 

Expert ⭐️⭐️⭐️⭐️
Jan 24, 2023 4:39 AM UTC

Hi Karthik, 

Have you checked out our documentation regarding P&IDs and interactive engineering diagrams? 
https://docs.cognite.com/cdf/integration/guides/contextualization/interactive_diagrams/

I think you’ll be able to find some information there.

 

Best,

Carin

Practitioner ⭐️
Jan 25, 2023 3:55 AM UTC

ok thanks.

Practitioner ⭐️
Jan 25, 2023 4:41 AM UTC

I am use correct job id but I facing above issue  

Expert ⭐️⭐️⭐️⭐️
Jan 25, 2023 5:05 AM UTC

Hi @Karthik Kaliyaperumal, according to the error, the job ID is not a diagram detect job ID. Can you double-check that you are using a diagram detect job ID for this API call?

Practitioner ⭐️
Jan 30, 2023 4:45 AM UTC

How to access this API?

Expert ⭐️⭐️⭐️⭐️
Jan 30, 2023 5:26 AM UTC

Hi @Karthik Kaliyaperumal, 

As mentioned in the error, you are missing capabilities to use this API. Please assign them to yourself or have someone assign them to you. That should solve the issue. 

Best,

Carin

Practitioner ⭐️
Apr 7, 2023 11:55 AM UTC

Is available dedicated file viewer component? 

Interaction must be handled manually → How to manually, if any NPM packages or JS code library and share reference website.

Practitioner ⭐️
Aug 1, 2023 11:34 AM UTC

Is available dedicated file viewer ?  like image view or pdf file view. How preview all files?

 

Andreea Oprea
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Aug 9, 2023 9:28 AM UTC

Hi @Karthik Kaliyaperumal,

Unfortunately, we don’t have a dedicated file viewer component. But we are considering this work as part of H1 2024 roadmap.

 

Thanks,

Andreea.