All Frameworks  Object Hierarchy  This Framework  Indexes   

DesignTable (Object)

Represents the DesignTable object.

Property Index

ColumnsNb
Returns the nb of columns in the design table file.
Configuration
Returns or sets the current configuration.
ConfigurationsNb
Returns the number of design table configurations.
CopyMode
Returns or sets whether the data contained in the file must be included inside the CATIA model.
FilePath
Returns or sets the path of the design table (read/write property).

Method Index

AddAssociation
Adds an association between a parameter iParameter and a column of the design table.
AddNewRow
Adds a row in the design table source file.
CellAsString
Returns the content of a specific cell.
RemoveAssociation
Removes an existing association.
Synchronize
Synchronizes the design table with its source file.

Properties


o Property ColumnsNb() As (Read Only)
Returns the nb of columns in the design table file.
o Property Configuration() As
Returns or sets the current configuration. Legal values: 1 to ConfigurationsNb.
o Property ConfigurationsNb() As (Read Only)
Returns the number of design table configurations.
o Property CopyMode() As
Returns or sets whether the data contained in the file must be included inside the CATIA model.
o Property FilePath() As
Returns or sets the path of the design table (read/write property).

Methods


o Sub AddAssociation( iParameter,
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
The parameter.
iSheetColumn
The name of the column to be associated with the parameter.
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.
o Func CellAsString( iRow,
iColumn) As
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.
o Sub RemoveAssociation( 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.
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

Copyright © 2003, Dassault Systèmes. All rights reserved.