get_dxf_layers#

ansys.aedt.core.generic.file_utils.get_dxf_layers(input_file: str | Path) list[str]#

Read a DXF file and return all layer names.

Parameters:
input_filestr or pathlib.Path

Full path to the DXF file.

Returns:
list

List of layers in the DXF file.

Examples

>>> from ansys.aedt.core.generic.file_utils import get_dxf_layers
>>> get_dxf_layers(r"C:\Temp\board_outline.dxf")