Bitbybit Docs
    Preparing search index...

    Class GeometryToStepDto<T>Beta (Inputs.IFC)

    A model, the elements to write, and the file options for geometry.toStep, which writes the model's elements as a STEP file of OpenCascade shapes.

    Type Parameters

    • T
    Index

    Constructors

    • Beta

      Type Parameters

      • T

      Parameters

      • Optionalmodel: T
      • Optionalelements: string[]
      • Optionalname: string
      • OptionalfileName: string
      • OptionalemptyWhenFailed: boolean
      • OptionalfacetedMeshes: boolean
      • OptionalmaxTriangles: number
      • Optionalcompress: boolean
      • OptionaltryDownload: boolean
      • OptionalgroupByClass: boolean

      Returns GeometryToStepDto<T>

    Properties

    model: T

    The model whose elements are written.

    undefined
    
    elements?: string[]

    The elements to write, each by GlobalId or by the id it was added with. Leave it out for every element with a body.

    undefined
    

    true

    name?: string

    The name of the assembly at the top of the file, which holds every element.

    Model
    
    fileName?: string

    The file name, used for the download and written into the file's header.

    model.step
    
    emptyWhenFailed?: boolean

    When true, an element that cannot be built is left out of the file and the others are written; when false, it stops the export.

    true
    
    facetedMeshes?: boolean

    When true, elements stored as triangle meshes are written as faceted solids; when false they are written as tessellated geometry, which is faster and smaller.

    false
    
    maxTriangles?: number

    The most triangles a mesh built as a faceted solid may hold; a larger one is not built and counts as an element that failed.

    100000
    

    0

    Infinity

    10000

    compress?: boolean

    When true, the file is written as gzip-compressed STEP-Z.

    false
    
    tryDownload?: boolean

    When true, a browser download of the file is started where that is possible; the bytes are returned either way.

    false
    
    groupByClass?: boolean

    When true, each storey's elements are gathered in assemblies by IFC class, such as Walls and Slabs; when false they lie in the storey's assembly directly.

    true