pycatia.knowledge_interfaces.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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.KnowledgeObjectKnowledgeInterfaces.KnowledgeActivateObjectKnowledgeInterfaces.RelationDesignTableRepresents the DesignTable object.- add_association(i_parameter: Parameter, i_sheet_column: str) None ¶
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 thedesign table. This method does nothing if the column does not exist or if thetype of the parameter isn t compliant with the columntype.Parameters:iParameterThe parameter.iSheetColumnThe name of the column to be associated with theparameter.
- Parameters:
i_parameter (Parameter) –
i_sheet_column (str) –
- Return type:
None
- add_new_row() None ¶
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 associatedparameters. ##### Since V5R14 ##### If the file contains at least one empty row between two notempty rows, the behavior of this method is the same for Excel and Text files : => the new rowcontaining the current parameters values replaces the first empty row found from the beginning ofthe file. RQ : before R14, for text files, the new row was appended at the end of the file. Theempty rows were never filed by this way, so that the new row was not visible in Design Tabledialog.Returns:S_OK if succeeded, E_FAIL else.
- Return type:
None
- cell_as_string(i_row: int, i_column: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func CellAsString(short iRow,short iColumn) As CATBSTRReturns the content of a specific cell.Parameters:iRowthe index of the row where the cell is located.iColumnthe index of the column where the cell is located.
- Parameters:
i_row (int) –
i_column (int) –
- Return type:
str
- property columns_nb: int¶
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.
- Return type:
int
- property configuration: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Configuration() As shortReturns or sets the current configuration. Legal values: 1 toConfigurationsNb.
- Return type:
int
- property configurations_nb: int¶
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.
- Return type:
int
- property copy_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property CopyMode() As booleanReturns or sets whether the data contained in the file must be includedinside the CATIA model.
- Return type:
bool
- property file_path: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FilePath() As CATBSTRReturns or sets the path of the design table (read/write property).
- Return type:
str
- remove_association(i_sheet_column: str) None ¶
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 isnt associated or if it doesn t exist.Parameters:iSheetColumnThe name of an associated column.
- Parameters:
i_sheet_column (str) –
- Return type:
None
- synchronize() None ¶
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 managedin Enovia LCA, copies this file on local disk, and synchronizes design tablecontent
- Return type:
None