Package com.solibri.smc.api
Class SMC
java.lang.Object
com.solibri.smc.api.SMC
The SMC is used to access different Solibri services.
- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidBrings the application to front.static voidCloses the project normally, possibly asking the user for confirmation, for example, if the project has unsaved changes.static voidCloses the project without asking any questions.static ProgressBarcreateProgressBar(String title, int total) Creates a new progressbar instance with given title and total amount of progress.static ThreeDget3D()Returns the 3D interface for accessing 3D related functionality.static JFrameReturns Solibri application frame.static BcfApigetBCF()Returns theBcfApithat provides information about the BCF communication.static BcfXmlReturns a service for creating BCF-XML reports.static CheckingReturns theCheckingthat provides information about the softwares checking activities.static UserReturns the current user using this application.Returns a list of custom views that are active in the software.static InfoDisplayerReturns an interface for handling the info view (UI).static InformationTakeoffReturns theInformationTakeoffinstance.static InternalViewsReturns the Solibri internal views.static Layoutsstatic ModelgetModel()Returns an interface to the SMC data model.static ModelsReturns service for accessing models.static List<Presentation>Returns all the presentation available in the software.static ProductReturns the product variant that is running.static StringReturns the product version that is currently running.static ProjectReturns the instance for accessing saved project file (.smc) information.static SelectionBasketReturns the default selection basket.static SettingsProvides access to the settings of the software.static booleanisBusy()Returns true when Solibri is busy working on something, for example, importing IFC, Checking, or evaluating classifications.static ModelopenModel(String name, InputStream inputStream) Opens a Solibri model/project.static voidSaves a Solibri model/project to given path.static voidshutdown()Shuts the application down normally, possibly asking the user for confirmation, for example, if the model has unsaved changes.static voidShuts the application down without asking any questions.
- 
Method Details- 
openModelOpens a Solibri model/project.- Parameters:
- name- the name of the model
- inputStream- the model input stream
- Returns:
- the model information
- Throws:
- ModelOpeningException- the exception if the model opening fails
- Since:
- 9.12.1
 
- 
saveModelSaves a Solibri model/project to given path.- Parameters:
- path- the output path
- Throws:
- IOException- the exception if the model saving fails
- Since:
- 9.12.3
 
- 
getModelReturns an interface to the SMC data model. This interface can be used to access raw data objects in the Solibri database. Returns null if there is no model currently open.- Returns:
- the interface to the Solibri data model
- Since:
- 9.10.2
 
- 
getInfoDisplayerReturns an interface for handling the info view (UI).- Returns:
- the info service
- Since:
- 9.10.3
 
- 
getSelectionBasketReturns the default selection basket.- Returns:
- the selection basket
- Since:
- 9.10.3
 
- 
getModelsReturns service for accessing models.- Returns:
- the model service
- Since:
- 9.10.3
 
- 
getBcfXmlReturns a service for creating BCF-XML reports.- Returns:
- the issue service
- Since:
- 9.10.3
 
- 
getProjectReturns the instance for accessing saved project file (.smc) information.- Returns:
- the project service
- Since:
- 9.10.3
 
- 
getProductReturns the product variant that is running.- Returns:
- the product variant
- Since:
- 9.10.3
 
- 
getProductVersionReturns the product version that is currently running.- Returns:
- the product version
- Since:
- 9.10.3
 
- 
isBusypublic static boolean isBusy()Returns true when Solibri is busy working on something, for example, importing IFC, Checking, or evaluating classifications.- Returns:
- true when busy
- Since:
- 9.10.3
 
- 
getInformationTakeoffReturns theInformationTakeoffinstance.- Returns:
- the InformationTakeoff instance
- Since:
- 9.10.8
 
- 
getCurrentUserReturns the current user using this application.- Returns:
- the current user
- Since:
- 9.10.8
 
- 
getPresentationsReturns all the presentation available in the software. The returned list is unmodifiable. The presentations inside that list might not be.- Returns:
- the presentations
- Since:
- 9.10.8
 
- 
getSettingsProvides access to the settings of the software.- Returns:
- the settings
- Since:
- 9.10.8
 
- 
getCustomViewsReturns a list of custom views that are active in the software. Modifying the returned list does not affect the active views, but modifying the views themselves might.- Returns:
- the list of the views
- Since:
- 9.10.8
 
- 
getCheckingReturns theCheckingthat provides information about the softwares checking activities.- Returns:
- the Checking instance
- Since:
- 9.10.6
 
- 
get3DReturns the 3D interface for accessing 3D related functionality.- Returns:
- the 3D access
- Since:
- 9.10.8
 
- 
getBCFReturns theBcfApithat provides information about the BCF communication.- Returns:
- the BCF instance
- Since:
- 9.12.0
 
- 
getLayouts
- 
getInternalViewsReturns the Solibri internal views.- Returns:
- the internal views
- Since:
- 9.12.0
 
- 
shutdownpublic static void shutdown()Shuts the application down normally, possibly asking the user for confirmation, for example, if the model has unsaved changes. All custom views withView.onApplicationExit()defined are notified properly.- Since:
- 9.12.0
 
- 
shutdownNowpublic static void shutdownNow()Shuts the application down without asking any questions. Custom views withView.onApplicationExit()defined will NOT be notified.- Since:
- 9.12.0
 
- 
bringToFrontpublic static void bringToFront()Brings the application to front.- Since:
- 9.12.0
 
- 
createProgressBarCreates a new progressbar instance with given title and total amount of progress.- Parameters:
- title- the title of the progressbar
- total- the total progress possible
- Returns:
- a new progressbar instance
- Since:
- 9.12.0
 
- 
getApplicationFrameReturns Solibri application frame.- Returns:
- frame the Solibri application frame
- Since:
- 9.12.3
 
- 
closeProjectpublic static void closeProject()Closes the project normally, possibly asking the user for confirmation, for example, if the project has unsaved changes.- Since:
- 9.12.7
 
- 
closeProjectNowpublic static void closeProjectNow()Closes the project without asking any questions.- Since:
- 9.12.7
 
 
-