MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / unloadIfc

Function unloadIfc

src/ifctester/webapp/src/modules/api/api.svelte.ts:151–164  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

149}
150
151export async function unloadIfc(modelId: string) {
152 try {
153 // Unload model
154 await wasm.unloadIfc(modelId);
155
156 // Remove from models list
157 IFCModels.models = IFCModels.models.filter(model => model.id !== modelId);
158
159 console.log(`IFC model with ID ${modelId} unloaded`);
160 } catch (error) {
161 console.error('Failed to unload IFC model:', error);
162 throw error;
163 }
164}
165
166export async function auditIfc(modelId: string, idsData: string | Uint8Array | ArrayBuffer) {
167 try {

Callers

nothing calls this directly

Calls 3

unloadIfcMethod · 0.80
filterMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected