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_file
str
Name of the component file.
- geo_params
dict
,optional
Geometrical parameters.
- sz_mat_params
str
,optional
Material parameters. The default is
""
.- sz_design_params
str
,optional
Design parameters. The default is
""
.- targetCS
str
,optional
Target coordinate system. The default is
"Global"
.- name
str
,optional
3D component name. The default is
None
.- password
str
,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
.
- comp_file
- Returns:
pyaedt.modeler.components_3d.UserDefinedComponent
User defined component object.
References
>>> oEditor.Insert3DComponent