DWGImportOptions
The import options used by importing DWG or DXF format file.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.BaseImportOptions
Autodesk.Revit.DB.DWGImportOptions
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class DWGImportOptions : BaseImportOptions
The DWGImportOptions type exposes the following members.
Constructors
Name
Description
Public Method
DWGImportOptions.
Constructs a new instance of DWGImportOptions with default values of all properties.
Public Method
DWGImportOptions(DWGImportOptions)
Constructs a new instance of DWGImportOptions as a copy of the import options.
Properties
Name
Description
Public Property
AutoCorrectAlmostVHLines
Correct almost-vertical lines and almost-horizontal lines for import model if option is set to true, the almost-vertical lines would be vertical lines and almost-horizontal lines would be horizontal lines.
(Inherited from BaseImportOptions)
Public Property
ColorMode
Color mode for the import. Three modes are supported. Black and White, Preserve Colors, and Invert Colors.
(Inherited from BaseImportOptions)
Public Property
CustomScale
Scaling the import. If this is defined and a valid value (> 0.0), it takes priority over units.
(Inherited from BaseImportOptions)
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from BaseImportOptions)
Public Property
OrientToView
Place the import at the same orientation as the view that was passed into the import method. This option can only be used when not importing into a single view.(i.e. ThisViewOnly is set to false)
(Inherited from BaseImportOptions)
Public Property
Placement
Where to place the import. Set this option to place the view at the origin or the center, or a shared coordinates.
(Inherited from BaseImportOptions)
Public Property
ReferencePoint
The 3D point in the document where the imported instance will be inserted. If not explicitly set, the instance will be inserted at the document origin.
(Inherited from BaseImportOptions)
Public Property
ThisViewOnly
Imports drawings into the view that was passed into the import method. This option is not available in 3D views.
(Inherited from BaseImportOptions)
Public Property
Unit
The unit of measure for imported geometry.
(Inherited from BaseImportOptions)
Public Property
VisibleLayersOnly
Only import the visible layers.
(Inherited from BaseImportOptions)
Methods
Name
Description
Public Method
Dispose
(Inherited from BaseImportOptions)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetDefaultLengthUnit
Get the default length unit used for importing unitless files.
(Inherited from BaseImportOptions)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetLayerSelection
Get all set layers name which user want to import into Revit.
(Inherited from BaseImportOptions)
Public Method
GetLineWeights
Gets array of line weights.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
SetDefaultLengthUnit
Set the default length unit used for importing unitless files.
(Inherited from BaseImportOptions)
Public Method
SetLayerSelection
Set the layers name which user want to import into Revit.
(Inherited from BaseImportOptions)
Public Method
SetLineWeights
Set array of line weights.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)