Package com.solibri.smc.api.model
Interface Models
public interface Models
The service for opening models and accessing them.
- Since:
- 9.10.3
-
Method Summary
Modifier and TypeMethodDescriptionReturns the model model with the given UUID.Returns the information of the all models that are currently open.openIFCModel(String name, InputStream inputStream)
Opens an IFC model.partialUpdateIFCModel(UUID modelUUID, InputStream inputStream)
Partially updates the IFC model specified by the UUID.updateIFCModel(UUID modelUUID, InputStream inputStream)
Completely updates the IFC model specified by the UUID.
-
Method Details
-
openIFCModel
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, ModelNotFoundExceptionCompletely 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, ModelNotFoundExceptionPartially 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
Returns the information of the all models that are currently open.- Returns:
- the information of the all models
-
getModel
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
-