SamDiagramDownloader#
- class ansys.sam.sysml2.diagrams.tools.sam_diagram_downloader.SamDiagramDownloader(connector: ansys.sam.sysml2.diagrams.api.SamApiConnector, project_id: str)#
Provides for managing and downloading diagrams.
Overview#
Download a single diagram and save it to disk. |
|
Download all diagrams as a ZIP archive. |
Import detail#
from ansys.sam.sysml2.diagrams.tools.sam_diagram_downloader import SamDiagramDownloader
Method detail#
- SamDiagramDownloader.download_diagram(diagram_id: str, path: str | pathlib.Path, file_format: str = 'svg', filename: str = '') str#
Download a single diagram and save it to disk.
- Parameters:
- Returns:
strReturn the path of the file created.
- Raises:
DiagramNotAvailableExceptionIf diagram functionality is not available for this project.
DiagramConnectorExceptionIf the download fails or HTTP response is not 200.