The geometry_file.py module#

Summary#

BuildFile

Provides the build file description.

StlFile

Container for the STL file definition.

MachineType

Machine type values.

Description#

Provides a container for part geometry files.

Module detail#

class geometry_file.BuildFile(type: MachineType, path: os.PathLike)#

Provides the build file description.

In the context of PyAdditive, a build file is a ZIP archive containing:

  • A part geometry file in STL format.

  • Zero or more support geometry files in STL format. Support file names must end in *_vless.stl for volumeless supports and *_solid.stl for solid supports.

  • One or more machine instruction files. The number and type of files depend upon the machine type.

These files must be placed in the root of the archive and not under a folder.

Parameters:
type: MachineType

Type of additive machine the build file is for.

path: os.PathLike

Path to the build file.

Overview#

type

Additive manufacturing machine type this file is for.

path

Path of the ZIP file.

Import detail#

from ansys.additive.core.geometry_file import BuildFile

Property detail#

property BuildFile.type: MachineType#

Additive manufacturing machine type this file is for.

property BuildFile.path: str#

Path of the ZIP file.

class BuildFile.StlFile(path: str)#

Container for the STL file definition.

Overview#

path

Path of the STL file.

Import detail#

from ansys.additive.core.geometry_file import StlFile

Property detail#

property StlFile.path: str#

Path of the STL file.

class StlFile.MachineType#

Bases: enum.IntEnum

Machine type values.

Overview#

Import detail#

from ansys.additive.core.geometry_file import MachineType

Attribute detail#

MachineType.NONE#
MachineType.ADDITIVE_INDUSTRIES#
MachineType.SLM#
MachineType.RENISHAW#
MachineType.EOS#
MachineType.TRUMPF#
MachineType.HB3D#
MachineType.SISMA#