export_text(...) - export_text(...) - 2026.1 English - UG1781

Python Scripting Guide for PDM Tool (UG1781)

Document_ID
UG1781
Release_Date
2026-06-23
Version
2026.1 English
Revision

Description

Export tool data to a text file in a specified format.

Syntax

export_text(<text_file>, format='pwr', overwrite=False)

Parameters

Name Description
<text_file> Path to the text file for export.
[format] Format of the exported file. Currently supported format is 'pwr'.

Default: pwr

[overwrite] If True, overwrite the output file if it already exists.

Default: False

Examples

# Export project data to a text file in power report format
proj = open_project('my_design.pdm')
proj.export_text('power_report.pwr', format='pwr')