Share

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.
GetComponentLineColor Method that gets color of a component in drawing 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. This returns error if the input object has partial visibility status.
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.
SetComponentLineColor Method that sets color for a component in the drawing view.
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 Gets and sets the name of the active member for a drawing view of an iPart or an iAssembly.
ActiveModelState Read-only property that gets the name of the active model state for a drawing view. This property returns a null string for drawing views of presentations and in the case where the model is unresolved.
ActivePositionalRepresentation Gets and sets the name of the active Positional Representation for a drawing view of an assembly.
ActivePresentationView Property that returns the name of the active Presentation (Exploded) View for a drawing view of a presentation.
Aligned Gets and sets whether the view is aligned with another view.
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 Gets and sets the display center point of the drawing view on the owning sheet.
ClientGraphicsCollection Property that returns the ClientGraphicsCollection object.
CropOperations Read-only property that returns the CropOperations object containing information about all the crop operations applied to this view as well as methods to add crops.
DataIO Property that returns the associated DataIO object. This can be used in Apprentice to obtain an associated bitmap, if it exists.
DesignViewAssociative Read-only property that gets whether the DesignViewRepresentation for a drawing view of a model is associative or not.
DesignViewRepresentation Read-only property that returns the name of the Design View Representation for a drawing view of a model.
DisplayBendExtents Gets and sets whether to display sheet metal bend extents on the drawing view.
DisplayDefinitionInBase Gets and sets whether to display detail circles, section lines and the associated text in the base view.
DisplayForeshortenedTangentEdges Gets and sets whether to display shortened tangent edges in order to distinguish them from visible edges.
DisplayHatching Gets and sets whether to display hatches for section and slice views.
DisplayInterferenceEdges Gets and sets whether to display both hidden edges that are excluded due to an interference condition (press, or interference fit conditions, threaded fasteners in tapped holes where the hole feature is modeled with the minor diameter).
DisplayTangentEdges Read-write property that gets and sets whether to display the tangent edges on the drawing view.
DisplayThreadFeatures Gets and sets whether to display thread features on the drawing view.
DisplayTrails Gets and sets whether to display trails.
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 Read-write property that indicates the type of dimension.
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 Read-only property that returns the DrawingViewHatchRegions collection object.
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
HiddenLineCalculationForAllBodies Read-write property that gets and sets whether the hidden line are calculated for all bodies or reference data separately.
Include3DAnnotations Read-write property that gets and sets whether to include the 3D annotations.
IncludeMeshBodies Read-write property that gets and sets whether to include the mesh bodies.
IncludeSurfaceBodies Read-write property that gets and sets whether to include the work surfaces.
InheritBreak Gets and sets whether the view should inherit the corresponding break from the parent view.
InheritBreakOut Gets and sets whether the view should inherit the corresponding break out from the parent view.
InheritSection Gets and sets whether the view should inherit the corresponding section cut from the parent view.
InheritSlice Gets and sets whether the view should inherit the corresponding slice cut from the parent view.
IsFlatPatternView Gets whether the drawing view is of a sheet metal flat pattern.
IsRasterView Read-write property that gets and sets whether the drawing view is raster view or not.
IsTextPropertySource Read-write property that gets and sets whether the drawing view is specified as the text property source.This is applicable only when the drawing view is a base view.
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.
Margin Read-write property that gets and sets the amount of area outside the normal view boundary that the view boundary extends.
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 Gets or sets the name of this View.
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 Gets and sets the point used to position the drawing view on the sheet.
PresentationViewAssociative Gets and sets whether to associate the drawing view to the referenced presentation view.
ReferenceDataDisplayStyle Read-write property that gets and sets the reference data display style.
ReferencedDocumentDescriptor Property that returns the model document referenced by this view.
RevisionClouds Returns the collection of revision clouds on this drawing view.
Rotation Read-write property that gets and sets the absolute rotation angle of the drawing view in radians. The value can either be positive (counter-clockwise rotation) or negative (clockwise rotation).
Scale Gets or sets the Model-to-PaperSpace scale of this particular Drawing View.
ScaleFromBase Gets and sets whether the scale of the view derives from the parent view or not.
ScaleString Gets or sets the Model-to-PaperSpace scale in string format of this particular Drawing View.
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 Gets and sets whether to show the label of the drawing view on the sheet.
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 Gets and sets the sectioning behavior for standard parts in drawing views of assemblies.
Suppressed Gets and sets whether this drawing view is suppressed or not.
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 Gets and sets the view justification.
ViewOrientationFromBase Gets and sets whether the view should inherit the orientation from the base view.
ViewStyle Gets and sets the drawing view style.
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, CropOperation.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.AddOverlayView2, 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.
CropOperation creation sample This sample demonstrates how to create a crop operation for a drawing view bases on a sketch under the drawing view.
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

Was this information helpful?