export_image#
- Polyline.export_image(output_file: str | Path | None = None) str#
Export the current object to a specified file path.
Note
Works from AEDT 2021.2 in CPython only. PyVista has to be installed.
- Parameters:
- output_file
strorpathlib.Path,optional File name with full path. If None the exported image will be a
pngfile that will be saved inworking_directory. To access theworking_directorythe useapp.working_directoryproperty.
- output_file
- Returns:
strFile path.
Examples
>>> from ansys.aedt.core.modeler.cad.object_3d import Object3d >>> obj = Object3d() >>> obj.export_image(output_file=r"example.txt")