knowledge_interfaces
angle
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.angle.Angle(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
KnowledgeInterfaces.RealParam
KnowledgeInterfaces.Dimension
Represents the angle parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim angle1 As Angle
Set angle1 = part1.Parameters.CreateDimension(“angle1”, “ANGLE”, 40.)
Copyright © 1999-2011, Dassault Systèmes. All rights reserved.
bool_param
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.bool_param.BoolParam(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
KnowledgeInterfaces.EnumParam
Represents the boolean parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim availability As BooleanParam
Set availability = part1.Parameters.CreateBoolean(“availability”, True)
-
property
value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As boolean
Returns or sets the value of the boolean parameter.
Example:
This example sets the availability boolean parameter value to True if
its value is False:
If (availability.Value = False) Then
availability.Value = True
End If
- Returns
bool
check
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.check.Check(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
Represents the check relation.
The following example shows how to create a check which checks if a given mass
is less than 10kg. The mass should be defined previously:
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim mass As RealParam
Set mass = part1.Part.Parameters.CreateReal(“mass”, 5.)
Dim maximummass As Check
Set maximummass = part1.Relations.CreateCheck
(“maximummass”,
“Ensures that mass is less than 10 kg”,
“mass<10kg”)
-
property
diagnosis
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Diagnosis() As boolean (Read Only)
Returns the check diagnosis. True if the condition of the check is
verified. False otherwise.
- Returns
bool
-
property
severity
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Severity() As long
Returns or sets the check severity. The severity is the way the check will
manifest itself:
Silent (1)
Information (2)
Warning (3)
- Returns
int
constraint_satisfaction
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.constraint_satisfaction.ConstraintSatisfaction(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
KnowledgeInterfaces.SetOfEquation
Represents the set of equation.
-
solve()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Solve()
Solves the constraint satisfaction problem.
- Returns
None
design_table
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.design_table.DesignTable(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
Represents the DesignTable object.
-
add_association(i_parameter, i_sheet_column)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddAssociation(Parameter iParameter,
CATBSTR iSheetColumn)
Adds an association between a parameter iParameter and a column of the
design table. This method does nothing if the column does not exist or if the
type of the parameter isn t compliant with the column
type.
Parameters:
iParameter
iSheetColumn
The name of the column to be associated with the
parameter.
- Parameters
-
- Returns
None
-
add_new_row()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddNewRow()
Adds a row in the design table source file. The new row is filled in with values of associated
parameters. ##### Since V5R14 ##### If the file contains at least one empty row between two not
empty rows, the behavior of this method is the same for Excel and Text files : => the new row
containing the current parameters values replaces the first empty row found from the beginning of
the file. RQ : before R14, for text files, the new row was appended at the end of the file. The
empty rows were never filed by this way, so that the new row was not visible in Design Table
dialog.
Returns:
S_OK if succeeded, E_FAIL else.
- Returns
None
-
cell_as_string(i_row, i_column)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CellAsString(short iRow,
short iColumn) As CATBSTR
Returns the content of a specific cell.
Parameters:
iRow
the index of the row where the cell is located.
iColumn
the index of the column where the cell is located.
- Parameters
i_row (enum) –
i_column (enum) –
- Returns
str
-
property
columns_nb
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColumnsNb() As short (Read Only)
Returns the nb of columns in the design table file.
- Returns
enum
-
property
configuration
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Configuration() As short
Returns or sets the current configuration. Legal values: 1 to
ConfigurationsNb.
- Returns
enum
-
property
configurations_nb
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ConfigurationsNb() As short (Read Only)
Returns the number of design table configurations.
- Returns
enum
-
property
copy_mode
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CopyMode() As boolean
Returns or sets whether the data contained in the file must be included
inside the CATIA model.
- Returns
bool
-
property
file_path
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FilePath() As CATBSTR
Returns or sets the path of the design table (read/write property).
- Returns
str
-
remove_association(i_sheet_column)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAssociation(CATBSTR iSheetColumn)
Removes an existing association. This method does nothing if the column isn
t associated or if it doesn t exist.
Parameters:
iSheetColumn
The name of an associated column.
- Parameters
i_sheet_column (str) –
- Returns
None
-
synchronize()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Synchronize()
Synchronizes the design table with its source file. If the file is managed
in Enovia LCA, copies this file on local disk, and synchronizes design table
content
- Returns
None
dimension
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.dimension.Dimension(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
KnowledgeInterfaces.RealParam
Represents the dimension parameter.
It is an abstract object which is not intended to be created as such, but from
which the length and angle parameters derive.
See also:
-
property
unit
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Unit() As Unit (Read Only)
Returns the unit used for this dimension object.
- Returns
Unit
-
value_as_string2(i_nb_decimals, i_show_trailing_zeros)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ValueAsString2(long iNbDecimals,
boolean iShowTrailingZeros) As CATBSTR
Gets the value of the parameter as a string, with a given
precision.
Parameters:
iNbDecimals
the maximum number of decimal places to use to generate the string
(minimum 0, maximum 9)
iShowTrailingZeros
this argument says if trailing zeros have to be shown
Example:
This example gets the value of the existing dimension parameter and
shows it in a message box
Dim str
str = dimension.ValueAsString;
MessageBox str
- Parameters
-
- Returns
str
enum_param
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.enum_param.EnumParam(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
Represents the enum parameter.
-
property
value_enum
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ValueEnum() As CATBSTR
Returns or sets the value of the EnumParameter object. Units are expressed
in the IS unit system, except for lengths expressed in millimeters, and angles
expressed in decimal degrees.
Example:
This example sets the param1 value to 1 if its value is greater than
2.5:
If (density.Value > 2.5) Then
End If
- Returns
str
feature_generator
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.feature_generator.FeatureGenerator(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
The interface to access a CATIAFeatureGenerator.
-
generate(i_context)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Generate(AnyObject iContext)
- Parameters
i_context (AnyObject) –
- Returns
None
-
generate_in_context(i_inputs_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GenerateInContext(CATSafeArrayVariant iInputsArray)
- Parameters
i_inputs_array (tuple) –
- Returns
None
-
load_script_from_file_path(i_file_path)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub LoadScriptFromFilePath(CATBSTR iFilePath)
Sets a script from a document file.
- Parameters
i_file_path (str) –
- Returns
None
-
property
nb_generated_features
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NbGeneratedFeatures() As long (Read Only)
Number of generated features in last generation.
- Returns
int
-
property
script
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Script() As CATBSTR
Returns or sets the script that describes what is to be generated.
- Returns
str
free_parameter
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.free_parameter.FreeParameter(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Interface to access a CATIAFreeParameter.
-
property
inf_range
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InfRange() As double
Returns or sets the inferior bound of the free parameter object. The
optimization cannot escape those bounds.
- Returns
float
-
property
parameter
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Parameter() As RealParam
Returns or sets which parameter (CATIAParameter) is linked to this object.
The parameter must be real.
- Returns
RealParam
-
property
step
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Step() As double
Returns or sets the initial step used by the optimisation to look for a
better solution. This step is just a preliminary indication. It will vary
during the optimisation process.
- Returns
float
-
property
sup_range
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SupRange() As double
Returns or sets the superior bound of the free parameter object. The
optimization cannot escape those bounds.
- Returns
float
free_parameters
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.free_parameters.FreeParameters(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Interface to access a CATIAFreeParameters.
-
add_free_parameter(parameter)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddFreeParameter(RealParam parameter) As
FreeParameter
Adds a free parameter. This parameter must not be read only.
- Parameters
parameter (RealParam) –
- Returns
FreeParameter
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As FreeParameter
Retrieves an optimization using its index or its name from the Free
Parameters collection.
Parameters:
iIndex
The index or the name of the free parameter to retrieve from the
collection of free parameters. As a numerics, this index is the rank of the
free parameter in the collection. The index of the first free parameter in the
collection is 1, and the index of the last free parameter is Count. As a
string, it is the name you assigned to the free parameter using the
AnyObject.Name property or when changing the free parameter name by the
property panel.
Returns:
The retrieved free parameter
Example:
This example retrieves the last free parameter in the free parameters
collection.
Set lastFreeParameter = freeParameters.Item(freeParameters.Count)
- Parameters
i_index (CATVariant) –
- Returns
FreeParameter
-
remove_free_parameter(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFreeParameter(CATVariant iIndex)
Removes a free parameter.
- Parameters
i_index (CATVariant) –
- Returns
None
int_param
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.int_param.IntParam(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
Represents the integer parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Dccument
Set part1 = CATDocs.Add(“CATPart”)
Dim year As IntParam
Set year = part1.Part.Parameters.CreateInteger(“year”, 1998)
-
get_enumerate_values(o_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetEnumerateValues(CATSafeArrayVariant oSafeArray)
Returns an array containing the different values that the int param can
take in the case of multiple values.
Example:
Dim enumValues () as Variant
ReDim enumValues (anIntegerParameter.GetEnumerateValuesSize() -
1)
anIntegerParameter.GetEnumerateValues(enumValues)
For i = LBound(enumValues) to UBound(enumValues)
Next
- Parameters
o_safe_array (tuple) –
- Returns
None
-
get_enumerate_values_size()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetEnumerateValuesSize() As long
Returns the number of enumerate values.
- Returns
int
-
property
range_max
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMax() As long
Returns or sets the value of the upper bound that the parameter object
value can take.
Example:
This example sets the RangeMax value to 0 if its value is smaller than
0:
If (Length.RangeMax < 0.0 and Length.RangeMaxValidity <> 0)
Then
End If
- Returns
int
-
property
range_max_validity
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMaxValidity() As long
Returns or sets the type of the upper bound of the
parameter.
0
the upper bound is meaningless
1
the upper bound can be reached
2
the upper bound cannot be reached
- Returns
int
-
property
range_min
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMin() As long
Returns or sets the value of the lower bound that the parameter object
value can take.
Example:
This example sets the RangeMin value to 0 if its value is bigger than
0:
If (Length.RangeMin > 0.0 and Length.RangeMinValidity <> 0)
Then
End If
- Returns
int
-
property
range_min_validity
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMinValidity() As long
Returns or sets the type of the lower bound of the
parameter.
0
the lower bound is meaningless
1
the lower bound can be reached
2
the lower bound cannot be reached
- Returns
int
-
set_enumerate_values(i_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetEnumerateValues(CATSafeArrayVariant iSafeArray)
Sets an array containing the different values that the real param can take
in the case of multiple values.
- Parameters
i_safe_array (tuple) –
- Returns
None
-
suppress_enumerate_values()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SuppressEnumerateValues()
Resets the status of the object to a single value object.
- Returns
None
-
property
value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As long
Returns or sets the value of the integer parameter. Units are expressed in
the IS unit system.
Example:
This example sets the year value to 0 if its value is equal to
2000:
If (year.Value = 2000) Then
End If
- Returns
int
knowledge_activate_object
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.knowledge_activate_object.KnowledgeActivateObject(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
Interface to access a CATIAKnowledgeActivableObject.
-
activate()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Activate()
Activates the relation. The relation will be processed whenever the value
of one of its input parameter is modified.
Example:
This example activates the maximummass relation:
- Returns
None
-
property
activated
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Activated() As boolean (Read Only)
Returns whether the relation is activated.
True if the relation is activated. An activated relation is processed
whenever the value of one of its input parameter is
modified.
Example:
This example retrieves whether the maximummass relation is activated,
and if true, displays the result in a message box:
If ( maximummass.Activated ) Then
MsgBox “maximummass is activated”
End If
- Returns
bool
-
deactivate()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Deactivate()
Deactivates the relation. The relation will no longer be processed when the
value of one of its input parameter is modified.
Example:
This example deactivates the maximummass relation:
- Returns
None
knowledge_object
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.knowledge_object.KnowledgeObject(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Interface to access a CATIAKnowledgeObject.
-
property
hidden
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Hidden() As boolean
Returns or sets wether the relation is hidden or should be hidden. or not.
- Returns
bool
-
property
is_const
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IsConst() As boolean
Returns or sets wether the relation is Const or should be Const. or not.
- Returns
bool
knowledge_sheet_setting_att
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.knowledge_sheet_setting_att.KnowledgeSheetSettingAtt(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
The interface to access a CATIAKnowledgeSheetSettingAtt.
This interface may be used to read or modify in the CATIA/Tools/Option the
settings values of Knowledge sheet.
-
property
design_tables_copy_data
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DesignTablesCopyData() As short
Returns or sets the DesignTablesCopyData parameter.
Role:Return or Set the DesignTablesCopyData parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oDesignTablesCopyData
Legal values:
0 : default mode for design table : copy data into models
1 : default mode for design table : do not copy data into models.
- Returns
enum
-
property
design_tables_synchronization
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DesignTablesSynchronization() As short
Returns or sets the DesignTablesSynchronization parameter.
Role:Return or Set the DesignTablesSynchronization parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oDesignTablesSynchronization
Legal values:
0 : automatic synchronization at load for design table
1 : interactive synchronization at load for design table
2 : manual synchronization for design table.
- Returns
enum
-
get_design_tables_copy_data_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDesignTablesCopyDataInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DesignTablesCopyData
parameter.
Role:Retrieves the state of the DesignTablesCopyData parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_design_tables_synchronization_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDesignTablesSynchronizationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DesignTablesSynchronization
parameter.
Role:Retrieves the state of the DesignTablesSynchronization parameter in
the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_name_surrounded_by_the_symbol_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterNameSurroundedByTheSymbolInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
ParameterNameSurroundedByTheSymbol parameter.
Role:Retrieves the state of the ParameterNameSurroundedByTheSymbol
parameter in the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_tree_view_with_formula_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterTreeViewWithFormulaInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ParameterTreeViewWithFormula
parameter.
Role:Retrieves the state of the ParameterTreeViewWithFormula parameter in
the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_tree_view_with_value_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterTreeViewWithValueInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ParameterTreeViewWithValue
parameter.
Role:Retrieves the state of the ParameterTreeViewWithValue parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_relations_update_in_part_context_evaluate_during_update_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRelationsUpdateInPartContextEvaluateDuringUpdateInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Retrieves the state of the
RelationsUpdateInPartContextEvaluateDuringUpdate parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_relations_update_in_part_context_synchronous_relations_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRelationsUpdateInPartContextSynchronousRelationsInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Retrieves the state of the
RelationsUpdateInPartContextSynchronousRelations parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
property
parameter_name_surrounded_by_the_symbol
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterNameSurroundedByTheSymbol() As short
Returns or sets the ParameterNameSurroundedByTheSymbol
parameter.
Role:Return or Set the ParameterNameSurroundedByTheSymbol parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.
Parameters:
oParameterNameSurroundedByTheSymbol
Legal values:
0 : to see parameter name not surrounded by the symbol “’”
1 : to see parameter name surrounded by the symbol “’”.
- Returns
enum
-
property
parameter_tree_view_with_formula
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterTreeViewWithFormula() As short
Returns or sets the ParameterTreeViewWithFormula
parameter.
Role:Return or Set the ParameterTreeViewWithFormula parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oParameterTreeViewWithFormula
Legal values:
0 : to see parameter tree view without formula
1 : to see parameter tree view with formula.
- Returns
enum
-
property
parameter_tree_view_with_value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterTreeViewWithValue() As short
Returns or sets the ParameterTreeViewWithValue parameter.
Role:Return or Set the ParameterTreeViewWithValue parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oParameterTreeViewWithValue
Legal values:
0 : to see parameter tree view without value
1 : to see parameter tree view with value.
- Returns
enum
-
property
relations_update_in_part_context_evaluate_during_update
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RelationsUpdateInPartContextEvaluateDuringUpdate() As
short
Returns or sets the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Return or Set the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
oRelationsUpdateInPartContextEvaluateDuringUpdate
Legal values:
0 : creation of relations not evaluate during update
1 : creation of relations evaluate during update.
- Returns
enum
-
property
relations_update_in_part_context_synchronous_relations
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RelationsUpdateInPartContextSynchronousRelations() As
short
Returns or sets the RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Return or Set the RelationsUpdateInPartContextSynchronousRelations
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
oRelationsUpdateInPartContextSynchronousRelations
Legal values:
0 : creation of unsynchronous relations
1 : creation of synchronous relations.
- Returns
enum
-
set_design_tables_copy_data_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDesignTablesCopyDataLock(boolean iLocked)
Locks or unlocks the DesignTablesCopyData parameter.
Role:Locks or unlocks the DesignTablesCopyData parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_design_tables_synchronization_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDesignTablesSynchronizationLock(boolean iLocked)
Locks or unlocks the DesignTablesSynchronization
parameter.
Role:Locks or unlocks the DesignTablesSynchronization parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_name_surrounded_by_the_symbol_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterNameSurroundedByTheSymbolLock(boolean
iLocked)
Locks or unlocks the ParameterNameSurroundedByTheSymbol
parameter.
Role:Locks or unlocks the ParameterNameSurroundedByTheSymbol parameter if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_tree_view_with_formula_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterTreeViewWithFormulaLock(boolean iLocked)
Locks or unlocks the ParameterTreeViewWithFormula
parameter.
Role:Locks or unlocks the ParameterTreeViewWithFormula parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_tree_view_with_value_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterTreeViewWithValueLock(boolean iLocked)
Locks or unlocks the ParameterTreeViewWithValue parameter.
Role:Locks or unlocks the ParameterTreeViewWithValue parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_relations_update_in_part_context_evaluate_during_update_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelationsUpdateInPartContextEvaluateDuringUpdateLock(boolean
iLocked)
Locks or unlocks the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Locks or unlocks the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_relations_update_in_part_context_synchronous_relations_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelationsUpdateInPartContextSynchronousRelationsLock(boolean
iLocked)
Locks or unlocks the RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Locks or unlocks the RelationsUpdateInPartContextSynchronousRelations
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
language_sheet_setting_att
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.language_sheet_setting_att.LanguageSheetSettingAtt(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
The interface to access a CATIAKnowledgeSheetSettingAtt.
This interface may be used to read or modify in the CATIA/Tools/Option the
settings values of Knowledge sheet.
-
property
design_tables_copy_data
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DesignTablesCopyData() As short
Returns or sets the DesignTablesCopyData parameter.
Role:Return or Set the DesignTablesCopyData parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oDesignTablesCopyData
Legal values:
0 : default mode for design table : copy data into models
1 : default mode for design table : do not copy data into models.
- Returns
enum
-
property
design_tables_synchronization
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DesignTablesSynchronization() As short
Returns or sets the DesignTablesSynchronization parameter.
Role:Return or Set the DesignTablesSynchronization parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oDesignTablesSynchronization
Legal values:
0 : automatic synchronization at load for design table
1 : interactive synchronization at load for design table
2 : manual synchronization for design table.
- Returns
enum
-
get_design_tables_copy_data_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDesignTablesCopyDataInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DesignTablesCopyData
parameter.
Role:Retrieves the state of the DesignTablesCopyData parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_design_tables_synchronization_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDesignTablesSynchronizationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DesignTablesSynchronization
parameter.
Role:Retrieves the state of the DesignTablesSynchronization parameter in
the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_name_surrounded_by_the_symbol_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterNameSurroundedByTheSymbolInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
ParameterNameSurroundedByTheSymbol parameter.
Role:Retrieves the state of the ParameterNameSurroundedByTheSymbol
parameter in the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_tree_view_with_formula_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterTreeViewWithFormulaInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ParameterTreeViewWithFormula
parameter.
Role:Retrieves the state of the ParameterTreeViewWithFormula parameter in
the current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_parameter_tree_view_with_value_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterTreeViewWithValueInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ParameterTreeViewWithValue
parameter.
Role:Retrieves the state of the ParameterTreeViewWithValue parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_relations_update_in_part_context_evaluate_during_update_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRelationsUpdateInPartContextEvaluateDuringUpdateInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Retrieves the state of the
RelationsUpdateInPartContextEvaluateDuringUpdate parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_relations_update_in_part_context_synchronous_relations_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRelationsUpdateInPartContextSynchronousRelationsInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the
RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Retrieves the state of the
RelationsUpdateInPartContextSynchronousRelations parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
property
parameter_name_surrounded_by_the_symbol
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterNameSurroundedByTheSymbol() As short
Returns or sets the ParameterNameSurroundedByTheSymbol
parameter.
Role:Return or Set the ParameterNameSurroundedByTheSymbol parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.
Parameters:
oParameterNameSurroundedByTheSymbol
Legal values:
0 : to see parameter name not surrounded by the symbol “’”
1 : to see parameter name surrounded by the symbol “’”.
- Returns
enum
-
property
parameter_tree_view_with_formula
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterTreeViewWithFormula() As short
Returns or sets the ParameterTreeViewWithFormula
parameter.
Role:Return or Set the ParameterTreeViewWithFormula parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oParameterTreeViewWithFormula
Legal values:
0 : to see parameter tree view without formula
1 : to see parameter tree view with formula.
- Returns
enum
-
property
parameter_tree_view_with_value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterTreeViewWithValue() As short
Returns or sets the ParameterTreeViewWithValue parameter.
Role:Return or Set the ParameterTreeViewWithValue parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
oParameterTreeViewWithValue
Legal values:
0 : to see parameter tree view without value
1 : to see parameter tree view with value.
- Returns
enum
-
property
relations_update_in_part_context_evaluate_during_update
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RelationsUpdateInPartContextEvaluateDuringUpdate() As
short
Returns or sets the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Return or Set the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
oRelationsUpdateInPartContextEvaluateDuringUpdate
Legal values:
0 : creation of relations not evaluate during update
1 : creation of relations evaluate during update.
- Returns
enum
-
property
relations_update_in_part_context_synchronous_relations
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RelationsUpdateInPartContextSynchronousRelations() As
short
Returns or sets the RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Return or Set the RelationsUpdateInPartContextSynchronousRelations
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
oRelationsUpdateInPartContextSynchronousRelations
Legal values:
0 : creation of unsynchronous relations
1 : creation of synchronous relations.
- Returns
enum
-
set_design_tables_copy_data_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDesignTablesCopyDataLock(boolean iLocked)
Locks or unlocks the DesignTablesCopyData parameter.
Role:Locks or unlocks the DesignTablesCopyData parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_design_tables_synchronization_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDesignTablesSynchronizationLock(boolean iLocked)
Locks or unlocks the DesignTablesSynchronization
parameter.
Role:Locks or unlocks the DesignTablesSynchronization parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_name_surrounded_by_the_symbol_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterNameSurroundedByTheSymbolLock(boolean
iLocked)
Locks or unlocks the ParameterNameSurroundedByTheSymbol
parameter.
Role:Locks or unlocks the ParameterNameSurroundedByTheSymbol parameter if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_tree_view_with_formula_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterTreeViewWithFormulaLock(boolean iLocked)
Locks or unlocks the ParameterTreeViewWithFormula
parameter.
Role:Locks or unlocks the ParameterTreeViewWithFormula parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_parameter_tree_view_with_value_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterTreeViewWithValueLock(boolean iLocked)
Locks or unlocks the ParameterTreeViewWithValue parameter.
Role:Locks or unlocks the ParameterTreeViewWithValue parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_relations_update_in_part_context_evaluate_during_update_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelationsUpdateInPartContextEvaluateDuringUpdateLock(boolean
iLocked)
Locks or unlocks the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter.
Role:Locks or unlocks the RelationsUpdateInPartContextEvaluateDuringUpdate
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_relations_update_in_part_context_synchronous_relations_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelationsUpdateInPartContextSynchronousRelationsLock(boolean
iLocked)
Locks or unlocks the RelationsUpdateInPartContextSynchronousRelations
parameter.
Role:Locks or unlocks the RelationsUpdateInPartContextSynchronousRelations
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
law
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.law.Law(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
Represents the Law object.
-
add_formal_parameter(i_name, i_magnitude)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddFormalParameter(CATBSTR iName,
CATBSTR iMagnitude)
Creates a formal parameter for the law.
Parameters:
iName
The name of the formal parameter.
iType
The type name of the formal parameter.
- Parameters
i_name (str) –
i_magnitude (str) –
- Returns
None
-
remove_formal_parameter(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFormalParameter(CATBSTR iName)
Removes a formal parameter of the law.
Parameters:
iName
The name of the formal parameter.
- Parameters
i_name (str) –
- Returns
None
length
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.length.Length(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
KnowledgeInterfaces.RealParam
KnowledgeInterfaces.Dimension
Represents the length parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim Width As Length
Set width = part1.Part.Parameters.CreateDimension(“width”, “LENGTH”, 20.)
By default the units are the default units of the IS of units.
Copyright © 1999-2011, Dassault Systèmes. All rights reserved.
list
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.list.List(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents a CATIAList.
-
add(i_item_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Add(AnyObject iItemValue)
Adds an item at the end of the list. Does an AddRef on the item. Returns
E_FAIL if the object type is not correct. Will return E_FAIL if trying to set
an already existing element while IsDuplicateElementsAllowed is false.
- Parameters
i_item_value (AnyObject) –
- Returns
None
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As AnyObject
Retrieves a Feature using its index or its name from the Features
collection.
Parameters:
iIndex
The index or the name of the Feature to retrieve from the
collection of Features. As a numerics, this index is the rank of the Feature in
the collection. The index of the first Feature in the collection is 1, and the
index of the last Feature is Count. As a string, it is the name you assigned to
the Feature using the
AnyObject.Name property or when creating the Feature.
Returns:
Example:
This example retrieves the last Feature in the Features
collection.
Dim lastFeature As CATIABase
Set lastFeature = Features.Item(Features.Count)
- Parameters
i_index (CATVariant) –
- Returns
AnyObject
-
remove(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)
Removes a Feature from the Features collection.
Parameters:
iIndex
The index or the name of the Feature to retrieve from the
collection of Features. As a numerics, this index is the rank of the Feature in
the collection. The index of the first Feature in the collection is 1, and the
index of the last Feature is Count. As a string, it is the name you assigned to
the Feature using the
AnyObject.Name property or when creating the Feature.
Example:
This example removes the Feature named density from the Features
collection.
Features.Remove(“density”)
- Parameters
i_index (CATVariant) –
- Returns
None
-
reorder(i_index_current, i_index_target)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Reorder(CATVariant iIndexCurrent,
CATVariant iIndexTarget)
Reorders an element by moving it from the current position to the target
position. Doesn’t change the list if either position is out of the list. Return
E_FAIL if cannot reorder.
- Parameters
-
- Returns
None
-
replace(i_index, i_item_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Replace(CATVariant iIndex,
AnyObject iItemValue)
Sets an item in the list at a position. Does an AddRef on the item. Returns
E_FAIL if the object type is not correct or the index is out of bounds. Returns
E_FAIL if trying to set an already existing element while
IsDuplicateElementsAllowed is false.
- Parameters
-
- Returns
None
list_parameter
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.list_parameter.ListParameter(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
Represents a CATIAListParameter.
-
property
value_list
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ValueList() As List (Read Only)
Returns or sets the value of the List object.
- Returns
List
loop
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.loop.Loop(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
The interface to access a CATIALoop.
Copyright © 1999-2011, Dassault Systèmes. All rights reserved.
optimization
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.optimization.Optimization(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
Represents an Optimization object.
-
property
algorithm_type
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AlgorithmType() As CatAlgorithmType
Returns or sets the algorithm type. Currently available algorithms are
gradient and simulatedAnnealing
See also:
- Returns
enum cat_algorithm_type
-
property
constraints
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Constraints() As OptimizationConstraints (Read
Only)
Returns the collection of optimization constraints.
- Returns
OptimizationConstraints
-
property
conv_speed
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ConvSpeed() As long
Returns or sets the convergence speed for some gradients and the simulated
annealing.
- Returns
int
-
property
free_parameters
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FreeParameters() As FreeParameters (Read Only)
Returns the collection of the free parameters.
- Returns
FreeParameters
-
property
max_evals_nb
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxEvalsNb() As long
Returns or sets the maximum number of model updates allowed during one run
of the optimization.
- Returns
int
-
property
max_evals_wo_improvement
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxEvalsWoImprovement() As long
Returns or sets the maximum number of model updates without improvement of
the problem solution during one run of the optimization.
- Returns
int
-
property
max_time
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxTime() As long
Returns or sets the maximum time allowed for one run of the optimization
(in minutes).
- Returns
int
-
property
objective_parameter
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ObjectiveParameter() As RealParam
Returns or sets the objective parameter of the optimization. This parameter
can not exist (in this case the get method returns E_FAIL) when the
optimization contains only constraints and uses Simulated Annealing, or if the
optimization feature doesn’t contain all information necessary to be run.
- Returns
RealParam
-
property
optimization_type
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OptimizationType() As CatOptimizationType
Returns or sets the type of the optimization: minimum, maximum or target
value searched on the objective parameter.
See also:
- Returns
enum cat_optimization_type
-
run(i_with_stop_dialog)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Run(boolean iWithStopDialog)
Runs the optimization as it is defined. The stop dialog appears if argument
is TRUE
Before running, a check is made to ensure that the optimization feature
contains enough information to run the optimization. In the case where some
information is missing, this method returns E_FAIL
WARNING : if argument is TRUE, the optimization is launched asynchronously, and you can not run
several optimizations in this mode.
- Parameters
i_with_stop_dialog (bool) –
- Returns
None
-
property
target_value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TargetValue() As RealParam (Read Only)
Returns the objective parameter target value. (used only if the
optimization type is a target value search)
- Returns
RealParam
-
property
use_max_evals_wo_improvement
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UseMaxEvalsWoImprovement() As boolean
Returns or sets if the number of updates without improvement of the
solution has to be used as a termination criterion.
- Returns
bool
-
property
use_max_time
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UseMaxTime() As boolean
Returns or sets if max time has to be used as a termination criterion.
- Returns
bool
optimization_constraint
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.optimization_constraint.OptimizationConstraint(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
KnowledgeInterfaces.Check
Represents an optimization constraint.
See also:
-
property
distance_to_satisfaction
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DistanceToSatisfaction() As RealParam (Read Only)
Returns the parameter containing the distance to constraint satisfaction.
- Returns
RealParam
-
property
precision
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Precision() As double
Returns or sets the constraint precision. Only for equality
constraints.
The constraint precision allows the system to know when an equality constraint can be declared as
satisfied (when : distance to satisfaction < precision).
- Returns
float
-
property
satisfaction
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Satisfaction() As boolean (Read Only)
Returns the constraint satisfaction.
- Returns
bool
optimization_constraints
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.optimization_constraints.OptimizationConstraints(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents a collection of Optimization Constraint.
-
add_constraint(constraint_expression)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddConstraint(CATBSTR constraintExpression) As
OptimizationConstraint
Adds a optimization constraint. This parameter must not be read only.
- Parameters
constraint_expression (str) –
- Returns
OptimizationConstraint
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As OptimizationConstraint
Returns an optimization constraint using its index or its name from the
optimization constraints collection.
Parameters:
iIndex
The index or the name of the optimization constraint to retrieve
from the collection of optimization constraints. As a numerics, this index is
the rank of the optimization constraint in the collection. The index of the
first optimization constraint in the collection is 1, and the index of the last
optimization constraint is Count. As a string, it is the name you assigned to
the optimization constraint using the
AnyObject.Name property or when changing the optimization constraint
name by the property panel.
Returns:
The retrieved optimization constraint
Example:
This example retrieves the last optimization constraint in the
optimization constraints collection.
Set lastConstraint = constraints.Item(constraints.Count)
- Parameters
i_index (CATVariant) –
- Returns
OptimizationConstraint
-
remove_constraint(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveConstraint(CATVariant iIndex)
Removes a given optimization constraint using its index or its name from
the optimization constraints collection.
Parameters:
iIndex
the name of the constraint if argument is a string or the index of
the constraint if argument is an integer.
- Parameters
i_index (CATVariant) –
- Returns
None
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
Represents a collection of optimization features.
See also:
-
create_constraints_satisfaction(i_name, i_comment, i_formula_body)
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) –
- Returns
SetOfEquation
-
create_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.
- Returns
Optimization
-
item(i_index)
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 (CATVariant) –
- Returns
AnyObject
parameter
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.parameter.Parameter(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents the parameter.
It can be computed from a relation: formula, program, or check. It is an
abstract object which is not intended to be created as such, but from which the
integer, bolean, real, and string parameters derive. Here is an example to
create one:
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim density As RealParam
Set density = part1.Part.Parameters.CreateReal(“density”, 2.5)
See also:
IntParam, BoolParam, RealParam, StrParam, Formula, Rule, Check
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Comment() As CATBSTR
Returns or sets the parameter object comment.
- Returns
str
-
property
context
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Context() As AnyObject (Read Only)
Returns the context of the parameter : a part, a product, a drafting, a process, depending where
the parameter is.
- Returns
AnyObject
-
property
hidden
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Hidden() As boolean
Returns or sets wether the parameter is hidden or should be hidden. or not.
- Returns
bool
-
property
is_true_parameter
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IsTrueParameter() As boolean (Read Only)
Returns a boolean saying if the parameter is a true one (real, dimension,
string, etc.) or a geometrical one (isolated points, curves, surfaces).
- Returns
bool
-
property
optional_relation
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OptionalRelation() As Relation (Read Only)
Returns the relation that can be used to compute the parameter. As this
relation might not exist, NULL may be returned, so a test is
required.
Example:
This example checks if there is a relation to compute the param1
parameter, and if no relation exists, displays a message
box:
Set param1_rel = param1.OptionalRelation
If param1_rel is Nothing Then
MsgBox “No relation to compute param1”
End If
- Returns
Relation
-
property
read_only
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReadOnly() As boolean (Read Only)
Returns whether the parameter can be modified.
Example:
This example checks if the param1 parameter can be modified, and if it
cannot, displays a message box:
If ( param1.ReadOnly ) Then
MsgBox “No way to change param1”
End If
- Returns
bool
-
property
renamed
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Renamed() As boolean (Read Only)
Returns a boolean saying if the parameter is a renamed parameter or not.
- Returns
bool
-
property
user_access_mode
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UserAccessMode() As long (Read Only)
Returns the user access mode of the parameter.
0
Read only parameter (cannot be destroyed).
1
Read/write parameter (cannot be destroyed).
2
User parameter (can be read, written and destroyed).
Methods
o Sub Rename(CATBSTR iName)
Renames the parameter.
Parameters:
iName
The new name of the parameter. If iName contains “Local:” prefix
the rename will affect the local name. If not, it will affect the global name.
Example:
This example renames the param1 parameter to
PartSeatbodyMinimumThickness:
Call param1.Rename(“PartSeatbodyMinimumThickness”)
o Sub ValuateFromString(CATBSTR iValue)
Valuates a parameter using a string as input. The string depends on
parameter nature :
“True” or “False” for Boolean
a numerical value for Integer or Real
a numerical value with or without a unit for Dimension
Parameters:
iValue
The value to assign to the dimension parameter
Example:
This example sets the value of the existing dimension parameter to a
new value:
dimension.ValuateFromString(“300mm”);
o Func ValueAsString() As CATBSTR
Returns the value of the parameter as a string.
Example:
This example gets the value of the existing dimension parameter and shows
it in a message box
Dim str
str = dimension.ValueAsString;
MessageBox str
Copyright © 1999-2011, Dassault Systèmes. All rights
reserved.
- Returns
int
parameter_set
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.parameter_set.ParameterSet(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents parameter set.
It is the node that contains user parameters.
-
property
all_parameters
Note
- CAA V5 Visual Basic help
AllParameters
o Property AllParameters() As Parameters
Returns all parameters under this set of parameter.
Parameters:
-
property
direct_parameters
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DirectParameters() As Parameters (Read Only)
Returns directly aggregated parameters.
- Returns
Parameters
-
property
parameter_sets
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterSets() As ParameterSets (Read Only)
Returns the children parameter sets.
- Returns
ParameterSets
parameter_sets
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.parameter_sets.ParameterSets(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents a collection of parameter sets.
The ParameterSet object is a neutral object that contains parameters, like the
Parameters node in the specification tree.
The following example shows how to retrieve it on a part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim parameters1 As Parameters
Set parameters1 = part1.Part.Parameters
Dim ParameterSet1 As ParameterSet
Set ParameterSet1 = parameters1.RootParameterSet
Dim parameterSets1 As ParameterSets
Set parameterSets1 = parameterSet1.ParameterSets
This collection is not a collection of all parameter sets of a document, but a
collection of all parameter sets in the current parameter set.
-
create_set(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateSet(CATBSTR iName) As ParameterSet
Creates a set of parameters and appends it to the parameter set which
corresponds to this collection.
- Parameters
i_name (str) –
- Returns
ParameterSet
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As ParameterSet
Returns a parameter set using its index or its name from the ParameterSets
collection.
Parameters:
iIndex
The index or the name of the parameter set to retrieve from the
collection of parameter sets. As a numerics, this index is the rank of the
parameter set in the collection. The index of the first parameter set in the
collection is 1, and the index of the last parameter set is Count. As a string,
it is the name you assigned to the parameter set using the
AnyObject.Name property .
Example:
This example retrieves the parameter set named “Parameters.1” in the
parameterSets collection:
Set theSet = parameterSets.Item(“Parameters.1”)
- Parameters
i_index (CATVariant) –
- Returns
ParameterSet
parameters
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.parameters.Parameters(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents the Parameters collection of the part or the
product.
The following example shows how to retrieve it:
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim parameterList As Parameters
Set parameterList = part1.Part.Parameters
-
all_parameters()
- Returns
list(Parameter())
-
create_boolean(i_name, i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateBoolean(CATBSTR iName,
boolean iValue) As BoolParam
Creates a boolean parameter and adds it to the part’s collection of
parameters.
Parameters:
Example:
This example creates the checked boolean parameter and adds it to the
newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim chk As BooleanParam
Set chk = part1.Part.Parameters.CreateBoolean (“checked”, False)
- Parameters
i_name (str) –
i_value (bool) –
- Returns
BoolParam
-
create_dimension(i_name, i_magnitude, i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateDimension(CATBSTR iName,
CATBSTR iMagnitude,
double iValue) As Dimension
Creates a user dimension and adds it to the part’s collection of
parameters.
Parameters:
iName
iMagnitude
The dimension magnitude. Units are those of the IS system. Valid
magnitudes are:
“LENGTH”: the unit is the meter.
“ANGLE”: the unit is the radian.
The
Dimension object provides the Dimension.ValuateFromString method with
which you may express the value in any unit for a given dimension (see the
example below).
iValue
The dimension value provided as a real number
Example:
This example creates a LENGTH dimension and adds it to the newly
created part. The initial value is expressed in meters. The new value is
expressed in millimeters.
Dim depth As Dimension
Set depth = parameters.CreateDimension(“depth”, “LENGTH”, 20)
depth.ValuateFromString(“300mm”);
- Parameters
i_name (str) –
i_magnitude (str) –
i_value (float) –
- Returns
Dimension
-
create_integer(i_name, i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateInteger(CATBSTR iName,
long iValue) As IntParam
Creates an integer parameter and adds it to the part’s collection of
parameters.
Parameters:
Example:
This example creates the RevisionNumber integer parameter and adds it
to the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim revision As IntParam
Set revision = part1.Part.Parameters.CreateInteger (“RevisionRumber”, 17)
- Parameters
i_name (str) –
i_value (int) –
- Returns
IntParam
-
create_list(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateList(CATBSTR iName) As ListParameter
Creates a list parameter and adds it to the part’s collection of
parameters.
Parameters:
Example:
This example creates the ListName list parameter and adds it to the
newly created part:
Set CATDocs = CATIA.Documents
Set part1 = CATDocs.Add(“CATPart”)
Set list1 = part1.Part.Parameters.CreateList (“ListName”)
- Parameters
i_name (str) –
- Returns
ListParameter
-
create_real(i_name, i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReal(CATBSTR iName,
double iValue) As RealParam
Creates a real parameter and adds it to the part’s collection of
parameters.
Parameters:
Example:
This example creates the ReliabilityRate real parameter and adds it to
the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim rate As RealParam
Set rate = part1.Part.Parameters.CreateReal (“ReliabilityRate”, 2.5 )
- Parameters
i_name (str) –
i_value (float) –
- Returns
RealParam
-
create_set_of_parameters(i_father)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateSetOfParameters(AnyObject iFather)
Creates a set of parameters and appends it to argument iFather.
- Parameters
i_father (AnyObject) –
- Returns
None
-
create_string(i_name, i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateString(CATBSTR iName,
CATBSTR iValue) As StrParam
Creates a string parameter and adds it to the part’s collection of
parameters.
Parameters:
Example:
This example creates the responsible string parameter and adds it to
the newly created part:
Set CATDocs = CATIA.Documents
Set part1 = CATDocs.Add(“CATPart”)
Set density = part1.Part.Parameters.CreateString (“responsible”, “The Boss”)
- Parameters
i_name (str) –
i_value (str) –
- Returns
StrParam
-
get_name_to_use_in_relation(i_object)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNameToUseInRelation(AnyObject iObject) As CATBSTR
Returns a correct name of a feature to use it in a relation.
- Parameters
i_object (AnyObject) –
- Returns
str
-
has_parameters()
- Returns
bool
-
is_parameter(index)
- Parameters
or int index (str) – parameter name or parameter number
- Returns
bool
-
item(index)
Note
- CAA V5 Visual Basic help
Item
o Func Item( CATVariant iIndex) As Parameter
Retrieves a parameter using its index or its name from the from the
Parameters collection.
Parameters:
iIndex
The index or the name of the parameter to retrieve from
the collection of parameters.
As a numeric, this index is the rank of the parameter
in the collection.
The index of the first parameter in the collection is 1, and
the index of the last parameter is Count.
As a string, it is the name you assigned to the parameter using
the
activateLinkAnchor(‘AnyObject’,’Name’,’AnyObject.Name’) property or when
creating the parameter.
Examples:
This example retrieves the last parameter in the parameters
collection:
Set lastParameter = parameters.Item(parameters.Count)
-
remove(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)
Removes a parameter from the Parameters collection.
Parameters:
iIndex
The index or the name of the parameter to remove from the
collection of parameters. As a numerics, this index is the rank of the
parameter in the collection. The index of the first parameter in the collection
is 1, and the index of the last parameter is Count. As a string, it is the name
you assigned to the parameter using the
AnyObject.Name property or when creating the parameter.
Example:
This example removes the “depth” parameter from the parameters
collection.
parameters.Remove(“depth”)
- Parameters
i_index (CATVariant) –
- Returns
None
-
property
root_parameter_set
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RootParameterSet() As ParameterSet (Read Only)
Returns the root parameter set of a document. If it doesn’t exist, it is
created.
- Returns
ParameterSet
-
sub_list(i_object, i_recursively)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func SubList(AnyObject iObject,
boolean iRecursively) As Parameters
Returns a sub-collection of parameters aggregated to an
object.
Parameters:
iObject
The object used to filter the whole parameter collection to get the
resulting sub-collection.
iRecursively
A flag to specify if children parameters are to be searched for in
the returned collection
Example:
This example shows how to retrieve a collection of parameters that
are associated to a Pad.
Dim Parameters1 As Parameters
Set Parameters1 = CATIA.ActiveDocument.Part.Parameters gets the collection of parameters
Dim Body0 As AnyObject
Set Body0 = CATIA.ActiveDocument.Part.Bodies.Item ( “MechanicalTool.1” )
Dim Pad1 As AnyObject
Set Pad1 = Body0.Shapes.Item ( “Pad.1” ) gets the pad Pad.1
Dim Parameters2 As Parameters
Set Parameters2 = Parameters1.SubList(Pad1,TRUE) gets the collection of parameters that
- Parameters
i_object (AnyObject) –
i_recursively (bool) –
- Returns
Parameters
-
property
units
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Units() As Units (Read Only)
Returns the collection of units.
- Returns
Units
real_param
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.real_param.RealParam(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
Represents the real parameter.
The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim density As RealParam
Set density = part1.Part.Parameters.CreateReal(“density”, 2.5)
The real parameter is the base object for dimensions.
See also:
-
get_enumerate_values(o_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetEnumerateValues(CATSafeArrayVariant oSafeArray)
Returns an array containing the different values that the real param can
take in the case of multiple values.
Example:
Dim enumValues () as Variant
ReDim enumValues (aRealParameter.GetEnumerateValuesSize() -
1)
aRealParameter.GetEnumerateValues(enumValues)
For i = LBound(enumValues) to UBound(enumValues)
Next
- Parameters
o_safe_array (tuple) –
- Returns
None
-
get_enumerate_values_size()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetEnumerateValuesSize() As long
Returns the number of enumerate values.
- Returns
int
-
is_equal_to(i_value_to_compare)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsEqualTo(double iValueToCompare) As boolean
Tests the equality of the parameter value with a given
value.
Parameters:
iValueToCompare
The value to compare the parameter value with
Returns:
True
If the current value of the parameter (the one get by the get_Value
property, for dimensions notice that it is not the MKS value) is equal to the
one given in argument. Notice that two values are considered as equal if their
difference is insignificant faced with the two compared values. This method
allows you to avoid problems due to computation
errors.
False
If the two values are different.
- Parameters
i_value_to_compare (float) –
- Returns
bool
-
property
maximum_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaximumTolerance() As double
Returns or sets the value of the maximum tolerance of a parameter. Units
are expressed in the IS unit system.
Example:
This example sets the MaximumTolerance value to 0 if its value is
bigger than 0:
If (Length.MaximumTolerance < 0.0) Then
Length.MaximumTolerance = 0.0
End If
- Returns
float
-
property
minimum_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MinimumTolerance() As double
Returns or sets the value of the minimum tolerance of a parameter. Units
are expressed in the IS unit system.
Example:
This example sets the MinumumTolerance value to 0 if its value is
bigger than 0:
If (Length.MinimumTolerance > 0.0) Then
Length.MinimumTolerance = 0.0
End If
- Returns
float
-
property
range_max
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMax() As double
Returns or sets the value of the upper bound that the parameter object
value can take.
Example:
This example sets the RangeMax value to 0 if its value is smaller than
0:
If (Length.RangeMax < 0.0 and Length.RangeMaxValidity <> 0)
Then
End If
- Returns
float
-
property
range_max_validity
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMaxValidity() As long
Returns or sets the type of the upper bound of the
parameter.
0
the upper bound is meaningless
1
the upper bound can be reached
2
the upper bound cannot be reached
- Returns
int
-
property
range_min
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMin() As double
Returns or sets the value of the lower bound that the parameter object
value can take.
Example:
This example sets the RangeMin value to 0 if its value is bigger than
0:
If (Length.RangeMin > 0.0 and Length.RangeMinValidity <> 0)
Then
End If
- Returns
float
-
property
range_min_validity
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RangeMinValidity() As long
Returns or sets the type of the lower bound of the
parameter.
0
the lower bound is meaningless
1
the lower bound can be reached
2
the lower bound cannot be reached
- Returns
int
-
set_enumerate_values(i_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetEnumerateValues(CATSafeArrayVariant iSafeArray)
Sets an array containing the different values that the real param can take
in the case of multiple values.
- Parameters
i_safe_array (tuple) –
- Returns
None
-
suppress_enumerate_values()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SuppressEnumerateValues()
Resets the status of the object to a single value object.
- Returns
None
-
property
value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As double
Returns or sets the value of the real parameter. Units are expressed in the
IS unit system, except for lengths expressed in millimeters, and angles
expressed in decimal degrees.
Example:
This example sets the density value to 1 if its value is greater than
2.5:
If (density.Value > 2.5) Then
End If
- Returns
float
relation
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.relation.Relation(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
Represents the relation object.
It is an abstract object which is not intended to be created as such, but from
which the check, design table, formula, rule, objects derive.
See also:
Check, DesignTable, Formula, Rule
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Comment() As CATBSTR
Returns or sets the comment associated with the relation. The comment
explains the relation’s purpose. It is passed as the second input argument of
the relation creation methods of the Relations collection.
Example:
This example retrieves the maximummass relation comment and displays it
in a message box:
relcomment = maximummass.Comment
MsgBox “maximummass comment : ” & relcomment
- Returns
str
-
property
context
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Context() As AnyObject (Read Only)
Returns the context of the parameter.
The context of a parameter can be a part, a product, a drafting, or a
process document, depending where the parameter is.
Returns:
See also:
Part, Product, CATIADrawing, CATIAProcess
- Returns
AnyObject
-
get_in_parameter(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInParameter(long iIndex) As AnyObject
Returns an input parameter of the relation.
This method can return an object that is not a parameter, that is, you
cannot handle it as a Parameter object. For example, in a relation
like
Area.1 = area(PartBody/Pad.1/Sketch.1)
the object PartBody/Pad.1/Sketch.1 is a sketch and not a
parameter.
To use such an object, call the Visual Basic TypeName function to retrieve
its real type.
Dim objectType
objectType = TypeName(oParameter)
If objectType = “Parameter” Then
…
Parameters:
iIndex
The searched input parameter index in the
relation.
Legal values: 1 ≤ iIndex ≤
NbInParameters
- Parameters
i_index (int) –
- Returns
AnyObject
-
get_out_parameter(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOutParameter(long iIndex) As Parameter
Returns an output parameter of the relation. Use TypeName method on the
returned parameter to get the real type of the parameter.
Parameters:
iIndex
The searched input parameter index in the
relation.
Legal values: 1 ≤ iIndex ≤
NbOutParameters
- Parameters
i_index (int) –
- Returns
Parameter
-
modify(i_value)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Modify(CATBSTR iValue)
Modifies the relation.
Parameters:
- Parameters
i_value (str) –
- Returns
None
-
property
nb_in_parameters
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NbInParameters() As long (Read Only)
Returns the number of input parameters of the relation.
- Returns
int
-
property
nb_out_parameters
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NbOutParameters() As long (Read Only)
Returns the number of output parameters of the relation.
The output parameters of the relation are those constrained by the
relation.
- Returns
int
-
rename(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Rename(CATBSTR iName)
Renames the relation.
Parameters:
- Parameters
i_name (str) –
- Returns
None
-
property
value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As CATBSTR (Read Only)
Returns the definition of the relation. It returns an empty string if the
relation is not an expressional one (for example for a design table). The
definition is the body to be executed to compute one or several parameters. It
is passed as the last input argument of the relation creation methods of the
Relations collection.
Example:
This example retrieves the maximummass relation definition and displays
it in a message box:
reldef = maximummass.Value
MsgBox “maximummass relation is defined as ” & reldef
- Returns
str
relations
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.relations.Relations(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents the collection of relations of the part or the
product.
A relation computes values. A relation can belong to one of the following
types:
Formula
It combines parameters to compute the value of one output parameter only.
For example, the mass of a cuboid can be the output parameter of a formula,
while the value is computed using the following
parameters:
FormulaBody = (height*width*depth)*density
Program
It combines conditions and actions on parameters to compute one or several
output parameter values. For example, the following is a
program:
ProgramBody = if (mass>2kg) { depth=2mm length=10mm } else { depth=1mm length=5mm }
Check
It only contains conditions on parameter values. For example, the following
is a check:
The parameters should be defined previously.
The following example shows how to retrieve the collection of relations from a
newly created part document:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part As Document
Set part = CATDocs.Add(“CATPart”)
Dim relations As Relations
Set relations = part.Relations
See also:
Formula, Rule, Check, DesignTable
-
create_check(i_name, i_comment, i_check_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateCheck(CATBSTR iName,
CATBSTR iComment,
CATBSTR iCheckBody) As Check
Creates a check relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the check
iCheckBody
Returns:
Example:
This example creates the maximummass check relation and adds it to the
newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim massCheck As Check
Set massCheck = part.Relations.CreateCheck
(“maximummass”,
“Ensures that the mass is less than 10
kg”,
“mass<10kg”)
- Parameters
i_name (str) –
i_comment (str) –
i_check_body (str) –
- Returns
Check
-
create_design_table(i_name, i_comment, i_copy_mode, i_sheet_path)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateDesignTable(CATBSTR iName,
CATBSTR iComment,
boolean iCopyMode,
CATBSTR iSheetPath) As DesignTable
Creates a design table based on a file organized in an vertical way and
adds it to the part’s collection of relations.
Parameters:
iName
iComment
A description of the design table
iCopyMode
Returns:
Example:
This example creates the dt design table and adds it to the newly
created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim designtable As DesignTable
Set designtable = part.Relations.CreateDesignTable
(“dt”,
“Ensures that the mass is less than 10
kg”,
TRUE,
“/u/users/client/data/sheet.txt”)
- Parameters
i_name (str) –
i_comment (str) –
i_copy_mode (bool) –
i_sheet_path (str) –
- Returns
DesignTable
-
create_formula(i_name, i_comment, i_output_parameter, i_formula_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateFormula(CATBSTR iName,
CATBSTR iComment,
Parameter iOutputParameter,
CATBSTR iFormulaBody) As Formula
Creates a formula relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the formula
iOutputParameter
The parameter which stores the result of the formula
iFormulaBody
Returns:
Example:
This example creates the computemass formula relation and adds it to
the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim massFormula As Formula
Set massFormula = part.Relations.CreateFormula
(“computemass”,
“Computes the cuboid mass”,
“(height*width*depth)*density”)
- Parameters
-
- Returns
Formula
-
create_horizontal_design_table(i_name, i_comment, i_copy_mode, i_sheet_path)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateHorizontalDesignTable(CATBSTR iName,
CATBSTR iComment,
boolean iCopyMode,
CATBSTR iSheetPath) As DesignTable
Creates a design table based on a file organized in an horizontal way and
adds it to the part’s collection of relations.
Parameters:
iName
iComment
A description of the design table
iCopyMode
Returns:
Example:
This example creates the dt design table and adds it to the newly
created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim designtable As DesignTable
Set designtable = part.Relations.CreateHorizontalDesignTable
(“dt”,
“Ensures that the mass is less than 10
kg”,
TRUE,
“/u/users/client/data/horizontalsheet.txt”)
- Parameters
i_name (str) –
i_comment (str) –
i_copy_mode (bool) –
i_sheet_path (str) –
- Returns
DesignTable
-
create_law(i_name, i_comment, i_law_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateLaw(CATBSTR iName,
CATBSTR iComment,
CATBSTR iLawBody) As Law
Creates a law relation and adds it to the part’s collection of
relations.
Parameters:
Returns:
- Parameters
i_name (str) –
i_comment (str) –
i_law_body (str) –
- Returns
Law
-
create_program(i_name, i_comment, i_program_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateProgram(CATBSTR iName,
CATBSTR iComment,
CATBSTR iProgramBody) As Rule
Creates a program relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the program
iProgramBody
Returns:
Example:
This example creates the selectdepth program relation and adds it to
the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim depthProgram As Program
Set depthProgram = part.Relations.CreateProgram
(“selectdepth”,
“Select depth with respect to
mass”,
“if (mass>2kg) { depth=2mm } else { depth=1 mm
}”)
- Parameters
i_name (str) –
i_comment (str) –
i_program_body (str) –
- Returns
Rule
-
create_rule_base(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateRuleBase(CATBSTR iName) As Relation
Creates a rulebase.
Parameters:
iName
The name of the rulebase.
Returns:
See also:
- Parameters
i_name (str) –
- Returns
Relation
-
create_set_of_equations(i_name, i_comment, i_formula_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateSetOfEquations(CATBSTR iName,
CATBSTR iComment,
CATBSTR iFormulaBody) As SetOfEquation
Creates a set of equations.
Parameters:
iName
The name of the set of equation.
iComment
The comment of the set of equation.
iFormulaBody
The body of the set of equation ” a==b+4; c ≤ 90”.
Returns:
The created set of equations
- Parameters
i_name (str) –
i_comment (str) –
i_formula_body (str) –
- Returns
SetOfEquation
-
create_set_of_relations(i_parent)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateSetOfRelations(AnyObject iParent)
Creates a set of relations and appends it to a parent
object.
Parameters:
iParent
The object to which the set is appended
- Parameters
i_parent (AnyObject) –
- Returns
None
-
generate_xml_report_for_checks(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GenerateXMLReportForChecks(CATBSTR iName)
Generates an XML Report on all checks in the current
document.
Parameters:
- Parameters
i_name (str) –
- Returns
None
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Relation
Retrieves a relation using its index or its name from the Relations
collection.
Parameters:
iIndex
The index or the name of the relation to retrieve from the
collection of relations. As a numerics, this index is the rank of the relation
in the collection. The index of the first relation in the collection is 1, and
the index of the last relation is Count. As a string, it is the name you
assigned to the relation using the
AnyObject.Name property or when creating the relation.
Returns:
Example:
This example retrieves the last relation in the relations
collection.
Dim lastRelation As Relation
Set lastRelation = relations.Item(relations.Count)
- Parameters
i_index (CATVariant) –
- Returns
Relation
-
property
optimizations
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Optimizations() As Optimizations (Read Only)
Returns the optimization collection.
It can be empty if no optimization is defined in the
document.
This property is available only when the Product Engineering Optimizer
license is available.
- Returns
Optimizations
-
remove(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)
Removes a relation from the Relations collection.
Parameters:
iIndex
The index or the name of the relation to remove from the collection
of relations. As a numerics, this index is the rank of the relation in the
collection. The index of the first relation in the collection is 1, and the
index of the last relation is Count. As a string, it is the name you assigned
to the relation using the
AnyObject.Name property or when creating the relation.
Example:
This example removes the relation named density from the relations
collection.
relations.Remove(“density”)
- Parameters
i_index (CATVariant) –
- Returns
None
-
sub_list(i_feature, i_recursively)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func SubList(AnyObject iFeature,
boolean iRecursively) As Relations
Returns a sub-collection of relations aggregated to an
object.
Parameters:
iFeature
The object used to filter the the whole relation collection to get
the resulting sub-collection.
iRecursively
A flag to specify if children parameters are to be searched for in
the returned collection
Returns:
The resulting sub-collection
Example:
This example shows how to get a collection of relations that are under
a Pad
Dim Relations1 As Relations
Set Relations1 = CATIA.ActiveDocument.Part.Relations’ gets the collection of relations in the
Dim Body0 As AnyObject
Set Body0 = CATIA.ActiveDocument.Part.Bodies.Item ( “MechanicalTool.1” )
Dim Pad1 As AnyObject
Set Pad1 = Body0.Shapes.Item ( “Pad.1” ) ‘ gets the pad Pad.1
Dim Relations2 As Relations
Set Relations2 = Relations1.SubList(Pad1, TRUE) ‘ gets the collection of relations that are
- Parameters
i_feature (AnyObject) –
i_recursively (bool) –
- Returns
Relations
report_generation_sheet_setting_att
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.report_generation_sheet_setting_att.ReportGenerationSheetSettingAtt(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents the collection of relations of the part or the
product.
A relation computes values. A relation can belong to one of the following
types:
Formula
It combines parameters to compute the value of one output parameter only.
For example, the mass of a cuboid can be the output parameter of a formula,
while the value is computed using the following
parameters:
FormulaBody = (height*width*depth)*density
Program
It combines conditions and actions on parameters to compute one or several
output parameter values. For example, the following is a
program:
ProgramBody = if (mass>2kg) { depth=2mm length=10mm } else { depth=1mm length=5mm }
Check
It only contains conditions on parameter values. For example, the following
is a check:
The parameters should be defined previously.
The following example shows how to retrieve the collection of relations from a
newly created part document:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part As Document
Set part = CATDocs.Add(“CATPart”)
Dim relations As Relations
Set relations = part.Relations
See also:
Formula, Rule, Check, DesignTable
-
create_check(i_name, i_comment, i_check_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateCheck(CATBSTR iName,
CATBSTR iComment,
CATBSTR iCheckBody) As Check
Creates a check relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the check
iCheckBody
Returns:
Example:
This example creates the maximummass check relation and adds it to the
newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim massCheck As Check
Set massCheck = part.Relations.CreateCheck
(“maximummass”,
“Ensures that the mass is less than 10
kg”,
“mass<10kg”)
- Parameters
i_name (str) –
i_comment (str) –
i_check_body (str) –
- Returns
Check
-
create_design_table(i_name, i_comment, i_copy_mode, i_sheet_path)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateDesignTable(CATBSTR iName,
CATBSTR iComment,
boolean iCopyMode,
CATBSTR iSheetPath) As DesignTable
Creates a design table based on a file organized in an vertical way and
adds it to the part’s collection of relations.
Parameters:
iName
iComment
A description of the design table
iCopyMode
Returns:
Example:
This example creates the dt design table and adds it to the newly
created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim designtable As DesignTable
Set designtable = part.Relations.CreateDesignTable
(“dt”,
“Ensures that the mass is less than 10
kg”,
TRUE,
“/u/users/client/data/sheet.txt”)
- Parameters
i_name (str) –
i_comment (str) –
i_copy_mode (bool) –
i_sheet_path (str) –
- Returns
DesignTable
-
create_formula(i_name, i_comment, i_output_parameter, i_formula_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateFormula(CATBSTR iName,
CATBSTR iComment,
Parameter iOutputParameter,
CATBSTR iFormulaBody) As Formula
Creates a formula relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the formula
iOutputParameter
The parameter which stores the result of the formula
iFormulaBody
Returns:
Example:
This example creates the computemass formula relation and adds it to
the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim massFormula As Formula
Set massFormula = part.Relations.CreateFormula
(“computemass”,
“Computes the cuboid mass”,
“(height*width*depth)*density”)
- Parameters
-
- Returns
Formula
-
create_horizontal_design_table(i_name, i_comment, i_copy_mode, i_sheet_path)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateHorizontalDesignTable(CATBSTR iName,
CATBSTR iComment,
boolean iCopyMode,
CATBSTR iSheetPath) As DesignTable
Creates a design table based on a file organized in an horizontal way and
adds it to the part’s collection of relations.
Parameters:
iName
iComment
A description of the design table
iCopyMode
Returns:
Example:
This example creates the dt design table and adds it to the newly
created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim designtable As DesignTable
Set designtable = part.Relations.CreateHorizontalDesignTable
(“dt”,
“Ensures that the mass is less than 10
kg”,
TRUE,
“/u/users/client/data/horizontalsheet.txt”)
- Parameters
i_name (str) –
i_comment (str) –
i_copy_mode (bool) –
i_sheet_path (str) –
- Returns
DesignTable
-
create_law(i_name, i_comment, i_law_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateLaw(CATBSTR iName,
CATBSTR iComment,
CATBSTR iLawBody) As Law
Creates a law relation and adds it to the part’s collection of
relations.
Parameters:
Returns:
- Parameters
i_name (str) –
i_comment (str) –
i_law_body (str) –
- Returns
Law
-
create_program(i_name, i_comment, i_program_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateProgram(CATBSTR iName,
CATBSTR iComment,
CATBSTR iProgramBody) As Rule
Creates a program relation and adds it to the part’s collection of
relations.
Parameters:
iName
iComment
A description of the program
iProgramBody
Returns:
Example:
This example creates the selectdepth program relation and adds it to
the newly created part:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim partdoc As Document
Set partdoc = CATDocs.Add(“CATPart”)
Dim part As Part
Set part = partdoc.Part
Dim depthProgram As Program
Set depthProgram = part.Relations.CreateProgram
(“selectdepth”,
“Select depth with respect to
mass”,
“if (mass>2kg) { depth=2mm } else { depth=1 mm
}”)
- Parameters
i_name (str) –
i_comment (str) –
i_program_body (str) –
- Returns
Rule
-
create_rule_base(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateRuleBase(CATBSTR iName) As Relation
Creates a rulebase.
Parameters:
iName
The name of the rulebase.
Returns:
See also:
- Parameters
i_name (str) –
- Returns
Relation
-
create_set_of_equations(i_name, i_comment, i_formula_body)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateSetOfEquations(CATBSTR iName,
CATBSTR iComment,
CATBSTR iFormulaBody) As SetOfEquation
Creates a set of equations.
Parameters:
iName
The name of the set of equation.
iComment
The comment of the set of equation.
iFormulaBody
The body of the set of equation ” a==b+4; c ≤ 90”.
Returns:
The created set of equations
- Parameters
i_name (str) –
i_comment (str) –
i_formula_body (str) –
- Returns
SetOfEquation
-
create_set_of_relations(i_parent)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateSetOfRelations(AnyObject iParent)
Creates a set of relations and appends it to a parent
object.
Parameters:
iParent
The object to which the set is appended
- Parameters
i_parent (AnyObject) –
- Returns
None
-
generate_xml_report_for_checks(i_name)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GenerateXMLReportForChecks(CATBSTR iName)
Generates an XML Report on all checks in the current
document.
Parameters:
- Parameters
i_name (str) –
- Returns
None
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Relation
Retrieves a relation using its index or its name from the Relations
collection.
Parameters:
iIndex
The index or the name of the relation to retrieve from the
collection of relations. As a numerics, this index is the rank of the relation
in the collection. The index of the first relation in the collection is 1, and
the index of the last relation is Count. As a string, it is the name you
assigned to the relation using the
AnyObject.Name property or when creating the relation.
Returns:
Example:
This example retrieves the last relation in the relations
collection.
Dim lastRelation As Relation
Set lastRelation = relations.Item(relations.Count)
- Parameters
i_index (CATVariant) –
- Returns
Relation
-
property
optimizations
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Optimizations() As Optimizations (Read Only)
Returns the optimization collection.
It can be empty if no optimization is defined in the
document.
This property is available only when the Product Engineering Optimizer
license is available.
- Returns
Optimizations
-
remove(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)
Removes a relation from the Relations collection.
Parameters:
iIndex
The index or the name of the relation to remove from the collection
of relations. As a numerics, this index is the rank of the relation in the
collection. The index of the first relation in the collection is 1, and the
index of the last relation is Count. As a string, it is the name you assigned
to the relation using the
AnyObject.Name property or when creating the relation.
Example:
This example removes the relation named density from the relations
collection.
relations.Remove(“density”)
- Parameters
i_index (CATVariant) –
- Returns
None
-
sub_list(i_feature, i_recursively)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func SubList(AnyObject iFeature,
boolean iRecursively) As Relations
Returns a sub-collection of relations aggregated to an
object.
Parameters:
iFeature
The object used to filter the the whole relation collection to get
the resulting sub-collection.
iRecursively
A flag to specify if children parameters are to be searched for in
the returned collection
Returns:
The resulting sub-collection
Example:
This example shows how to get a collection of relations that are under
a Pad
Dim Relations1 As Relations
Set Relations1 = CATIA.ActiveDocument.Part.Relations’ gets the collection of relations in
Dim Body0 As AnyObject
Set Body0 = CATIA.ActiveDocument.Part.Bodies.Item ( “MechanicalTool.1” )
Dim Pad1 As AnyObject
Set Pad1 = Body0.Shapes.Item ( “Pad.1” ) ‘ gets the pad Pad.1
Dim Relations2 As Relations
Set Relations2 = Relations1.SubList(Pad1, TRUE) ‘ gets the collection of relations that are
- Parameters
i_feature (AnyObject) –
i_recursively (bool) –
- Returns
Relations
rule
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.rule.Rule(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
Represents the program relation.
The following example shows how to create a program that selects a depth with
respect to a mass value. The depth and mass parameters should exist before the
creation of the program (also called Rule) object.
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim mass As RealParam
Set mass = part1.Part.Parameters.CreateReal(“mass”, 5.)
Dim depth As RealParam
Set depth = part1.Part.Parameters.CreateReal(“depth”, 0.)
Dim selectdepth As Relation
Set selectdepth = part1.Part.Relations.CreateProgram
(“select_depth”,
“Select depth with respect to mass”,
“if (mass>2kg) { depth=2mm } else { depth=1mm
}”)
Copyright © 1999-2011, Dassault Systèmes. All rights reserved.
set_of_equation
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.set_of_equation.SetOfEquation(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.KnowledgeObject
KnowledgeInterfaces.KnowledgeActivateObject
KnowledgeInterfaces.Relation
Represents the set of equations object.
-
get_max_calculation_time()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMaxCalculationTime() As long
Returns the maximum time of the model calculations.
- Returns
int
-
get_precision()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPrecision() As double
Returns the calculation precision.
- Returns
float
-
get_symbolc_transformations()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSymbolcTransformations() As boolean
Returns whether the Gauss method is used during the symbolic
transformation.
TRUE if the Gauss method is used during the symbolic transformation.
- Returns
bool
-
is_stop_dialog()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsStopDialog() As boolean
Returns whether the “Stop Dialog” will be shown during
calculations.
TRUE if the ‘Stop Dialog’ will be shown during calculations.
- Returns
bool
-
set_max_calculation_time(i_max_time)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMaxCalculationTime(long iMaxTime)
Sets a maximum time to the model calculations.
- Parameters
i_max_time (int) –
- Returns
None
-
set_parameter_as_input(i_parameter)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterAsInput(Parameter iParameter)
Specifies that the parameter must be considered as input
parameter.
Parameters:
iParameter
The parameter to set up as input of the
SetOfEquationObject
- Parameters
i_parameter (Parameter) –
- Returns
None
-
set_parameter_as_output(i_parameter)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterAsOutput(Parameter iParameter)
Specifies that the parameter must be considered as an output
parameter.
Parameters:
iParameter
The parameter to set up as output of the
SetOfEquationObject
- Parameters
i_parameter (Parameter) –
- Returns
None
-
set_precision(i_eps)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPrecision(double iEps)
Sets the calculation precision.
Parameters:
iEps
a precision
Legal values: 1e-10 ≤ iEps ≤ 0.1
- Parameters
i_eps (float) –
- Returns
None
-
use_stop_dialog(i_used)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub UseStopDialog(boolean iUsed)
Specifies whether the ‘Stop Dialog’ should be shown during
calculations.
TRUE to show the ‘Stop Dialog’ during calculations.
- Parameters
i_used (bool) –
- Returns
None
-
use_symbolc_transformations(i_gauss)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub UseSymbolcTransformations(boolean iGauss)
Specifies whether the Gauss method should be used during the symbolic
transformation.
TRUE to use the Gauss method during the symbolic transformation.
- Parameters
i_gauss (bool) –
- Returns
None
str_param
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.str_param.StrParam(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
KnowledgeInterfaces.Parameter
Represents the string parameter.
The following example shows how to create it:
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add(“CATPart”)
Dim material As String
Set material = part1.Parameters.CreateString(“material”, “glass”)
-
get_enumerate_values(o_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetEnumerateValues(CATSafeArrayVariant oSafeArray)
Returns an array containing the different values that the real param can
take in the case of multiple values.
Example:
Dim enumValues () as Variant
ReDim enumValues (aStrParameter.GetEnumerateValuesSize() -
1)
aStrParameter.GetEnumerateValues(enumValues)
For i = LBound(enumValues) to UBound(enumValues)
Next
- Parameters
o_safe_array (tuple) –
- Returns
None
-
get_enumerate_values_size()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetEnumerateValuesSize() As long
Returns the number of enumerate values.
- Returns
int
-
set_enumerate_values(i_safe_array)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetEnumerateValues(CATSafeArrayVariant iSafeArray)
Sets an array containing the different values that the StrParam object can
take in the case of multiple values.
Parameters:
The
array of enumerated values.
- Parameters
i_safe_array (tuple) –
- Returns
None
-
suppress_enumerate_values()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SuppressEnumerateValues()
Resets the status of the object to a single value object.
- Returns
None
-
property
value
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As CATBSTR
Returns or sets the string parameter value.
Example:
This example returns in myValue the value of the string parameter
material:
- Returns
str
tolerance_sheet_setting_att
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.tolerance_sheet_setting_att.ToleranceSheetSettingAtt(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
The interface to access a CATIAToleranceSheetSettingAtt.
This interface may be used to read or modify in the CATIA/Tools/Option the
settings values of Tolerance sheet.
-
property
angle_max_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleMaxTolerance() As double
Returns or sets the AngleMaxTolerance parameter.
Role:Return or Set the AngleMaxTolerance parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oAngleMaxTolerance
The angle maximum tolerance value.
- Returns
float
-
property
angle_min_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleMinTolerance() As double
Returns or sets the AngleMinTolerance parameter.
Role:Return or Set the AngleMinTolerance parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oAngleMinTolerance
The angle minimum tolerance value.
- Returns
float
-
property
default_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultTolerance() As short
Returns or sets the DefaultTolerance parameter.
Role:Return or Set the DefaultTolerance parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oDefaultTolerance
Legal values:
0 : to not accept a default tolerance
1 : to accept a default tolerance.
- Returns
enum
-
get_angle_max_tolerance_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngleMaxToleranceInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the AngleMaxTolerance
parameter.
Role:Retrieves the state of the AngleMaxTolerance parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_angle_min_tolerance_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngleMinToleranceInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the AngleMinTolerance
parameter.
Role:Retrieves the state of the AngleMinTolerance parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_default_tolerance_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultToleranceInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DefaultTolerance
parameter.
Role:Retrieves the state of the DefaultTolerance parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_length_max_tolerance_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLengthMaxToleranceInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the LengthMaxTolerance
parameter.
Role:Retrieves the state of the LengthMaxTolerance parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_length_min_tolerance_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLengthMinToleranceInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the LengthMinTolerance
parameter.
Role:Retrieves the state of the LengthMinTolerance parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
property
length_max_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LengthMaxTolerance() As double
Returns or sets the LengthMaxTolerance parameter.
Role:Return or Set the LengthMaxTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oLengthMaxTolerance
The length maximum tolerance value.
- Returns
float
-
property
length_min_tolerance
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LengthMinTolerance() As double
Returns or sets the LengthMinTolerance parameter.
Role:Return or Set the LengthMinTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oLengthMinTolerance
The length minimum tolerance value.
- Returns
float
-
set_angle_max_tolerance_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngleMaxToleranceLock(boolean iLocked)
Locks or unlocks the AngleMaxTolerance parameter.
Role:Locks or unlocks the AngleMaxTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_angle_min_tolerance_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngleMinToleranceLock(boolean iLocked)
Locks or unlocks the AngleMinTolerance parameter.
Role:Locks or unlocks the AngleMinTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_default_tolerance_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultToleranceLock(boolean iLocked)
Locks or unlocks the DefaultTolerance parameter.
Role:Locks or unlocks the DefaultTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_length_max_tolerance_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLengthMaxToleranceLock(boolean iLocked)
Locks or unlocks the LengthMaxTolerance parameter.
Role:Locks or unlocks the LengthMaxTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_length_min_tolerance_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLengthMinToleranceLock(boolean iLocked)
Locks or unlocks the LengthMinTolerance parameter.
Role:Locks or unlocks the LengthMinTolerance parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
unit
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.unit.Unit(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents CATIAUnit object.
This interface allows convertion.
-
convert_from_mks(i_value_in_mks)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ConvertFromMKS(double iValueInMKS) As double
Convert the initial value (expressed in MKS unit) in its equivalent in the
current unit.
Parameters:
iValueInThisUnit
The initial value in MKS unit.
oValueInMKS
The final value in the current unit.
- Parameters
i_value_in_mks (float) –
- Returns
float
-
convert_from_storage_unit(i_value_in_storage_unit)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ConvertFromStorageUnit(double iValueInStorageUnit) As
double
Convert the initial value (expressed in storage unit) in its equivalent in
the current unit.
Parameters:
iValueInStorageUnit
The initial value in storage unit.
oValueInThisUnit
The final value in the current unit.
- Parameters
i_value_in_storage_unit (float) –
- Returns
float
-
convert_to_mks(i_value_in_this_unit)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ConvertToMKS(double iValueInThisUnit) As double
Convert the initial value in its equivalent in MKS unit.
Parameters:
iValueInThisUnit
The initial value in the current unit.
oValueInMKS
The final value in the corresponding MKS unit.
- Parameters
i_value_in_this_unit (float) –
- Returns
float
-
convert_to_storage_unit(i_value_in_this_unit)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ConvertToStorageUnit(double iValueInThisUnit) As
double
Convert the initial value in its equivalent in storage
unit.
Parameters:
iValueInThisUnit
The initial value in the current unit.
oValueInStorageUnit
The final value in the corresponding storage unit.
- Parameters
i_value_in_this_unit (float) –
- Returns
float
-
property
magnitude
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Magnitude() As CATBSTR (Read Only)
Returns the magnitude associated to the unit.
- Returns
str
-
property
symbol
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Symbol() As CATBSTR (Read Only)
Returns the symbol associated to the unit.
- Returns
str
units
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.units.Units(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
Represents the collection of Units.
This collection can be retrieved via any collection of parameters (method
Units).
-
item(i_index)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Unit
Returns a unit using its index or its name from the from the Parameters
collection.
Parameters:
iIndex
The index or the name of the unit to retrieve from the collection
of parameters. As a numerics, this index is the rank of the unit in the
collection. The index of the first unit in the collection is 1, and the index
of the last parameter is Count. As a string, it is the name you assigned to the
parameter using the
AnyObject.Name property or when creating the parameter.
Example:
This example retrieves the millimeter unit in the units
collection:
Set unitmm = units.Item(“mm”)
- Parameters
i_index (CATVariant) –
- Returns
Unit
units_sheet_setting_att
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.units_sheet_setting_att.UnitsSheetSettingAtt(com_object)
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknown
The interface to access a CATIAUnitsSheetSettingAtt.
This interface may be used to read or modify in the CATIA/Tools/Option the
settings values of Units sheet.
-
commit_for_units()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CommitForUnits()
Implements a function from an interface.
See also:
UnitsSheetSettingAtt.CommitForUnits
- Returns
None
-
property
display_trailing_zeros
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayTrailingZeros() As short
Returns or sets the DisplayTrailingZeros parameter.
Role:Return or Set the DisplayTrailingZeros parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oDisplayTrailingZeros
Legal values:
0 : to not display trailing zeros
1 : to display trailing zeros.
- Returns
enum
-
property
exp_notation_values_greater
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExpNotationValuesGreater() As double
Returns or sets the ExpNotationValuesGreater parameter.
Role:Return or Set the ExpNotationValuesGreater parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.
Parameters:
oExpNotationValuesGreater
The minimum value for exponential notation values.
- Returns
float
-
property
exp_notation_values_lower
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExpNotationValuesLower() As double
Returns or sets the ExpNotationValuesLower parameter.
Role:Return or Set the ExpNotationValuesGreater parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.
Parameters:
oExpNotationValuesLower
The maximum value for exponential notation values.
- Returns
float
-
get_decimal_read_only(i_magnitude_name, o_decimal_place_read_only)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDecimalReadOnly(CATBSTR iMagnitudeName,
double oDecimalPlaceReadOnly)
Returns the number of decimals for ReadOnly number.
- Parameters
-
- Returns
None
-
get_decimal_read_write(i_magnitude_name, o_decimal_place_read_write)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDecimalReadWrite(CATBSTR iMagnitudeName,
double oDecimalPlaceReadWrite)
Returns the number of decimals for ReadWrite number.
- Parameters
-
- Returns
None
-
get_dimensions_display_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDimensionsDisplayInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves information about the DimensionsDisplay setting
parameter.
Refer to SettingController for a detailed description.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_display_trailing_zeros_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayTrailingZerosInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the DisplayTrailingZeros
parameter.
Role:Retrieves the state of the DisplayTrailingZeros parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_exp_notation_values_greater_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExpNotationValuesGreaterInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ExpNotationValuesGreater
parameter.
Role:Retrieves the state of the ExpNotationValuesGreater parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_exp_notation_values_lower_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExpNotationValuesLowerInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the ExpNotationValuesLower
parameter.
Role:Retrieves the state of the ExpNotationValuesLower parameter in the
current environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_list_of_magnitudes_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetListOfMagnitudesInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves information about the ListOfMagnitudes setting
parameter.
Refer to SettingController for a detailed description.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
get_magnitude_values(i_magnitude_name, o_unit_name, o_decimal_place_read_write, o_decimal_place_read_only)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetMagnitudeValues(CATBSTR iMagnitudeName,
CATBSTR oUnitName,
double oDecimalPlaceReadWrite,
double oDecimalPlaceReadOnly)
Returns the Magnitude parameters.
Ensure consistency with the C++ interface to which the work is delegated.
- Parameters
-
- Returns
None
-
get_same_display_info(io_admin_level, io_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSameDisplayInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean
Retrieves environment informations for the SameDisplay
parameter.
Role:Retrieves the state of the SameDisplay parameter in the current
environment.
Parameters:
ioAdminLevel
If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.
ioLocked
Indicates if the parameter has been locked.
Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
- Parameters
io_admin_level (str) –
io_locked (str) –
- Returns
bool
-
property
list_of_magnitudes
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ListOfMagnitudes() As CATSafeArrayVariant (Read
Only)
Returns or sets the ListOfMagnitudes parameter.
Ensure consistency with the C++ interface to which the work is delegated.
- Returns
tuple
-
property
list_of_magnitudes_size
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ListOfMagnitudesSize() As double (Read Only)
Returns or sets the ListOfMagnitudesSize parameter.
Ensure consistency with the C++ interface to which the work is delegated.
- Returns
float
-
reset_to_admin_values_for_units()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ResetToAdminValuesForUnits()
Implements a function from an interface.
See also:
UnitsSheetSettingAtt.ResetToAdminValuesForUnits
- Returns
None
-
rollback_for_units()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RollbackForUnits()
Implements a function from an interface.
See also:
UnitsSheetSettingAtt.RollbackForUnits
- Returns
None
-
property
same_display
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SameDisplay() As short
Returns or sets the SameDisplay parameter.
Role:Return or Set the SameDisplay parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
oSameDisplay
Legal values:
0 : to not display same display
1 : to display same display.
- Returns
enum
-
save_repository_for_units()
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SaveRepositoryForUnits()
Implements a function from an interface.
See also:
UnitsSheetSettingAtt.SaveRepositoryForUnits
- Returns
None
-
set_dimensions_display_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDimensionsDisplayLock(boolean iLocked)
Locks or unlocks the DimensionsDisplay setting parameter.
Refer to SettingController for a detailed description.
- Parameters
i_locked (bool) –
- Returns
None
-
set_display_trailing_zeros_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayTrailingZerosLock(boolean iLocked)
Deprecated:
V5R15. Use SetDimensionsDisplayLock. Locks or unlocks the
DisplayTrailingZeros parameter.
Role:Locks or unlocks the DisplayTrailingZeros parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_exp_notation_values_greater_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExpNotationValuesGreaterLock(boolean iLocked)
Deprecated:
V5R15. Use SetSameDisplayLock. Locks or unlocks the
ExpNotationValuesGreater parameter.
Role:Locks or unlocks the ExpNotationValuesGreater parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_exp_notation_values_lower_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExpNotationValuesLowerLock(boolean iLocked)
Deprecated:
V5R15. Use SetDimensionsDisplayLock. Locks or unlocks the
ExpNotationValuesLower parameter.
Role:Locks or unlocks the ExpNotationValuesLower parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None
-
set_list_of_magnitudes_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetListOfMagnitudesLock(boolean iLocked)
Locks or unlocks the ListOfMagnitudes setting parameter.
Refer to SettingController for a detailed description.
- Parameters
i_locked (bool) –
- Returns
None
-
set_magnitude_values(i_magnitude_name, i_unit_name, i_decimal_place_read_write, i_decimal_place_read_only)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMagnitudeValues(CATBSTR iMagnitudeName,
CATBSTR iUnitName,
double iDecimalPlaceReadWrite,
double iDecimalPlaceReadOnly)
Sets the Magnitude parameters.
Ensure consistency with the C++ interface to which the work is delegated.
- Parameters
-
- Returns
None
-
set_same_display_lock(i_locked)
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSameDisplayLock(boolean iLocked)
Deprecated:
V5R15. Use SetDimensionsDisplayLock. Locks or unlocks the SameDisplay
parameter.
Role:Locks or unlocks the SameDisplay parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.
Parameters:
iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
- Parameters
i_locked (bool) –
- Returns
None