CAD Model Functions#
These function are for making and exporting computer assisted design (CAD) files, generally for opto-mechanical purposes.
- skZemax.skZemax_subfunctions._CAD_functions.CAD_ExportSequentialCadSTPFileAs(self, in_file_path: str, first_surface: int = 1, last_surface: int | None = None, number_of_rays: int = 7, ray_pattern: str = 'XYFan', delete_vignetted: bool = False, configuration_number: int | None = None, wavelength_num: int | None = None, field_num: int | None = None, export_dummy: bool = False, solid_surfaces: bool = True) None[source]#
Exports a cad file of the current optical system.
- Parameters:
in_file_path (str) – File path to save the CAD file to.
first_surface (int, optional) – First surface to include in the CAD, defaults to 1
last_surface (int, optional) – Last surface to include in the CAD, defaults to None
number_of_rays (int, optional) – Number of rays to trace in the CAD, defaults to 7
ray_pattern (str, optional) – Ray pattern to export, defaults to ‘XYFan’
delete_vignetted (bool, optional) – If should remove vignetted rays from the CAD, defaults to False
configuration_number (int, optional) – Configuration to export in the CAD, defaults to None
wavelength_num (int, optional) – Wavelength index to use in CAD, defaults to None
field_num (int, optional) – Field index to use in CAD, defaults to None
export_dummy (bool, optional) – If you want to export dummy surfaces, defaults to False
solid_surfaces (bool, optional) – If you want to export surfaces as solids in the CAD file, defaults to True