import_3d_cad#

Modeler3D.import_3d_cad(input_file, healing=False, refresh_all_ids=True, import_materials=False, create_lightweigth_part=False, group_by_assembly=False, create_group=True, separate_disjoints_lumped_object=False, import_free_surfaces=False, point_coicidence_tolerance=1e-06, heal_stl=True, reduce_stl=False, reduce_percentage=0, reduce_error=0, merge_planar_faces=True, merge_angle=0.02)#

Import a CAD model.

Parameters:
input_filestr

Full path and name of the CAD file.

healingbool, optional

Whether to perform healing. The default is False, in which case healing is not performed.

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

Either to import material names from the file or not if presents.

create_lightweigth_partbool ,optional

Either to import lightweight or not.

group_by_assemblybool, optional

Either import by sub-assembly or individual parts. The default is False.

create_groupbool, optional

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

separate_disjoints_lumped_objectbool, optional

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

import_free_surfacesbool, optional

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

point_coicidence_tolerancefloat, optional

Tolerance on point. Default is 1e-6.

heal_stlbool, optional

Whether to heal the stl file on import or not. Default is True.

reduce_stlbool, optional

Whether to reduce the stl file on import or not. Default is True.

reduce_percentageint, optional

Stl reduce percentage. Default is 0.

reduce_errorint, optional

Stl error percentage during reduce operation. Default is 0.

merge_planar_facesbool, optional

Stl automatic planar face merge during import. Default is True.

merge_anglefloat, optional

Stl import angle in radians for which faces will be considered planar. Default is 2e-2.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.Import