Convert to an interactive SVG where the provided annotations are highlighted
- async AsyncCogniteClient.diagrams.convert(
- detect_job: DiagramDetectResults,
Convert a P&ID to interactive SVGs where the provided annotations are highlighted.
Note
Will automatically wait for the detect job to complete before starting the conversion.
- Parameters:
detect_job (DiagramDetectResults) – detect job
- Returns:
Resulting queued job.
- Return type:
Examples
Run a detection job, then convert the results:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> detect_job = client.diagrams.detect(...) >>> client.diagrams.convert(detect_job=detect_job)