Bitbybit Docs
    Preparing search index...

    Class DxfModelDto (Inputs.IO)

    A whole DXF drawing for io.dxf.dxfCreate: its path parts by layer and color, and the color format, the version and the unit to write. In inches it is marked imperial, so hatch scales count from inch patterns.

    Index

    Constructors

    • Parameters

      • OptionaldxfPathsParts: DrawingPartDto[]
      • OptionalcolorFormat: "aci" | "truecolor"
      • OptionalacadVersion: "AC1009" | "AC1015"
      • Optionalunit: unitOfLengthEnum
      • OptionalcurveTolerance: number
      • OptionallineTypeScale: number

      Returns DxfModelDto

    Properties

    dxfPathsParts: DrawingPartDto[]

    Array of path parts, each containing paths with segments

    undefined
    
    colorFormat?: "aci" | "truecolor"

    How colors are written: aci, the nearest of AutoCAD's 255 index colors, or truecolor, the exact color beside that index (AC1015 only; AC1009 writes the index).

    aci
    
    acadVersion?: "AC1009" | "AC1015"

    The DXF version: AC1015 (AutoCAD 2000), which keeps splines and ellipses exact, or AC1009 (AutoCAD R12) for old software, where they become polylines within curveTolerance.

    AC1015
    

    The unit the drawing is in, written into its header so CAD programs open it at true size; AC1015 only. Left out, no unit is stated.

    undefined
    

    true

    curveTolerance?: number

    The largest distance, in drawing units, between a curve and the polyline that stands in for it where the version cannot hold the curve exactly.

    0.01
    

    0

    true

    lineTypeScale?: number

    The length of one unit of a dash pattern, in drawing units: hidden is 2 units of dash and 1 of gap. Left out, a two-hundredth of the drawing's size.

    undefined
    

    true

    0

    true