Tekla Open API

Detailed and full API reference helps you master Tekla Open API

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: 2019.0.0.0 (2019.0.0.0)
Syntax
[SerializableAttribute]
public sealed class BinaryFilterExpression : FilterExpression

The BinaryFilterExpression type exposes the following members.

Constructors
  Name Description
Public method BinaryFilterExpression(BooleanFilterExpression, BooleanOperatorType, BooleanConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public method BinaryFilterExpression(DateTimeFilterExpression, DateTimeOperatorType, DateTimeConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public method BinaryFilterExpression(NumericFilterExpression, NumericOperatorType, NumericConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Public method BinaryFilterExpression(StringFilterExpression, StringOperatorType, StringConstantFilterExpression)
Initializes a new instance of the BinaryFilterExpression class.
Top
Properties
  Name Description
Public property IsEnable
Gets or sets the enabled state of the filter expression.
(Inherited from FilterExpression.)
Top
Methods
  Name Description
Public method ToString
Creates a string representation of the current object.
(Inherited from Expression.)
Top
Examples
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