Skip to content

Read the ifcJSON model from the Database

Feature Group(s): CRUD | PostgreSQL

This is very simple:

  • Get the objects from the object table ifcjson field
  • Get the representations from the representation table ifcjson field
  • Get the propertySets from the propertyset table ifcjson field
  • Get the relationships from the relationship table ifcjson field

Get the header from the bundle table or create a new one.

Load all in an ifcJSON and store it. Done!

Submit the processing request

#
#   Get the IFCJSON from the database 
#  
class GetIfcJsonFromDb_Instruction(BaseModel):
    bundleId: str | None = None # must be an integer

class GetIfcJsonFromDb_Result(BaseModel):
    resultPath: str # relative path of the result file (json)
    runtime: float | None = 0.0 # in seconds