DWGExportOptions Class

The export options used by exporting DWG format file.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBBaseExportOptions
    Autodesk.Revit.DBACADExportOptions
      Autodesk.Revit.DBDWGExportOptions

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class DWGExportOptions : ACADExportOptions

The DWGExportOptions type exposes the following members.

Constructors
 NameDescription
Public methodDWGExportOptions Constructs a new instance of DWGExportOptions with default values of all properties.
Public methodDWGExportOptions(DWGExportOptions) Constructs a new instance of DWGExportOptions as a copy of the export options.
Top
Properties
 NameDescription
Public propertyACAPreference The preferred way to generate geometry of ACA objects. Default value is ACAObjectPreference.Object.
(Inherited from ACADExportOptions)
Public propertyColors Export color mode. Default value is ExportColorMode.IndexColors.
(Inherited from BaseExportOptions)
Public propertyExportingAreas True to export area and room geometry, false otherwise. Default value is false.
(Inherited from ACADExportOptions)
Public propertyExportOfSolids The mode used to export solids in 3D views. Default value is SolidGeometry.Polymesh.
(Inherited from ACADExportOptions)
Public propertyFileVersion ACADVersion::Default Default value is ACADVersion.Default.
(Inherited from ACADExportOptions)
Public propertyHatchBackgroundColor The color that will be set as hatch backgound color on the exported hatch. This color will be used only if useHatchBackgroundColor is true. default value is white
(Inherited from ACADExportOptions)
Public propertyHatchPatternsFileName Custom hatch patterns (pat) file name.
(Inherited from BaseExportOptions)
Public propertyHideReferencePlane Whether or not to hide reference planes. Default value is false.
(Inherited from BaseExportOptions)
Public propertyHideScopeBox Whether or not to hide the scope box. Default value is false.
(Inherited from BaseExportOptions)
Public propertyHideUnreferenceViewTags Whether or not to hide unreference view tags. Default value is false.
(Inherited from BaseExportOptions)
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from BaseExportOptions)
Public propertyLayerMapping Name of a layer settings standard or filename (with custom layer settings). Valid standards are: DGNV7 (only for DGN), AIA, CP83, BS1192, and ISO13567. default value is "" (empty) which means if no value is set, if no value is set, Revit will use a default value according to the localization.
(Inherited from BaseExportOptions)
Public propertyLineScaling The scaling mode for the line type. Default value is LineScaling.ViewScale.
(Inherited from ACADExportOptions)
Public propertyLinetypesFileName The custom linetype file name (*.lin). Default value is empty.
(Inherited from ACADExportOptions)
Public propertyMarkNonplotLayers If true and the nonplot layer suffix is not empty, all layers whose names contain that suffix will be marked as non-plot.
(Inherited from ACADExportOptions)
Public propertyMergedViews Whether to merge all views in one file (via XRefs). Default value is false for mergedViews.
Public propertyNonplotSuffix If the MarkNonplotLayers attribute is set to true, all layers with names containing this suffix will be marked as non-plot. No action will be performed if the suffix is empty.
(Inherited from ACADExportOptions)
Public propertyPreserveCoincidentLines Whether or not to preserve coincident lines. Default value is false.
(Inherited from BaseExportOptions)
Public propertyPropOverrides How to export overridden object styles. Default value is PropOverrideMode.ByEntity.
(Inherited from BaseExportOptions)
Public propertySharedCoords True to use the shared coordinate system's origin, false to use the project origin. Default value is false.
(Inherited from ACADExportOptions)
Public propertyTargetUnit The target unit type. Default value is ExportUnit.Default.
(Inherited from ACADExportOptions)
Public propertyTextTreatment The text treatment. Deault value is TextTreatment.Exact.
(Inherited from ACADExportOptions)
Public propertyUseHatchBackgroundColor Indicates if hatch background color will be used or not. default value is false.
(Inherited from ACADExportOptions)
Top
Methods
 NameDescription
Public methodDispose
(Inherited from BaseExportOptions)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetExportFontTable Gets font table.
(Inherited from BaseExportOptions)
Public methodGetExportLayerTable Gets the layer table.
(Inherited from BaseExportOptions)
Public methodGetExportLinetypeTable Gets a copy of the line type table.
(Inherited from BaseExportOptions)
Public methodGetExportPatternTable Gets a copy of the pattern table.
(Inherited from BaseExportOptions)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetPredefinedOptions Returns an instance DWGExportOptions containing settings from a predefined export setup.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodSetExportFontTable Sets font table to option.
(Inherited from BaseExportOptions)
Public methodSetExportLayerTable Sets layer table back to option
(Inherited from BaseExportOptions)
Public methodSetExportLinetypeTable Sets the line type table to use during export.
(Inherited from BaseExportOptions)
Public methodSetExportPatternTable Sets the pattern table to use during export.
(Inherited from BaseExportOptions)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also