Class IfcApi
java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.IfcApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadErrorModel
(UUID errorUuid) Download the IFC model of an Error.downloadModel
(UUID versionUuid) Download a model, this will return the byte-for-byte original IFC modelExport a new IFC model from one or more models, filtered by the given query.Methods inherited from class nl.bimbase.bimworks.client.apis.SubApi
getBimWorksClient
-
Constructor Details
-
IfcApi
-
-
Method Details
-
downloadModel
Download a model, this will return the byte-for-byte original IFC model- Parameters:
versionUuid
- The UUID of the Version to download- Returns:
- An InputStream that can be used to get the content. Responsibility for closing this stream is on the caller.
- Throws:
BimWorksException
-
downloadErrorModel
Download the IFC model of an Error. This can be useful for debugging.- Parameters:
errorUuid
- The UUID of the Error- Returns:
- An InputStream that can be used to get the content. Responsibility for closing this stream is on the caller.
- Throws:
BimWorksException
-
export
Export a new IFC model from one or more models, filtered by the given query. The query should not contain a GET statement, if it does it is ignored. Only subclasses of IfcProduct can be queried. By default all geometric representations are also included in the results. The decomposes/containment tree all the way up to IfcProject is included for each result. For IfcProject also the UnitAssignment is always included, as are the OwnerHistory objects, to make it a valid IFC file. When querying multiple models, it should be expected that the resulting IFC will not be valid. For example it will usually have multiple IfcProject entities.- Parameters:
versionUuids
- The Version UUIDs of the models to queryquery
- The BQL query to filter by- Returns:
- An InputStream, closing the InputStream is the responsibility of the caller
- Throws:
BimWorksException
-