Reference·JavaScript · @bimworks/viewercommonJavaScript

RecipeExecutor

Class in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Class

TypeScript#
class RecipeExecutor

The RecipeExecutor can be used to visualize the results of BIM.works model checks in both the Viewer2d and Viewer3d. Anything the RecipeExecutor does, can also be done manually by using the methods provided by the ModelManager and ObjectStateManager.

Warning

Deprecated: Do not use for new development, this will be replaced by the new BIM.works Action Language

Members#

Member Kind Description
constructor Method Create a new RecipeExecutor
cleanupAux Method
executeResults Method
executeSingleResult Method
processSingleResult Method
reset Method

constructor#

TypeScript#
constructor(viewer2d: unknown, viewer3d: unknown, objectStateManager: ObjectStateManager)

Create a new RecipeExecutor

Parameters#

Name Type Description
viewer2d unknown An optional Viewer2d, which will be used in to visualize results that can be visualized in 2D
viewer3d unknown An optional Viewer2d, which will be used in to visualize results that can be visualized in 3D
objectStateManager ObjectStateManager An ObjectStateManager

cleanupAux#

TypeScript#
public cleanupAux(): void | Promise<void>

executeResults#

TypeScript#
public executeResults(versionUuid: string, results: unknown, type: unknown, lastResults: unknown): void | Promise<void>

Parameters#

Name Type Description
versionUuid string
results unknown
type unknown
lastResults unknown

executeSingleResult#

TypeScript#
public executeSingleResult(versionUuid: string, result: unknown, lastResults: unknown): void | Promise<void>

Parameters#

Name Type Description
versionUuid string
result unknown
lastResults unknown

processSingleResult#

TypeScript#
public processSingleResult(versionUuid: string, result: unknown, output: unknown, type: unknown, lastResults: unknown): void | Promise<void>

Parameters#

Name Type Description
versionUuid string
result unknown
output unknown
type unknown
lastResults unknown

reset#

TypeScript#
public reset(): void | Promise<void>