Bitbybit Docs
    Preparing search index...

    Class SaveStepDto<T> (Inputs.OCCT)

    A shape, a file name and axis options for io.saveShapeSTEP, which writes the shape as a STEP file.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • OptionalfileName: string
      • OptionaladjustYtoZ: boolean
      • OptionaltryDownload: boolean
      • Optionalunit: unitOfLengthEnum

      Returns SaveStepDto<T>

    Properties

    shape: T

    The shape written to the file.

    undefined
    
    fileName?: string

    The name the downloaded file gets; .step is appended when missing.

    shape.step
    
    adjustYtoZ?: boolean

    When true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape. To keep it as built, turn it 90 degrees about X with transforms.rotate instead.

    false
    
    fromRightHanded?: boolean

    When true, the swap of adjustYtoZ becomes a turn of -90 degrees about X: the shape is not mirrored but stands upside down in a Z-up tool.

    false
    
    tryDownload?: boolean

    When true, a browser download of the file is started where that is possible; the kernel itself only returns the text.

    true
    

    The unit the shape's numbers are in. The file is written in millimetres, the shape scaled from this unit, so any CAD tool opens it at its true size.

    millimetre