Skip to main content
6-Contributor
March 6, 2025
Question

APIs Usage Related to Filtering Expressions

  • March 6, 2025
  • 1 reply
  • 830 views

Version: Windchill 11.0

 

Use Case: I hope that in the customized function, after entering advanced expressions, the code can filter out the objects that meet the conditions of this expression, and the attributes for filtering are on a certain IBA attribute of these objects.


Description:

Is there any JavaDoc for Expression in Windchill? Are there any related APIs for filtering and screening? For example, for an existing Expression (AA00 = AA01 / AA00 = AA02), if AA01 is input as True and AA03 is input as False.

1 reply

joe_morton
18-Opal
18-Opal
March 6, 2025

What are you filtering? A WTPart structure? 

6-Contributor
March 7, 2025

Not the WTPart structure.Is an IBA property, as shown in the attached picture.

Of course, the contents of the IBA attribute and the filter I want to enter have passed the expression rule check.

In the example shown, the option is AA00, and the choices are AA01, AA09, and so on.

Based on the IBA attribute (AA09+CA21), the WTPart cannot be queried if you enter AA01; If you type AA09, you can filter out the WTPart.

微信截图_20250307092954.jpg

joe_morton
18-Opal
18-Opal
March 13, 2025

If I understand,

You have an attribute where the value is "AA09+CA21" and you want it to appear in search results when you search for "AA01". Is that right?

 

In case it helps, here's a couple of  references: