FileDwgWriteOptions

References
public class FileDwgWriteOptions
Options for writing a DWG file

Constructors

FileDwgWriteOptions

#Since v8.0
public FileDwgWriteOptions()
AutoCAD version format to write to

FileDwgWriteOptions

#Since v9.0
public FileDwgWriteOptions(FileDwgWriteOptions opt)
opt (FileDwgWriteOptions)

Properties

ColorMethod

#Since v8.0
public FileDwgWriteOptions.ColorMethodType ColorMethod { get; set; }
pallette index: clrACI, RGB: clrRGB

CurveChordHeight

#Since v8.0
public double CurveChordHeight { get; set; }
Absolute distance from pline to nurb

CurveMaxAngleDegrees

#Since v8.0
public double CurveMaxAngleDegrees { get; set; }
Angle between pline segments in writing curve

CurveMaxAngleRadians

#Since v8.0
public double CurveMaxAngleRadians { get; set; }
Angle between pline segments in writing curve

CurveSegmentLength

#Since v8.0
public double CurveSegmentLength { get; set; }
Max length for any polyline segment

CurveUseChordHeight

#Since v8.0
public bool CurveUseChordHeight { get; set; }

CurveUseMaxAngle

#Since v8.0
public bool CurveUseMaxAngle { get; set; }

CurveUseSegmentLength

#Since v8.0
public bool CurveUseSegmentLength { get; set; }

ExportArcsAs

#Since v8.0
public FileDwgWriteOptions.ExportArcMode ExportArcsAs { get; set; }

ExportLinesAs

#Since v8.0
public FileDwgWriteOptions.ExportLineMode ExportLinesAs { get; set; }

ExportMeshesAs

#Since v8.0
public FileDwgWriteOptions.ExportMeshMode ExportMeshesAs { get; set; }
Rhino meshes as polyface meshes or 3dfaces

ExportPolycurvesAs

#Since v8.0
public FileDwgWriteOptions.ExportPolycurveMode ExportPolycurvesAs { get; set; }

ExportPolylinesAs

#Since v8.0
public FileDwgWriteOptions.ExportPolylineMode ExportPolylinesAs { get; set; }

ExportSplinesAs

#Since v8.0
public FileDwgWriteOptions.ExportSplineMode ExportSplinesAs { get; set; }

ExportSurfacesAs

#Since v8.0
public FileDwgWriteOptions.ExportSurfaceMode ExportSurfacesAs { get; set; }
Rhino surcaces as meshes(0) or curves(1) or acis(2)

Flatten

#Since v8.0
public FileDwgWriteOptions.FlattenMode Flatten { get; set; }
Project to cplane or view

FullLayerPath

#Since v8.0
public bool FullLayerPath { get; set; }
write layernames as Parent$Child or Child

IsDefault

#Since v8.0
public bool IsDefault { get; set; }

MinPointDistance

#Since v8.0
public double MinPointDistance { get; set; }

Name

#Since v9.0
public string Name { get; set; }

NoDxfHeader

#Since v8.0
public bool NoDxfHeader { get; set; }
write an entities only dxf file ( R12 only)

PreserveArcNormals

#Since v8.0
public bool PreserveArcNormals { get; set; }
Users wanted to use Pedit in AutoCAD to join them into plines and that didn't work if the normals of arcs being joined are different. Default will be true and will change the behavior

Simplify

#Since v8.0
public bool Simplify { get; set; }
use lines and arcs where possible

SimplifyTolerance

#Since v8.0
public double SimplifyTolerance { get; set; }

SplitPolycurves

#Since v8.0
public bool SplitPolycurves { get; set; }
Explode polycurves before exporting

SplitSplines

#Since v8.0
public bool SplitSplines { get; set; }
Split splines at FMKs before exporting

UseColor

#Since v9.0
public FileDwgWriteOptions.UseColorType UseColor { get; set; }
Set AutoCAD display color with Rhino print or display color

UseLWPolylines

#Since v8.0
public bool UseLWPolylines { get; set; }

Version

#Since v8.0
public FileDwgWriteOptions.AutocadVersion Version { get; set; }
Version of DWG file to write
Remarks: Updated default acad version to 2018 in Rhino V9

WriteThickCurves

#Since v9.0
public bool WriteThickCurves { get; set; }
Write extrusions with simple profile curves as thick curves.

Methods

AddToDictionary

#Since v9.0
public void AddToDictionary(ArchivableDictionary dict)
Add these options to a dictionary, used by UIless dotnet export.
dict (ArchivableDictionary)

SetNamedParameters

#Since v9.0
public void SetNamedParameters(NamedParametersEventArgs args)
Add these options to a NamedParametersEventArgs, used in the dotnet version of the acad export UI.
args (NamedParametersEventArgs)

ToDictionary

#Since v8.0
public ArchivableDictionary ToDictionary()
Create a dictionary of these options. This dictionary can be passed to the RhinoDoc.Export function