API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

BinaryFilterExpression Class

The BinaryFilterExpression class represents a binary expression between two filter expressions. This class cannot be inherited.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Filtering
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2023.0.1
public sealed class BinaryFilterExpression : FilterExpression

The BinaryFilterExpression type exposes the following members.

Public methodBinaryFilterExpression(BooleanFilterExpression, BooleanOperatorType, BooleanConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public methodBinaryFilterExpression(DateTimeFilterExpression, DateTimeOperatorType, DateTimeConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public methodBinaryFilterExpression(NumericFilterExpression, NumericOperatorType, NumericConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public methodBinaryFilterExpression(StringFilterExpression, StringOperatorType, StringConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public propertyIsEnable
Gets or sets the enabled state of the filter expression.
(Inherited from FilterExpression.)
Public methodToString
Creates a string representation of the current object.
(Inherited from Expression.)
The following example creates this BinaryFilterExpression: PartName == BEAM1
using System;
using Tekla.Structures.Filtering;
using Tekla.Structures.Filtering.Categories;

public class FilterExample
       // Creates a binary filter expression:
       // PartName == BEAM1
       public BinaryFilterExpression CreateBinaryFilterExpression()
           // Creates the filter expressions
           PartFilterExpressions.Name PartName = new PartFilterExpressions.Name();
           StringConstantFilterExpression Beam1 = new StringConstantFilterExpression("BEAM1");

           // Creates the binary filter expression
           return new BinaryFilterExpression(PartName, StringOperatorType.IS_EQUAL, Beam1);
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.