Interface Models


  • public interface Models
    The service for opening models and accessing them.
    Since:
    9.10.3
    • Method Detail

      • openIFCModel

        MModel openIFCModel​(String name,
                            InputStream inputStream)
                     throws ModelOpeningException
        Opens an IFC model.
        Parameters:
        name - the name of the model
        inputStream - the IFC model input stream
        Returns:
        the model information
        Throws:
        ModelOpeningException - the exception if the model opening fails
        Since:
        9.10.3
      • partialUpdateIFCModel

        MModel partialUpdateIFCModel​(UUID modelUUID,
                                     InputStream inputStream)
                              throws ModelOpeningException,
                                     ModelNotFoundException
        Partially updates the IFC model specified by the UUID. Components that are not new IFC are not deleted.
        Parameters:
        modelUUID - the model UUID
        inputStream - the IFC model input stream
        Returns:
        the model information
        Throws:
        ModelOpeningException - the exception if the model opening fails
        ModelNotFoundException - the exception if there is no model which UUID matches the parameter
        Since:
        9.10.3
      • getModels

        List<MModel> getModels()
        Returns the information of the all models that are currently open.
        Returns:
        the information of the all models
      • getModel

        MModel getModel​(UUID modelUUID)
                 throws ModelNotFoundException
        Returns the model model with the given UUID.
        Parameters:
        modelUUID - the model UUID
        Returns:
        the model information
        Throws:
        ModelNotFoundException - the exception if there is no model which UUID matches the parameter
        Since:
        9.10.3