Bitbybit Docs
    Preparing search index...

    Class SvgToDxfDto (Inputs.IO)

    An SVG file for io.drawing.svgToDxf, which reads it as io.svg.svgRead does and writes it as io.dxf.dxfCreate does, with the options of both.

    Index

    Constructors

    • Parameters

      • Optionalsvg: string
      • Optionalunit: unitOfLengthEnum
      • OptionalincludeInvisible: boolean
      • OptionalcolorFormat: "aci" | "truecolor"
      • OptionalacadVersion: "AC1009" | "AC1015"
      • OptionalcurveTolerance: number

      Returns SvgToDxfDto

    Properties

    svg: string

    The whole text of an SVG file.

    undefined
    

    The unit to read the drawing in at true size, also stated in the DXF (AC1015 only). Left out, user units are written and no unit is stated.

    undefined
    

    true

    includeInvisible?: boolean

    When true, elements hidden by display or visibility are written as well.

    false
    
    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
    
    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