Package com.solibri.smc.api.model
Interface Models
-
public interface ModelsThe service for opening models and accessing them.- Since:
- 9.10.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MModelgetModel(UUID modelUUID)Returns the model model with the given UUID.List<MModel>getModels()Returns the information of the all models that are currently open.MModelopenIFCModel(String name, InputStream inputStream)Opens an IFC model.MModelpartialUpdateIFCModel(UUID modelUUID, InputStream inputStream)Partially updates the IFC model specified by the UUID.MModelupdateIFCModel(UUID modelUUID, InputStream inputStream)Completely updates the IFC model specified by the UUID.
-
-
-
Method Detail
-
openIFCModel
MModel openIFCModel(String name, InputStream inputStream) throws ModelOpeningException
Opens an IFC model.- Parameters:
name- the name of the modelinputStream- the IFC model input stream- Returns:
- the model information
- Throws:
ModelOpeningException- the exception if the model opening fails- Since:
- 9.10.3
-
updateIFCModel
MModel updateIFCModel(UUID modelUUID, InputStream inputStream) throws ModelOpeningException, ModelNotFoundException
Completely updates the IFC model specified by the UUID.- Parameters:
modelUUID- the model UUIDinputStream- the IFC model input stream- Returns:
- the model information
- Throws:
ModelOpeningException- the exception if the model opening failsModelNotFoundException- the exception if there is no model which UUID matches the parameter- 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 UUIDinputStream- the IFC model input stream- Returns:
- the model information
- Throws:
ModelOpeningException- the exception if the model opening failsModelNotFoundException- 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
-
-