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

3.5.1.23. Extrusion

Description

A sketch based closed solid resulting from sweeping the contents of a sketch along a simple linear path. The sketch can contain multiple surfaces.

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)

Direction – Vector indicating the direction the sketch contents are swept defined in the solid’s coordinate system. This is not required to be normal to the sketch. This is a unitless vector and its magnitude is irrelevant.

Height - [LENGTH] – Length of the sweep.

Draft Angle - [PHASE] – Defines the angle with which each individual sketch surface is to draft while sweeping and is measured against normal of the sketch in a perpendicular way. A positive value causes a draft out while a negative value causes a draft in.

Twist Angle - [PHASE] – Defines how much the sketch is rotated in total as it is swept along the path. The rotation is performed about the center of the entire sketch contents.

Simplify - If True, adjacent colinear elements produce a single face; otherwise they produce adjacent coplanar faces. (IExtrusion/Simplify)

Example(s)

User Interface Button

Command Details

Creation immediately takes you into the sketch mode to add content. Exiting the sketch mode then generates the sweep.

Requirements

Direction must have a non-zero perpendicular component to the sketch. Negative draft angles can result in regeneration errors due to self-intersecting geometry. A height of 0 can be used to produce a sheet and is equivalent to the Sheet (2D) solid.

Other Notes

You can switch between a sketched Sheet (2D), extrusion, and revolution by right-clicking the solid in the Browser and choosing Convert To XXX from the context menu. This makes transitioning from 2D to 3D easier.

Example Creation Script

SweptSolid_1 = Geometry_1.Extrusion("Extrusion_6", "World", "XY", "0", "Air", "0.01", "0, 0, 1", "0", "0")

Scripting Interfaces

“ISweptSolid”
“ISolid”
“IExtrusion”
“ICreateSweptSolid”
“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