Go to www.awrcorp.com
Back to search page Click to download printable version of this guide.

3.5.1.1. Box

Description

A primitive closed solid in which each face is a rectangle and each pair of adjacent faces meets at a right angle.

Parameters

Label – A unique name that identifies the solid. (ISolid/Label)

Coordinate System – The coordinate system in which the solid is defined. Defaults to working coordinate system at time of creation. (ISolid/CoordinateSystem)

Material – Chosen material for the solid. (ISolid/Material)

Include in Simulation – Indicates if the solid is included in the simulation.  If False, the solid is also not shown in the view. (ISolid/Include)

Visible - Indicates if the solid is shown in the view. (ISolid/Visible)

Mesh Control Only - Indicates if the solid is used as a tool to control meshing. If True, the portion of the solid that does not overlap the other normal solid is thrown away prior to simulation. Additionally, the material of such a solid is irrelevant so the material parameter is hidden. (ISolid/MeshControlOnly)

Type - Controls how the box is defined.

Type/Corner and Extent - [LENGTH] – Box is defined based on a starting Corner defined in the solid’s coordinate system, and an Extent in each of the solid’s three coordinate system directions. (IBoxCornerExtent/Corner, IBoxCornerExtent/Extent)

Type/Start and End Corner - [LENGTH] – Box is defined based on a Start Corner and an End Corner, each defined in the solid’s coordinate system. (IBoxCornerExtent/Corner, IBoxCornerExtent/EndCorner)

Example(s)

User Interface Button

Command Details

Mouse click order is:
1. Corner
2. Extent
See command hint for detailed instructions.

Requirements

At least 2 of the 3 extent components must be non-zero.

Other Notes

You can collapse a box in one direction as one method of constructing a 2D rectangle (also known as a sheet body).

Example Creation Script

Solid_1 = Geometry_1.Box("Box_1", "World", "Air", "0.015, -0.022, 0", "-0.03, 0.023, 0.005")

Scripting Interfaces

“ISolid”
“IBoxCornerExtent”
“ISolidCreationOperation”
“ISolidOperation”

Please send email to awr.support@ni.com if you would like to provide feedback on this article. Please make sure to include the article link in the email.

Legal and Trademark Notice