DrawingView Object


Description

The DrawingView object represents a drawing view on a sheet. It allows access to information about drawing views. See the article in the overviews section.

Methods

Name Description
Align Method that aligns this view with the input drawing view. The method returns a failure if the view is already aligned. Use the Aligned property to check for this condition and to break existing alignment.
AlignAuxiliary Method that re-aligns an auxiliary view. The method fails if the view is not an auxiliary view.
CopyTo Method that copies this drawing view into the specified sheet. The new object is returned.
CreateOriginIndicator Method that creates the origin indicator for ordinate dimensions and hole tables. The specified input GeometryIntent object must be associated with this drawing view, otherwise this method will fail.
Delete Method that deletes the DrawingView.
DrawingViewToModelSpace Method that takes a 2d coordinate in drawing view space, and returns a Line in model space. Since this method transforms from 2D space to 3D space, there is insufficient information to obtain a 3D model point. Hence, this method returns a Line in the view direction on which the point lies. You may then use the FindUsingRay method to find the point(s) of interest.
DrawingViewToSheetSpace Method that takes a 2d coordinate in drawing view space, and returns a Point2d containing the coordinates of the point in sheet space.
GetAutomatedCenterlineSettings Method that returns the settings that define how automatic center lines and center marks are to be calculated for this view.
GetHiddenLinesStatus Method that gets the hidden lines status of a component in the drawing view.
GetIncludeStatus Method that gets the include status of the input object in the drawing view.
GetReferenceKey Method that generates and returns the reference key for this entity.
GetVisibility Method that gets the visibility of the input object in the drawing view.
GetWeldmentState Method that gets the weldment option for the drawing view. The method returns a failure if the referenced model does not contain weldments.
InsertInModelSpace Inserts the view geometry into model space only if the drawing lives in an Inventor DWG file.
ModelToDrawingViewSpace Method that takes a 3d coordinate in model space, and returns a Point2d object containing the coordinate point in drawing view space.
ModelToSheetSpace Method that takes a 3d coordinate in model space, and returns a Point2d object containing the coordinate point in sheet space.
MoveTo Method that moves this drawing view into the specified sheet. The moved object is returned.
RotateByAngle Method that rotates the drawing view by the specified angle.
SetActiveModelState Method that sets the active model state for a drawing view. In this method users can also decide to update the PartsList objects which use the same model state as the drawing view. This method fails for drawing views where the model is unresolved.
SetAutomatedCenterlineSettings Method that sets the automatic centerline and center mark settings for this view and creates the centerlines and center marks defined by the settings. The centerlines and center marks that were created are returned.
SetDesignViewRepresentation Method that sets a design view representation for a drawing view of an assembly. This method fails for drawing views of parts and presentations and in the case where the model (assembly) is unresolved.
SetHiddenLinesStatus Method that sets the hidden lines status of a component in the drawing view.
SetIncludeStatus Method that sets the include status of the input object in the drawing view. This method automatically makes the object visible as well. After an object has been included, its visibility can be controlled using the GetVisibility and SetVisibility methods.
SetVisibility Method that sets the visibility of the input object in the drawing view.
SetWeldmentState Method that sets the weldment option for the drawing view. The method returns a failure if the referenced model does not contain weldments.
SheetToDrawingViewSpace Method that takes a 2d coordinate in sheet space, and returns a Point2d object containing the coordinate point in drawing view space.
SheetToModelSpace Method that takes a 2d coordinate in sheet space, and returns a Line in model space. Since this method transforms from 2D space to 3D space, there is insufficient information to obtain a 3D model point. Hence, this method returns a Line in the view direction on which the point lies. You may then use the FindUsingRay method to find the point(s) of interest.
ShowHiddenAnnotations Method that displays all the annotations hidden by the user.
ShowHiddenCurves Method that displays all the curves explicitly hidden by the user.

Properties

