Class: GoIFCServices

GoIFCServices

new GoIFCServices()

Services/GoIFCServices/index.ts, line 7

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

Services/GoIFCServices/index.ts, line 497

Creates an automatic IFC link based on element properties.

Name Type Description
props AutomaticLinkProps

The properties for creating the automatic IFC link.

Returns:
Type Description
Promise.<AxiosResponse>
  • Resolves with the response of the link creation.
Services/GoIFCServices/index.ts, line 140

Creates a DMD link.

Name Type Description
props Object

The properties for creating the DMD link.

Name Type Description
appId string

The ID of the application.

group string

The group identifier.

view string

The view identifier.

expressID number

The express ID of the IFC model.

assetsID number

The assets ID associated with the model.

is_example string

Whether the link is an example ("true" or "false").

model string

The name of the model.

Returns:
Type Description
Promise.<AxiosResponse>
  • Resolves with the response of the DMD link creation.
Services/GoIFCServices/index.ts, line 571

Creates massive IFC links based on automatic linking payload data.

Name Type Description
payload IAutomaticLinkingPayload

The payload containing the data for creating massive links.

Returns:
Type Description
Promise.<AxiosResponse>
  • Resolves with the response of the massive link creation.
Services/GoIFCServices/index.ts, line 199

Deletes a DMD link using the provided serial ID.

Name Type Description
serialid number

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.
Services/GoIFCServices/index.ts, line 76

Retrieves IFC links.

Name Type Description
props Object

The properties.

Name Type Description
appId string

The ID of the application.

group string

The group identifier.

view string

The view identifier.

model string

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
props Object

The properties for fetching model data.

Name Type Description
chunkName string

The name of the chunk of the model.

baseUrl string optional

Optional base URL for the request.

useBackendFeatures boolean 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
serialId number

The serial ID for which coordinates are to be inserted.

coordinates Object

The initial and final coordinates.

Name Type Description
initial Array.<number>

The initial coordinates as an array of numbers.

final Array.<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
props Object

The properties required for uploading the Excel file.

Name Type Description
file File

The CSV file to be uploaded.

appId string

The ID of the application.

group string

The group identifier.

view string

The view identifier.

model string

The name of the model.

is_example string

Indicates if the upload is an example ("true" or "false").

Returns:
Type Description
Promise.<AxiosResponse>
  • Resolves with the response from the server.