Message 1 of 4
Export single drawingview to autocad dwg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am looking for a way to export a single drawingview to a AutoCad dwg. I can make a work around where I Copy the view to a new drawing or sheet and export this. But maybe there is a cleaner solution?
DrawingView Object
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. |
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. |
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. |
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 |
ActiveDesignViewRepresentation | Property that returns the name of the active Design View Representation for a drawing view of an assembly. This property returns a null string for drawing views of parts and presentations and in the case where the model (assembly) is unresolved. |
ActiveLevelOfDetailRepresentation | Property that returns the name of the active Level of Detail Representation for a drawing view of an assembly. This property returns a null string for drawing views of parts and presentations and in the case where the model (assembly) is unresolved. |
ActiveMemberName | Property that gets and sets the name of the active member for a drawing view of an iPart or an iAssembly. |
ActivePositionalRepresentation | Property that gets and sets the name of the active Positional Representation for a drawing view of an assembly. This property returns a null string and cannot be set for drawing views of parts and presentations and in the case where the model (assembly) is unresolved. |
ActivePresentationView | Property that returns the name of the active Presentation (Exploded) View for a drawing view of a presentation. |
Aligned | Property that gets and sets whether the view is aligned with another view. This property can only be set to False in order to break the alignment. To align the view, use the Align method. |
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. |
DataIO | Property that returns the associated DataIO object. This can be used in Apprentice to obtain an associated bitmap, if it exists. |
DisplayBendExtents | Property that gets and sets whether to display sheet metal bend extents on the drawing view. |
DisplayDefinitionInBase | Property that gets and sets whether to display detail circles, section lines and the associated text in the base view. The property returns False and cannot be set where not applicable. |
DisplayForeshortenedTangentEdges | Property that gets and sets whether to display shortened tangent edges in order to distinguish them from visible edges. Setting this property to True automatically toggles the DisplayTangentEdges property to True. |
DisplayHatching | Property that gets and sets whether to display hatches for section and slice views. |
DisplayInterferenceEdges | Property that 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 | Property that gets and sets whether to display the tangent edges on the drawing view. Setting this property to False automatically toggles the DisplayForeshortenedTangentEdges property to False. |
DisplayThreadFeatures | Property that gets and sets whether to display thread features on the drawing view. |
DisplayTrails | Property that gets and sets whether to display trails. The property returns False and setting it fails if the drawing view does not reference a presentation document. |
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 | 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. |
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 |
InheritBreak | Property that gets and sets whether the view should inherit the corresponding break from the parent view. Setting this property is only possible for certain views. Orthographic projected views inherit breaks by default, which can be turned off. |
InheritBreakOut | Property that gets and sets whether the view should inherit the corresponding break out from the parent view. Setting this property is only possible for certain views. Isometric projected views created for views with a break out inherit the break out by default. Orthographic projected and auxiliary views do not support inheritance of break out operations. |
InheritSection | Property that gets and sets whether the view should inherit the corresponding section cut from the parent view. Setting this property is only possible for certain views. Isometric projected views created for section views inherit the section cut by default. Orthographic projected and auxiliary views support the inheritance of the section, but it is switched off by default. |
InheritSlice | Property that gets and sets whether the view should inherit the corresponding slice cut from the parent view. Setting this property is only possible for certain views. |
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. |
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 | Property that gets and sets the name of the DrawingView. This is the editable portion of the name that is displayed within the browser. Inventor appends some additional information to the displayed name. When setting the name, the name must be unique with respect to all other DrawingView objects in the sheet, or an error will occur. |
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 | Property that gets and sets whether to associate the drawing view to the referenced presentation view. The property always returns False for drawing views of parts and assemblies and setting the property returns an error in this case. Use the ActivePresentationView property to get the referenced presentation view. |
ReferencedDocumentDescriptor | Property that returns the model document referenced by this view. |
Rotation | 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 | Property that gets and sets the model to paper space scale of the view. Setting this property will fail if the ScaleFromBase property returns True. |
ScaleFromBase | Property that gets and sets whether the scale of the view derives from the parent view or not. This property fails for base drawing views. |
ScaleString | Property that gets and sets the scale in string format. For instance, '2', '5:1' and '1 / 2' are valid values. The Scale property returns the value of this scale as a double value. Setting this property will fail if the ScaleFromBase property returns True. |
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 | Property that 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 | Property that gets and sets the sectioning behavior for standard parts in drawing views of assemblies. |
Suppressed | Property that gets and sets whether the drawing view is suppressed (invisible). |
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 | Property that gets and sets the view justification. Valid values are kCenteredViewJustification and kFixedViewJustification. |
ViewOrientationFromBase | Gets and sets whether the view should inherit the orientation from the base view. |
ViewStyle | Property that gets and sets the drawing view style. Valid values are kHiddenLineDrawingViewStyle, kHiddenLineRemovedDrawingViewStyle, kShadedDrawingViewStyle, kShadedHiddenLineDrawingViewStyle and kFromBaseDrawingViewStyle. |
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. |
Greetings
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2