public BinaryFilterExpressionItem(Dynamic.Tekla.Structures.Filtering.FilterExpression FilterExpression) { var args = new object[1]; args[0] = Dynamic.Tekla.Structures.Filtering.FilterExpression_.GetTSObject(FilterExpression); this.teklaObject = TSActivator.CreateInstance("Tekla.Structures.Filtering.BinaryFilterExpressionItem", args); }
public static System.Boolean ObjectMatchesToFilter( Dynamic.Tekla.Structures.Model.ModelObject ModelObject_, Dynamic.Tekla.Structures.Filtering.FilterExpression FilterExpression_) { var ModelObject = Dynamic.Tekla.Structures.Model.ModelObject_.GetTSObject(ModelObject_); var FilterExpression = Dynamic.Tekla.Structures.Filtering.FilterExpression_.GetTSObject(FilterExpression_); var result = (System.Boolean)MethodInvoker.InvokeStaticMethod("Tekla.Structures.Model.Operations.Operation", "ObjectMatchesToFilter", ModelObject, FilterExpression); return(result); }
public Dynamic.Tekla.Structures.Model.ModelObjectEnumerator GetObjectsByFilter( Dynamic.Tekla.Structures.Filtering.FilterExpression FilterExpression_) { var FilterExpression = Dynamic.Tekla.Structures.Filtering.FilterExpression_.GetTSObject(FilterExpression_); try { var result = teklaObject.GetObjectsByFilter(FilterExpression); var _result = Dynamic.Tekla.Structures.Model.ModelObjectEnumerator_.FromTSObject(result); return(_result); } catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex) { throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(GetObjectsByFilter), ex); } }