import_3d_cad#

Maxwell2d.import_3d_cad(input_file: str | Path, healing: bool = False, refresh_all_ids: bool = True, import_materials: bool = False, create_lightweight_part: bool = False, group_by_assembly: bool = False, create_group: bool = True, separate_disjoints_lumped_object: bool = False, import_free_surfaces: bool = False, point_coincidence_tolerance: float = 1e-06, reduce_stl: bool = False, reduce_percentage: int = 0, reduce_error: int = 0, merge_planar_faces: bool = True) bool#

Import a CAD model.

Parameters:
input_filestr or pathlib.Path

Full path and name of the CAD file.

healingbool, optional

Whether to perform healing. The default is False.

refresh_all_idsbool, optional

Whether to refresh all IDs after the CAD file is loaded. The default is True. Refreshing IDs can take a lot of time in a big project.

import_materialsbool optional

Whether to import material names from the file if present. The default is False.

create_lightweight_partbool ,optional

Whether to import a lightweight part. The default is True.

group_by_assemblybool, optional

Whether to import by subassembly. The default is False, in which case the import is by individual parts.

create_groupbool, optional

Whether to create a group of imported objects. The default is True.

separate_disjoints_lumped_objectbool, optional

Whether to automatically separate disjoint parts. The default is False.

import_free_surfacesbool, optional

Whether to import free surfaces parts. The default is False.

point_coincidence_tolerancefloat, optional

Tolerance on the point. The default is 1e-6.

reduce_stlbool, optional

Whether to reduce the STL file on import. The default is True.

reduce_percentageint, optional

Percentage to reduce the STL file by if reduce_stl=True. The default is 0.

reduce_errorint, optional

Error percentage during STL reduction operation. The default is 0.

merge_planar_facesbool, optional

Whether to merge planar faces during import. The default is True.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.Import