PredicateManager#

Usage:

PredicateManager Class API Wrapper

class PredicateManager[source]#

Bases: object

Wrapper for PredicateManager class of Moldflow Synergy.

create_bool_and_predicate(predicate1, predicate2)[source]#

Creates a predicate from two predicates using a boolean AND operation. An entity satisfies the AND predicate if it satisfies both its “child” predicates

Parameters:
  • predicate1 (Predicate | None) – The left predicate.

  • predicate2 (Predicate | None) – The right predicate.

Returns:

The created AND predicate.

Return type:

Predicate

create_bool_not_predicate(predicate)[source]#

Creates a predicate from a predicate using a boolean NOT operation. An entity satisfies the NOT predicate if it does not satisfy its “child” predicate.

Parameters:

predicate (Predicate | None) – The predicate to negate.

Returns:

The created NOT predicate.

Return type:

Predicate

create_bool_or_predicate(predicate1, predicate2)[source]#

Creates a predicate from two predicates using a boolean OR operation. An entity satisfies the OR predicate if it satisfies either of its “child” predicates”

Parameters:
  • predicate1 (Predicate | None) – The left predicate.

  • predicate2 (Predicate | None) – The right predicate.

Returns:

The created OR predicate

Return type:

Predicate

create_bool_xor_predicate(predicate1, predicate2)[source]#

Creates a predicate from two predicates using a boolean XOR operation. An entity satisfies the XOR predicate if it satisfies exactly one of its “child” predicates.

Parameters:
  • predicate1 (Predicate | None) – The left predicate.

  • predicate2 (Predicate | None) – The right predicate.

Returns:

The created XOR predicate.

Return type:

Predicate

create_label_predicate(label)[source]#

Create a predicate for a label range.

Parameters:

label (str) – The label to create the predicate for.

Returns:

The created label predicate.

Return type:

Predicate

create_prop_type_predicate(prop_type)[source]#

Create a predicate for a property type.

Parameters:

prop_type (int) – The type of the property.

Returns:

The created property type predicate.

Return type:

Predicate

create_property_predicate(property_type, property_id)[source]#

Create a predicate for a property.

Parameters:
  • property_type (int) – The type of the property.

  • property_id (int) – The id of the property.

Returns:

The created property predicate.

Return type:

Predicate

create_thickness_predicate(min_value, max_value)[source]#

Create a predicate for a thickness range.

Parameters:
  • min_value (float) – The minimum thickness.

  • max_value (float) – The maximum thickness.

Returns:

The created thickness predicate.

Return type:

Predicate

create_x_section_predicate(cross_section, min_value, max_value)[source]#

Create a predicate for a cross section.

Parameters:
  • cross_section (CrossSectionType | str) – The cross section type.

  • min_value (DoubleArray | None) – The minimum values for the cross section.

  • max_value (DoubleArray | None) – The maximum values for the cross section.

Cross Section

Parameters

Circular

Diameter

Rectangular

Width, Height

Annular

Outer Diameter, Inner Diameter

Half-Circular

Diameter, Height

U-shape

Width, Height

Trapezoidal

Top Width, Bottom Width, Height

Returns:

The created cross section predicate.

Return type:

Predicate