new GoIFCServices()
GoIFCServices is a class responsible for handling IFC (Industry Foundation Classes) data operations.
It includes methods to retrieve and store IFC data through API calls.
The class uses GoAxiosServices for making HTTP requests and GoStore for accessing application state.
Methods
-
async,staticGoIFCServices.createAutomaticLink(props){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 497 -
Creates an automatic IFC link based on element properties.
Name Type Description propsAutomaticLinkProps The properties for creating the automatic IFC link.
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response of the link creation.
-
async,staticGoIFCServices.createDMDLink(props){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 140 -
Creates a DMD link.
Name Type Description propsObject The properties for creating the DMD link.
Name Type Description appIdstring The ID of the application.
groupstring The group identifier.
viewstring The view identifier.
expressIDnumber The express ID of the IFC model.
assetsIDnumber The assets ID associated with the model.
is_examplestring Whether the link is an example ("true" or "false").
modelstring The name of the model.
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response of the DMD link creation.
-
async,staticGoIFCServices.createMassiveLink(payload){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 571 -
Creates massive IFC links based on automatic linking payload data.
Name Type Description payloadIAutomaticLinkingPayload The payload containing the data for creating massive links.
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response of the massive link creation.
-
async,staticGoIFCServices.deleteDMDLink(serialid){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 199 -
Deletes a DMD link using the provided serial ID.
Name Type Description serialidnumber The serial ID of the DMD link to be deleted.
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response of the DMD link deletion.
-
async,staticGoIFCServices.generatePropertiesExcel(){Object}
Services/GoIFCServices/index.ts, line 298 -
Retrieves the configuration settings for GIS API including the API URL and token.
Returns:
Type Description Object - Returns an object containing the GIS API URL and token.
-
staticGoIFCServices.getConfig(){Object}
Services/GoIFCServices/index.ts, line 26 -
Retrieves the configuration including the environment and token.
Returns:
Type Description Object Returns an object containing the environment and token. -
async,staticGoIFCServices.getIFCLinks(props){Promise.<AxiosResponse.<Object>>}
Services/GoIFCServices/index.ts, line 76 -
Retrieves IFC links.
Name Type Description propsObject The properties.
Name Type Description appIdstring The ID of the application.
groupstring The group identifier.
viewstring The view identifier.
modelstring The name of the model.
Returns:
Type Description Promise.<AxiosResponse.<Object>> - Resolves with the IFC links data.
-
async,staticGoIFCServices.getModelData(props){Promise.<Object>}
Services/GoIFCServices/index.ts, line 48 -
Retrieves model data either using a web worker or directly based on the provided properties.
Name Type Description propsObject The properties for fetching model data.
Name Type Description chunkNamestring The name of the chunk of the model.
baseUrlstring optional Optional base URL for the request.
useBackendFeaturesboolean optional Flag indicating whether to use backend features.
Returns:
Type Description Promise.<Object> - Resolves with the model data including name, geometries, and properties.
-
async,staticGoIFCServices.insertIOTCoordinates(serialId, coordinates){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 241 -
Inserts IoT coordinates for a specific serial ID.
Name Type Description serialIdnumber The serial ID for which coordinates are to be inserted.
coordinatesObject The initial and final coordinates.
Name Type Description initialArray.<number> The initial coordinates as an array of numbers.
finalArray.<number> The final coordinates as an array of numbers.
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response of the coordinate insertion.
-
async,staticGoIFCServices.uploadExcelFile(props){Promise.<AxiosResponse>}
Services/GoIFCServices/index.ts, line 344 -
Uploads an Excel (CSV) file to link elements with IFC models.
Name Type Description propsObject The properties required for uploading the Excel file.
Name Type Description fileFile The CSV file to be uploaded.
appIdstring The ID of the application.
groupstring The group identifier.
viewstring The view identifier.
modelstring The name of the model.
is_examplestring Indicates if the upload is an example ("true" or "false").
Returns:
Type Description Promise.<AxiosResponse> - Resolves with the response from the server.
