Acording last the last code of web-ifc-three.js when it request GetNameFromTypeCode from IFC/web-workers/workers/WebIfcWorker.ts module, it passes data.args.modelID parameter as is shown in the following code,
The resulting value of data.args.modelID is undefined because acording last web-ifc implementation now the parameter passed is data.args.type. So the GetNameFromTypeCode body should be modified as it follows,
export class WebIfcWorker implements WebIfcWorkerAPI {
...
GetNameFromTypeCode(data: IfcEventData) {
data.result=this.webIFC.GetNameFromTypeCode(data.args.type); // data.args.type --> ok
this.worker.post(data);
}
...
}
Hi,
Acording last the last code of
web-ifc-three.js
when it requestGetNameFromTypeCode
fromIFC/web-workers/workers/WebIfcWorker.ts
module, it passesdata.args.modelID
parameter as is shown in the following code,The resulting value of
data.args.modelID
is undefined because acording lastweb-ifc
implementation now the parameter passed isdata.args.type
. So theGetNameFromTypeCode
body should be modified as it follows,