FeResPost Web Site                     FeResPost Online User Manual

VII.3.3.3 Spreadsheet “ClaDbIds”

This is the spreadsheet that manages access to the COM server and to the ClaDb composite database used for calculations. This is the first spreadsheet you should go to in order to start the application.

The spreadsheet contains several buttons, and information on the entities available in the current database appears in the cells: lists of materials, laminates and loads. Each entity in the current database is characterized by:

The integer and String IDs correspond to the CLA identifier of the entity. The Excel ID is a String representation of this identifier that allows the entities to be referenced from the other spreadsheets. The spreadsheet defines several buttons:

Several macros are defined in the spreadsheet. Most of these macros perform the operations triggered by the buttons. You can access the macros through the VBA editor. At the beginning of the VBA program lines, several variables are defined:

                Dim frpApp As Variant
                Dim db As Variant
                Dim maxEntitiesNbr As Long
                Const maxPliesNbr As Long = 100
                Const appName As String = "FeResPost_3_4_0.Application"
                Const logFileName As String = "FeResPost_LaminateAnalysis.log"

frpApp is the variable that holds a reference to the FeResPost COM server. db holds the ClaDb composite database in which all composite entities are stored. Only one ClaDb database can be opened in the workbook. The variable “appName” is a constant that corresponds to the name of the server. You will have to change this variable when you change the version of FeResPost.

The logFileName variable is used to redirect FeResPost output messages. This is necessary because, within Excel, FeResPost is not run in console mode. In practice, this redirection is implemented as follows in the “getApplication” method:

          fullLogName = ActiveWorkbook.Path + "\" + logFileName
          frpApp.openMsgOutputFile fullLogName, "w+"
          frpApp.writeAboutInformation