add_environment#

Modeler3D.add_environment(env_folder, global_offset=[0, 0, 0], yaw=0, pitch=0, roll=0, relative_cs_name=None, environment_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:
env_folderstr

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.

relative_cs_namestr

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

Returns:
pyaedt.modeler.multiparts.Environment

References

>>> oEditor.Insert3DComponent