pycatia.knowledge_interfaces.optimizations

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.knowledge_interfaces.optimizations.Optimizations(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Optimizations

Represents a collection of optimization features.

See also:
Optimization
create_constraints_satisfaction(i_name: str, i_comment: str, i_formula_body: str) SetOfEquation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateConstraintsSatisfaction(CATBSTR iName,
CATBSTR iComment,
CATBSTR iFormulaBody) As SetOfEquation

Returns a set of equations.

Parameters:

iName
The name of the set of equations.
iComment
The comment of the set of equations.
iFormulaBody
The body of the set of equations “ a==b+4; c ≤
90”.
Parameters:
  • i_name (str) –

  • i_comment (str) –

  • i_formula_body (str) –

Return type:

SetOfEquation

create_optimization() Optimization

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateOptimization() As Optimization

Creates an empty optimization.
This optimization cannot be used while its properties have not been set.
Return type:

Optimization

item(i_index: cat_variant) AnyObject

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As AnyObject

Retrieves an optimization using its index or its name from the
Optimizations collection.

Parameters:

iIndex
The index or the name of the item (optimization or
constraintSatisfaction) to retrieve from the collection of optimizations. As a
numerics, this index is the rank of the item in the collection. The index of
the first item in the collection is 1, and the index of the last item is Count.
As a string, it is the name you assigned to the item using the


AnyObject.Name property or when changing the item name by the property
panel.
Returns:
either the retrieved optimization or the retreived
constraintSatisfaction
Example:
This example retrieves the last item (optimization or
constraintSatisfaction) in the optimizations
collection.

Set lastItem = optimizations.Item(optimizations.Count)
Parameters:

i_index (cat_variant) –

Return type:

AnyObject