add_environment#
- Modeler3D.add_environment(input_dir, global_offset=[0, 0, 0], yaw=0, pitch=0, roll=0, coordinate_system=None, name=None)#
Add an Environment Multipart Component from JSON file.
{ "name": "open1", "version": 1, "class":"environment", "xlim":["-5","95"], "ylim":["-60","60"], "parts": { "open_area": { "comp_name": "open1.a3dcomp", "offset":null, "rotation_cs":null, "rotation":null, "rotation_axis":null, "duplicate_number":null, "duplicate_vector":null } } }
- Parameters:
- input_dir
str
Path to the actor directory. It must contain a json settings file and a 3dcomponent (
.a3dcomp
file).- global_offset
list
,optional
Offset from Global Coordinate System [x,y,z] in meters.
- yaw
float
,optional
Yaw Rotation from Global Coordinate System in deg.
- pitch
float
,optional
Pitch Rotation from Global Coordinate System in deg.
- roll
float
,optional
Roll Rotation from Global Coordinate System in deg.
- coordinate_system
str
Relative CS Name of the actor.
None
for Global CS.
- input_dir
- Returns:
ansys.aedt.core.modeler.multiparts.Environment
References
>>> oEditor.Insert3DComponent