About Building and Civil BIM Completeness ResourcesYou can customize the behavior of the BIM Completeness command by giving it values through a Business Rule in Data Setup. This command allows to check a structure from a root element or from a selected node, to select a Level Of Development (LOD) and/or a business rule. A building and civil BIM completeness resource is an XML document that describes the expected behavior of the command to validate data, architect, engineering and others mock-up. If no XML resource file is set in Data Setup, the Feature_BIMCompletenessRules.xml and PLM_BIMCompletenessRules.xml files
delivered in XML File ExampleThe BIM Completeness command computes feature objects, and BIM Attributes with the AEC type as well, and it can run user-defined business rules. Set up two BIM criteria, for the feature type, in the Data Setup resource table as below. For example:
To check a wall, use the CATBldWall input. If it is a PLM entity, use AecWall as input. <?xml version="1.0" ?> <!-- Check BIM Rule --> < Feature_BIMCompletenessRules> <BIMCriteria ID="1" Name="Check walls by thickness"/> <BIMCriteria ID="2" Name="Check structural walls"/> </ Feature_BIMCompletenessRules> Example of the User-Defined Business RuleYou can use the CATRule samples, Custom_BIMCompleteness_FeatureSample.CATRule and
Custom_BIMCompleteness_PLMSample.CATRule, containing the above criteria, in
The business rule script below is an example. /* Rule created by NOI1 3/2/2022 */
/* ErrorType value listing
NONE = 0
HIGH_VALUE = 1
LOW_VALUE = 2
FORBIDDEN_VALUE = 3
MISSING_EXTENSION = 4
MISSING_BASE_EXTENSION = 5
NOT_TREATED = 6
*/
Let ExtensionsList(List)
Let AttributesList(List)
Let ErrorsList(List)
Let CriterionID(String)
CriterionID = Parameters.GetAttributeString("BIMCriteria")
Let ExtFilter(List)
ExtFilter = Parameters.GetAttributeObject("ExtensionFilter")
if (CriterionID == "Feature Check walls by thickness")
{
let retExt(String)
let retAttr(String)
let retError(Integer)
if( ThisObject->IsASortOf("CATBldWall") )
{
let element(CATBldWall)
set element = ThisObject
let elementExt(IfcQto_WallBaseQuantities)
set elementExt = element
set retExt = "IfcQto_WallBaseQuantities"
let idxExt(Integer)
set idxExt = ExtFilter.IndexOf(retExt,1)
if (elementExt <> NULL AND idxExt > 0 )
{
set retAttr = "IfcQto_WallBaseQuantities_Length"
let wallLength(Length)
set wallLength = elementExt.IfcQto_WallBaseQuantities_Length
if (wallLength < 100mm) set retError = 3
else set retError = 0
}
else
{
set retAttr = ""
set retError = 5
}
}
else
{
set retExt = ""
set retAttr = ""
set retError = 6
}
ExtensionsList.Append(retExt)
AttributesList.Append(retAttr)
ErrorsList.Append(retError)
}
else if (CriterionID == "Feature Check structural walls")
{
let retExt(String)
let retAttr(String)
let retError(Integer)
if( ThisObject->IsASortOf("CATBldWall") )
{
let element(CATBldWall)
set element = ThisObject
let elementExt(IfcPset_WallCommon)
set elementExt = element
if (elementExt <> NULL and elementExt.IfcPset_WallCommon_LoadBearing )
{
set retExt = "IfcPset_WallCommon"
set retAttr = "IfcPset_WallCommon_LoadBearing"
set retError = 0
}
else
{
set retExt = "IfcPset_WallCommon"
set retAttr = "IfcPset_WallCommon_LoadBearing"
set retError = 3
}
}
else
{
set retExt = "IfcPset_WallCommon"
set retAttr = ""
set retError = 5
}
ExtensionsList.Append(retExt)
AttributesList.Append(retAttr)
ErrorsList.Append(retError)
}
Parameters.SetAttributeObject("ExtensionList", ExtensionsList)
Parameters.SetAttributeObject("AttributeList", AttributesList)
Parameters.SetAttributeObject("ErrorTypeList", ErrorsList)
Detailed information about the input and output values in the business rule:
| |||||||