aerocaps.iges.iges_generator.IGESGenerator#

class IGESGenerator(entities: List[IGESEntity], units: str)[source]#

Bases: object

__init__(entities: List[IGESEntity], units: str)[source]#

Creation class for an IGES file using a list of IGES entities. To generate the file, use the generate method.

Parameters:
  • entities (List[IGESEntity]) – List of IGES entities from which a file can be created

  • units (str) – Output units to be stored in the IGES file

Methods

generate(file_name)

Generates an IGES file containing all the information for the entities.

generate(file_name: str)[source]#

Generates an IGES file containing all the information for the entities.

Parameters:

file_name (str) – File where the IGES data will be saved. If the file name does not end with the “.igs” or “.iges” extension, it will be added automatically.

Returns:

The IGES data in Python string format

Return type:

str