Name Description
ActiveMemberName
ActiveModelState
ActivePositionalRepresentation
ActivePresentationView Property that returns the name of the active Presentation (Exploded) View for a drawing view of a presentation.
Aligned
AttributeSets Property that returns the AttributeSets collection object associated with this object.
AuxiliaryOrientationEdge Property that returns drawing curve that the auxiliary view is aligned to. This property returns Nothing if this is not an auxiliary view or if the orientation edge (drawing curve) has been removed from the parent view during a subsequent update.
BitmapAvailable Property that returns if this view's graphics are also available as a bitmap as well. If a bitmap exists it can be retrieved using the DataIO object. This is only applicable within Apprentice.
BreakOperations Property that returns the BreakOperations object containing information about all the break operations applied to this view as well as methods to add breaks. Both local as well as inherited break operations are returned in the collection.
BreakOutOperations Property that returns the BreakOutOperations object containing information about all the break out operations applied to this view as well as methods to add break outs. Only local break out operations are returned.
Camera Property that returns a Camera object that defines the orientation of the model within the view.
Center
ClientGraphicsCollection Property that returns the ClientGraphicsCollection object.
DataIO Property that returns the associated DataIO object. This can be used in Apprentice to obtain an associated bitmap, if it exists.
DesignViewAssociative
DesignViewRepresentation
DisplayBendExtents
DisplayDefinitionInBase
DisplayForeshortenedTangentEdges
DisplayHatching
DisplayInterferenceEdges
DisplayTangentEdges
DisplayThreadFeatures
DisplayTrails
DrawingCurves Property that returns all the drawing curves within the drawing view optionally filtered to the input model object. This property returns Nothing for draft views.iew object represents a drawing view on a sheet.
DrawingViewEvents Property that returns the object, which provides event notifcation. For example, view updates.
DrawingViewToModelTransform Property that returns the transformation from drawing view coordinate space to the model space.
DrawingViewToSheetTransform Property that returns the transformation from drawing view coordinate space to the sheet space.
GeneralDimensionType
GraphicsDataSetsCollection Property that returns the object for the drawing view.
HasOriginIndicator Property that specifies whether the origin indicator for ordinate dimensions and hole tables has been created.
HatchRegions
Height Property that specifies the height of the drawing view. The view height cannot be set but is defined by the contents of the view
Include3DAnnotations
IncludeMeshBodies
IncludeSurfaceBodies
InheritBreak
InheritBreakOut
InheritSection
InheritSlice
IsFlatPatternView Gets whether the drawing view is of a sheet metal flat pattern.
IsRasterView
IsUpdateComplete Indicates if the view has finished updating.
Label Property that returns the DrawingViewLabel object.
Left Property that returns the position of the left edge of the drawing view.
ModelToDrawingViewTransform Property that returns the transformation from model space to the drawing view coordinate space.
ModelToSheetTransform Property that returns the transformation from model space to the sheet coordinate space.
Name
OriginIndicator Property that gets the origin indicator for ordinate dimensions and hole tables.
Parent Property returning the parent Sheet object.
ParentView Property that returns the parent . This property returns Nothing in the case where no parent view exists.
Position
PresentationViewAssociative
ReferencedDocumentDescriptor Property that returns the model document referenced by this view.
Rotation
Scale
ScaleFromBase
ScaleString
SheetToDrawingViewTransform Property that returns the transformation from sheet space to the drawing view coordinate space.
SheetToModelTransform Property that returns the transformation from sheet coordinate space to the model space.
ShowLabel
Sketches Property that returns the DrawingSketches collection object for the sheet. This object provides access to all of the sketches that have been created on the sheet and provides functionality to create new sketches.
StandardPartsSectionBehavior
Suppressed
Top Property that specifies the position of the top edge of the drawing view.
Type Returns an ObjectTypeEnum indicating this object's type.
UpToDate Property that returns whether the drawing view is up to date with respect to the model.
ViewJustification
ViewOrientationFromBase
ViewStyle
ViewType Property returning an DrawingViewTypeEnum constant indicating the type of view.
Width Property that specifies the width of the drawing view. The view width cannot be set but is defined by the contents of the view.

Accessed From

Balloon.ParentView, BreakOperation.Parent, BreakOutOperation.Parent, DetailDrawingView.CopyTo, DetailDrawingView.MoveTo, DetailDrawingView.ParentView, DrawingCurve.Parent, DrawingDocument.ProcessViewSelection, DrawingView.CopyTo, DrawingView.MoveTo, DrawingView.ParentView, DrawingViewEvents.Parent, DrawingViewHatchRegion.Parent, DrawingViewLabel.Parent, DrawingViews.AddAssociativeDraftView, DrawingViews.AddAuxiliaryView, DrawingViews.AddBaseView, DrawingViews.AddDraftView, DrawingViews.AddOverlayView, DrawingViews.AddProjectedView, DrawingViews.Item, HoleTable.ParentView, SectionDrawingView.CopyTo, SectionDrawingView.MoveTo, SectionDrawingView.ParentView

Derived Classes

DetailDrawingView, SectionDrawingView

Samples

Name Description
Creation a balloon This sample demonstrates the creation of a balloon.
Baseline dimension sets This sample demonstrates the creation of a baseline set dimension in a drawing.
Creation of a break operation in a drawing view Demonstrates the creation of a break operation.
Chain dimensions sets This sample demonstrates the creation of a chain dimension set in a drawing.
Creating hole tables This sample demonstrates the creation of hole tables in a drawing.
Creating a parts list This sample demonstrates the creation of a parts list. The parts list is placed at the top right corner of the border if one exists, else it is placed at the top right corner of the sheet.

Version

Introduced in version 4