Building and Civil BIM Completeness Resources

This topic provides an overview of the Building and Civil BIM Completeness Resources resource table in Data Setup and the resources used by the Building & Civil Assemblies, Civil 3D Design, Building & Civil Structures Design, and Building 3D Design apps.

A resource is a PLM object (for example, a catalog or a business rule) or another type of file (for example, a bitmap or a spreadsheet).

You can use two types of documents from the resources: XML and CATRules file extension.

This page discusses:

About Building and Civil BIM Completeness Resources

You 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 resources\knowledge\scripts is used.

XML File Example

The 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:

  • Check walls by thickness
  • Check structural walls

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 Rule

You can use the CATRule samples, Custom_BIMCompleteness_FeatureSample.CATRule and Custom_BIMCompleteness_PLMSample.CATRule, containing the above criteria, in resources\knowledge\scripts.

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:

  • The rule has 2 IN (with ThisObject included) and 3 OUT parameters.
  • [IN] BIMCriteria: Describes which criteria will be running.
  • [IN] ExtensionFilter: Contains the list of the filtered extension.
  • [IN] ThisObject: Current object checked (PLMEntity/Feature)
  • The rule contains the list of Out values. They must be filled with same amount of data. If the list size differs, it will not be considered.
  • Extension is mandatory, it should not be an empty value.
  • Each index of the list are linked. For example: AttributeList [1] is contained in ExtensionList [1] with error type detected in ErrorTypeList [1].
  • [OUT] ExtensionList: The names of the extension are checked (List of STRING)
  • [OUT] AttributeList: the names of the attributes are checked (List of STRING)
  • [OUT] ErrorTypeList: Level of error detected for extension and/or attribute. (List of INT, possible values in first lines with comments.)