Package com.solibri.smc.api.model
Interface Model
- All Known Subinterfaces:
- MModel
public interface Model
This interface is used for getting data from the data model. This interface alone does not enable editing of the data
 model yet. This can be retrieved through the 
SMC interface.- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptiongetClassification(String name)Returns the firstClassificationfound with the given name, if there is any loaded in this model.Returns all the classifications loaded in this model.getComponentByBatId(String batId)Gets the component by BIM Authoring Tool ID.getComponentByGuid(String guid)Gets the component with the given IFC GUID.getComponents(ComponentFilter filter)Returns components accepted by givenfilter.getComponents(ComponentFilter filter, Class<T> type)Returns components accepted by givenfilterthat are also of the specified type.Returns the metadata of the model as key to value map.getName()Returns the name of the model.Returns the root rulesets of the model.Returns the source application for this model, if the information exists.getSubModel(UUID uuid)Gets a sub-model with the given UUID.Get the model's global transformation matrix.getUUID()Returns unique identifier of the model.
- 
Method Details- 
getComponentByGuidGets the component with the given IFC GUID.- Parameters:
- guid- the component IFC GUID
- Returns:
- An Optional containing the component, or an empty Optional if no match
- Since:
- 9.10.3
 
- 
getComponentByBatIdGets the component by BIM Authoring Tool ID.- Parameters:
- batId- the id
- Returns:
- An Optional containing the component, or an empty Optional if no match
- Since:
- 9.10.3
 
- 
getSubModelGets a sub-model with the given UUID.- Parameters:
- uuid- the model UUID
- Returns:
- An Optional containing the model, or an empty Optional if no match
- Since:
- 9.10.3
 
- 
getComponentsReturns components accepted by givenfilter.- Parameters:
- filter- a- ComponentFilter
- Returns:
- a collection of Componentpassing given filter
- Since:
- 9.10.2
 
- 
getComponentsReturns components accepted by givenfilterthat are also of the specified type.- Type Parameters:
- T- the type of the component
- Parameters:
- filter- a- ComponentFilter
- type- the class type of the components to retrieve from the model
- Returns:
- a collection of Componentpassing given filter
- Since:
- 9.10.2
 
- 
getUUIDUUID getUUID()Returns unique identifier of the model.- Returns:
- the UUID
- Since:
- 9.10.3
 
- 
getNameString getName()Returns the name of the model.- Returns:
- the name
- Since:
- 9.10.3
 
- 
getMetadataReturns the metadata of the model as key to value map.- Returns:
- the metadata
- Since:
- 9.10.3
 
- 
getClassificationsCollection<Classification> getClassifications()Returns all the classifications loaded in this model.- Returns:
- a collection of all the Classifications loaded in this model
- Since:
- 9.10.4
 
- 
getClassificationReturns the firstClassificationfound with the given name, if there is any loaded in this model. If there are multiple classifications with the same name, this method returns the first found.- Parameters:
- name- the given name
- Returns:
- the first Classificationfound with the given name, emptyOptionalif not found
- Since:
- 9.10.4
 
- 
getSourceApplicationReturns the source application for this model, if the information exists.- Returns:
- the source application
- Since:
- 9.12.0
 
- 
getRulesetsReturns the root rulesets of the model. The fact that only root rulesets are returned means that to find all rules, the hierarchy must be traversed fully and it is not enough to only get the direct descendants.- Returns:
- the root rulesets
- Since:
- 9.12.0
 
- 
getTransformationMatrixMatrix4d getTransformationMatrix()Get the model's global transformation matrix. When this method is called on the root model, it returns the root model's transformation matrix, not the sub model's transformation matrix, even when only one sub model is present. To retrieve the transformation matrix of a sub model, call this method on the sub model instead. Sub models can be retrieved by usingModels.getModels()orComponent.getModel().- Returns:
- the model's global transformation matrix
- Since:
- 9.12.1
 
 
-