FeResPost Web Site                     FeResPost Online User Manual

VII.2.3.3 Spreadsheet “ClaDbIds”

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

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

The integer and string id correspond to the CLA idfier of the entity. The excel ID is a String representation of this idfier that allows to refer to the entities in the other spreadsheets. The spreadsheet defines several buttons:

Several macros are defined in the spreadsheet. Most of these macros perform the different operations done by the buttons. You can access to the macros by the VBA editor. At the beginning of 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 contains a reference to the FeResPost COM server. db contains 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, as with excel, FeResPost is not run in console mode. Practically, the redirection is programmed as follows in “getApplication” method:

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