BimApiLoadOptionsWithIfcChangePredicate
Hierarchy
- BimApiIfcObjectsLoadOptions
- BimApiSetContainerLoadOptions
- BimApiLoadOptionsWithIfcChangePredicate
Index
Properties
readonlyifcChangePredicate
Type declaration
If specified only BimChangeIfc instances matching this criteria will be loaded.
Parameters
o: BimChangeIfc
Returns boolean
optionalreadonlyifcObjectHasGeometryPredicate
Type declaration
All BimIfcObject matching this criteria will be marked with hasGeometry =
false
so that they can not be visualized (no geometry data will be loaded)Parameters
o: BimIfcObject
Returns boolean
optionalreadonlyisIfcObjectVisiblePredicate
Type declaration
Determines if object is initially visible or not. Only valid if hasGeometryPredicate is not defined or returns
true
for the object.Parameters
o: BimIfcObject
Returns boolean
loadGeometry
If true
then geometry is loaded automatically.
loadPropertySets
If true
then property sets are loaded automatically. No call to () is needed.
optionalremoveLeafIfcObjectsWithNoGeometry
Determines whether leaf nodes in the IFC hierarchy, with no geometry, should be removed during loading.
Defaults to false
.
throwOnNoIfcChanges
Throw exception when ifcChangePredicate is applied to a list of BimChangeIfc and the result is a empty collection.
Methods
toExplicitLoadOptions
Converts a BimApiLoadOptionsWithIfcChangePredicate instance to a BimApiLoadOptionsWithExplicitIfcChanges. This allows a user to specify exactly which ifc files that shall be loaded (for example external files can be added to ifcChanges). Do note that if ifc files previusly marked as not loadable and any new ifc’s that are added will still be subject to the filters (ifcObjectHasGeometryPredicate and isIfcObjectVisiblePredicate). Hence if those filters are specified and don’t match anything in the files that are marked for load then objects from those files will still not be visible (and may not even get geometry).
Parameters
ifcChanges: BimChangeIfc[]
Collection of ifc files that will be initially included in ifcChanges. Only items matching ifcChangePredicate will initially be marked for loading.
Returns BimApiLoadOptionsWithExplicitIfcChanges
Load options to use when IFC files in a container needs to match a specified predicate in order to be loaded. Useful when you for example only want to load files with of type disicpline A.