insert_3d_component#

Modeler3D.insert_3d_component(comp_file, geo_params=None, sz_mat_params='', sz_design_params='', targetCS='Global', name=None, password='', auxiliary_dict=False)[source]#

Insert a new 3D component.

Parameters:
comp_filestr

Name of the component file.

geo_paramsdict, optional

Geometrical parameters.

sz_mat_paramsstr, optional

Material parameters. The default is "".

sz_design_paramsstr, optional

Design parameters. The default is "".

targetCSstr, optional

Target coordinate system. The default is "Global".

namestr, optional

3D component name. The default is None.

passwordstr, optional

Password for encrypted components. The default is an empty string.

auxiliary_dictbool or str, optional

Enable the advanced 3d component import. It is possible to set explicitly the json file. The default is False.

Returns:
pyaedt.modeler.components_3d.UserDefinedComponent

User defined component object.

References

>>> oEditor.Insert3DComponent