import_3d_cad#
- Maxwell2d.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)#
Import a CAD model.
- Parameters:
- input_file
str
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_lightweigth_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_coicidence_tolerance
float
,optional
Tolerance on the point. The default is
1e-6
.- heal_stlbool,
optional
Whether to heal the STL file on import. The default is
True
.- reduce_stlbool,
optional
Whether to reduce the STL file on import. The default is
True
.- reduce_percentage
int
,optional
Percentage to reduce the STL file by if
reduce_stl=True
. The default is0
.- reduce_error
int
,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
.
- input_file
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.Import