Bitbybit Docs
    Preparing search index...

    Class LoadDxfDto (Inputs.OCCT)

    A DXF file for io.loadDxf and io.loadDxfStructured, which build its lines, arcs, circles, ellipses, polylines and splines as exact edges joined into wires, and faces where asked.

    Index

    Constructors

    • Parameters

      • Optionaldxf: string | Blob | File
      • OptionalmakeFaces: boolean
      • OptionaljoinTolerance: number
      • OptionalincludeHiddenLayers: boolean
      • Optionalunit: unitOfLengthEnum

      Returns LoadDxfDto

    Properties

    dxf: string | Blob | File

    The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not in UTF-8 are read in the header's code page, or Windows-1252.

    undefined
    
    makeFaces?: boolean

    When true, closed outlines that lie flat in the drawing become faces, an outline inside another cutting a hole in it as an even-odd fill does; open outlines stay wires.

    false
    
    joinTolerance?: number

    How far apart, in file units, two entities' ends may lie and still join into one wire: at most 0.001 or a hundredth of the drawing's span, whichever is larger.

    0.001
    

    0

    Infinity

    0.001

    includeHiddenLayers?: boolean

    When true, entities on frozen and switched-off layers are read too.

    false
    

    The unit to give the shapes in, scaled from the unit the file states; a file stating none is read as drawn. Left out, the numbers stay as drawn.

    undefined
    

    true