add_environment#

Modeler3D.add_environment(input_dir, global_offset=[0, 0, 0], yaw=0, pitch=0, roll=0, coordinate_system=None, name=None)[source]#

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_dirstr

Path to the actor directory. It must contain a json settings file and a 3dcomponent (.a3dcomp file).

global_offsetlist, optional

Offset from Global Coordinate System [x,y,z] in meters.

yawfloat, optional

Yaw Rotation from Global Coordinate System in deg.

pitchfloat, optional

Pitch Rotation from Global Coordinate System in deg.

rollfloat, optional

Roll Rotation from Global Coordinate System in deg.

coordinate_systemstr

Relative CS Name of the actor. None for Global CS.

Returns:
ansys.aedt.core.modeler.multiparts.Environment

References

>>> oEditor.Insert3DComponent