Flat Pattern View <IvFlatPatternView>

Synopsis

Defines a Flat Pattern View suitable for displaying sheet metal flat patterns. More than one Flat Pattern View can be created on a sheet.

Mixins

IvFlatPatternViewModifier

IvCommonViewMixin

Parameters

Name Type Description
model part (Required) Model to be displayed in the Flat Pattern View. This refers to another part , representing Sheet Metal part in the model. If the part does not represent Inventor Sheet Metal part , then exception is thrown. Sheet Metal part should also contain a flat pattern.
viewOrientation name Specifies the alignment of the Flat Pattern View. Valid values are: :Default, :PivotRight, :PivotLeft, :Pivot180, :Backside, :BacksidePivotRight, :BacksidePivotLeft, :BacksidePivot180. :Default is the default value.
positionalRepresentation part (From IvBaseView) Positional Representation (a part of type IvPositionalRepresentation) that identifies the representation to be used to represent the model in the view.
sheet part (From IvCommonViewMixin) Defines the drawing sheet onto which the Flat Patterns View is being placed. Defaults to 'Parent'.
viewName string (From IvCommonViewMixin) Name of the view to be displayed on the drawing below the Flat Pattern View. By default, this is the displayName of the part .
viewScale number (From IvCommonViewMixin) Scale of the Flat Pattern View as decimal number. Defaults to 1.0 (full scale).
displayTangentEdges boolean (From IvCommonViewMixin) Specifies whether to show tangent edges. If True , tangent edges are displayed. Default is False .
BreakAlignmentPosition Any (From IvCommonViewMixin). By default (when this Parameter is set to NoValue ), some view kinds may be aligned to the parent drawing view. Supplying the Point value to this Parameter, breaks View alignment, and repositions the View center into the Point
designViewRepresentation string (From IvCommonViewMixin) Name of a user-defined design view. This will specify the design view representation to be used to present the model in the view. Name must correspond to an existing design view. Default of "" represents the default design view of the model. If hiddenParts list is populated, and designViewAssociative is False , then this parameter has no effect.
designViewAssociative boolean (From IvCommonViewMixin) Specifies whether the view should be kept associative to its specified design view representation. If this is True , then no items are allowed in the 'hiddenParts' list . Defaults to False .
hiddenParts list (From IvCommonViewMixin) List of parts to suppress. Each part of the list should be of type IvAdoptedPart or IvCustomAssemblyDocument. May not be used if 'designViewAssociative' is set to True . Defaults to an empty list.
rotationAngle number (From IvCommonViewMixin) The Base View is rotated by the specified angle around an axis perpendicular to the drawing. Defaults to 0.
showViewLabel? boolean (From IvCommonViewMixin) If True , displays the view label on the sheet, overriding the setting in the standard style. Default is NoValue .
viewLabelPosition point (From IvCommonViewMixin) If specified, overrides the default view label position from Inventor. Specify a point on the sheet in sheet coordinates. The default is NoValue .
viewLabelFormattedText string (From IvCommonViewMixin) If specified, overrides the default view label string from Inventor (as defined in the view style); default is NoValue .
viewStyle name (From IvCommonViewMixin) Specifies the display style of the view. Valid values are: :hiddenLineRemoved, :hiddenLine, :shadedHiddenLine, and :shaded. The default value is :hiddenLineRemoved.
origin point (From BasePart) Defines the position of the view on the drawing sheet. The reference on the view is its center point . The origin of the sheet is its lower left corner.
ignorePosition? boolean (From IvCommonViewMixin) Ignores the Origin Rule , if True . Default value is False .

Rules

Name Type Description
height number (From IvCommonViewMixin) Can be used to retrieve the height of the view. This depends on the scale entered and the displayed objects. The value is returned in project units.
width number (From IvCommonViewMixin) Can be used to retrieve the width of the view. This depends on the scale entered and the displayed objects. The value is returned in project units.

Methods

viewToSheet( viewPt As Point ) As Point 
(From IvCommonViewMixin) Returns a point , in sheet space, representing a specified point in view space. Both points are 2-dimensional, so the 'z' component is ignored.
workpointLocation( workpointPart As Part, _
                   workpointName As String ) As Point 
(From IvCommonViewMixin) Returns a point , in view space, corresponding to a specified work point on the specified part (which must be represented in the view).

Example 1

This example demonstrates the creation of a Flat Pattern View named "FlatPattern" on the current sheet. The view scale, orientation, and style are specified. The view's origin is calculated based on the sheet's height and width.

Child Name : FlatPattern
Child Design : IvFlatPatternView
Name Type Supplied
model part Parent.Parent.RS_Regalwand
viewOrientation name :Default
viewScale number 0.2
viewStyle name :hiddenLineRemoved
origin any Point(0,0,0) + unitY * 0.7 *height + unitx *0.25 * width