Sheet Metal functions in iLogic

Use Sheet Metal functions to set and/or read the current Sheet Metal Rule and KFactor in a sheet metal part. These functions allow you to change the current Sheet Metal Rule automatically, based on certain conditions such as the current material or material thickness.

To access the Sheet Metal functions, expand the Sheet Metal node under the System tab in the Snippets area.

SheetMetal.SetActiveStyle

Sets the current active Sheet Metal Rule. This function is equivalent to manually selecting a Sheet Metal Rule from the Sheet Metal Defaults dialog box.

Syntax

SheetMetal.SetActiveStyle(“styleName”)

“styleName”

Name of the Sheet Metal Rule from the Sheet Metal Defaults dialog box. The name is not case sensitive.

Examples

SheetMetal.SetActiveStyle(“styleName”)

Specifies the name of a style from the Sheet Metal Rule list:

SheetMetal.SetActiveStyle(MyStyleParameter)

Specifies an iLogic text parameter.

SheetMetal.GetActiveStyle

Reads the currently active Sheet Metal Rule. You can assign it to an iLogic text parameter or to a local variable in a rule. Use this function to act on a model or change the model based on the active Sheet Metal Rule.

Example

CurrentStyleParameter=SheetMetal.GetActiveStyle()

SheetMetal.ActiveKFactor

Reads the currently active KFactor (a numeric value).

Examples

KFactorParameter=SheetMetal.ActiveKFactor

Flat Pattern Extents functions

Use these functions to get the extents of the unfolded flat pattern. You can also view these values by right-clicking on the Flat Pattern in the model tree for the sheet metal part, and selecting Extents.

SheetMetal.FlatExtentsLength

Gets the width (X dimension) of the flat pattern extents.

SheetMetal.FlatExtentsWidth

Gets the width (Y dimension) of the flat pattern extents.

SheetMetal.FlatExtentsArea

Gets the area (X * Y) of the flat pattern extents.