Base View <IvBaseView>

Synopsis

Defines a Base View on a drawing sheet. The Base View defines the basis for all subsequent views. More than one Base View can be created on a sheet.

Mixins

IvBaseViewModifier

IvCommonViewMixin

Parameters

Name Type Description
model part (Required) Model to be displayed in the Base View. This refers to another part, representing either a part or an assembly, in the model.
viewOrientation name Specifies the alignment of the Base View, relative to the model. Valid values are: :Front, :Top, :Right, :Back, :Bottom, :Left, :IsoTopRight, :IsoTopLeft, :IsoBottomRight, :IsoBottomLeft. Alignment Front (front view) is the view of the XY-plane. :IsoTopRight is the default value.

If :Arbitrary is set, then the Camera* parameters below will further specify the view orientation

positionalRepresentation part 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 Base View is being placed. Defaults to 'Parent'.
viewName string (From IvCommonViewMixin) Name of the view to be displayed on the drawing below the Base View. By default, this is the displayName of the part.
viewScale number (From IvCommonViewMixin) Scale of the Base 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.
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.
cameraPart Part Specifies the Part (IvAssemblydocument), whose camera will be used. Default is Model
cameraViewOrientation Name (From IvCameraMixin). The possible values are:
  • :Front - Front View orientation;
  • :Top - Top view orientation;
  • :Right - Right View orientation;
  • :Back - Back View orientation;
  • :Left - Left View orientation;
  • :IsoTopRight, :IsoTopLeft, :IsoBottomRight, :IsoBottomLeft - various ISO View orienations;
  • :Arbitrary - view orientation is not changed.

Default is :Arbitrary

cameraPerspective? boolean (From IvCameraMixin). Allows Perspective of Parallel view projection. Default is False (parallel projection)
cameraPerspectiveAngle number (From IvCameraMixin). In case of perspective projection, specifies the projection angle. Default is 0.0 degrees
cameraEye point (From IvCameraMixin). Specifies the position of the camera in the coordinate system of the document. Default is NoValue (use the current camera position)
cameraTarget point (From IvCameraMixin). Specifies the point in the coordinate system of the document the center of the camera is looking at. Default is NoValue (use the current camera target point)
cameraUpVector vector (From IvCameraMixin). Defines the camera rotation around it Z axis, which is aligned with the line defined by cameraEye/cameraTarget points. Default is NoValue (use the current camera rotation)

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 Base View named "FrontView" 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: FrontView
Child Design: IvBaseView
Name Type Supplied
model part Parent.Parent.RS_Regalwand
viewOrientation name :Bottom
viewScale number 0.2
viewStyle name :hiddenLineRemoved
origin any Point(0,0,0) + unitY * 0.7 *height + unitx *0.25 * width