# Script tools Interface

RoomlToolsCore interface

# Functions

# setContext

interface ContextInterface

  • isReady() : void
  • throw(what: string) : void
  • log(message : string) : void
  • error(line : number, column : number, message : string, source : string) : void

setContext(ioContext : ContextInerface)

Set the callback context for logging and exceptions. Analyzer errors and warnings are published through this interface.

# Enums

  • MessageType : Warning, Error

# Objects

# MessageObject

  • column?: number
  • errorCode: number
  • fileName: string
  • line?: number
  • lineInScript?: number
  • message: string
  • scriptPath?: string
  • type: string
  • typeId: number

# Classes

# class ToolsCoreInterface

class methods:

  • getVersion() : string Gets Core version number.

methods:

  • getConfiguratorKernel() : any

  • getVariantList() : any

  • init() : void

  • setConfiguratorKernel(kernelPtr: any) : void

  • analyzeComponent(componentDefinition: string, componentFilepath: string) : void Static analysis of a single Component definition. Analyze the Component and trace errors and warnings.

  • requestVariantList(componentId: string, onlyArticleNr: boolean) : void