import_3d_cad#

Modeler2D.import_3d_cad(filename, 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)[source]#

Import a CAD model.

Parameters:
filenamestr

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.

healingint, optional

Whether to perform healing. The default is 0, 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.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.Import