### Locate configured workbook example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/vba/examples/vba_example1.html Path to the directory containing the pre-configured workbook example. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\vba\configure_workbook ``` -------------------------------- ### Example file path Source: https://docs.sofistik.com/2024/en/cdb_interfaces/vba/examples/vba_example2.html The local directory path where the example files are located within the SOFiSTiK installation. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\vba\read_nodes ``` -------------------------------- ### Locate Python Example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/python/examples/python_example1.html Path to the directory containing the example source code. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\python\python_3.x\connect_to_cdb ``` -------------------------------- ### CDB Path Example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/python/examples/python_example5.html The default location for the Python project example. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\python\python_3.x\number2text ``` -------------------------------- ### Example File Path Source: https://docs.sofistik.com/2024/en/cdb_interfaces/c_sharp/examples/c_sharp_example1.html The local directory path where the C# connection example project is located. ```text C:\sofistik_installation\2024\SOFiSTiK 2024\interfaces\examples\c#\connect_to_cdb ``` -------------------------------- ### Interface Examples Directory Path Source: https://docs.sofistik.com/2024/en/cdb_interfaces/introduction/about_cdb/structure.html The local file system path where interface examples are located. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\ ``` -------------------------------- ### C++ Example Path Source: https://docs.sofistik.com/2024/en/cdb_interfaces/cpp/examples/cpp_example5.html Location of the C++ example project for decoding loadcase titles. ```text C:\\2024\SOFiSTiK 2024\interfaces\examples\c++\number2text ``` -------------------------------- ### Correct Sequence Example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/cadinp/template/at_name.html Demonstrates the correct sequence for accessing node data. ```CADINP @KEY N_DISP 1 LET#NR @NR LET#UX @UX ! NR and UX - belong to the same node ``` -------------------------------- ### Launch Teddy via Command Line Source: https://docs.sofistik.com/2024/en/fea/teddy/introduction/general_information.html Use command line arguments to specify files, line numbers, or instance configurations when starting Teddy. ```bash ted [/options] [filename] [line column] ``` -------------------------------- ### Generated SOFiLOAD Input Example Source: https://docs.sofistik.com/2024/en/fea/ssd/tasks/task_combine_loads/task_combine_loads.html Example of the SOFiLOAD input generated by the task, demonstrating load case definitions and combination factors. ```SOFiSTiK PROG SOFiLOAD HEAD Combine loads LC NO 15010 TYPE (D) TITL "LC 15010 comb + Imp 61" COPY NO 1 FACT 1 COPY NO 2 FACT 1 COPY NO 11 FACT 1.5 COPY NO 37 FACT 1.05 COPY NO 39 FACT 1.05 COPY NO 40 FACT 1.05 COPY NO 47 FACT 1.05 COPY NO 49 FACT 1.05 COPY NO 50 FACT 1.05 COPY NO 61 FACT 1 LC NO 15011 TYPE (D) TITL "LC 15011 comb - Imp 60" COPY NO 1 FACT 1.35 COPY NO 2 FACT 1.35 COPY NO 10 FACT 0.9 COPY NO 21 FACT 0.75 COPY NO 34 FACT 1.5 COPY NO 35 FACT 1.5 COPY NO 36 FACT 1.5 COPY NO 38 FACT 1.5 COPY NO 44 FACT 1.5 COPY NO 45 FACT 1.5 COPY NO 46 FACT 1.5 COPY NO 48 FACT 1.5 COPY NO 60 FACT -1 LC NO 15012 TYPE (D) TITL "(1)+(2)+1.5(34)+1.5(37)+1.5(40)+1.5(44)+1.5(47)+1.5(50)" COPY NO 1 FACT 1 COPY NO 2 FACT 1 COPY NO 34 FACT 1.5 COPY NO 37 FACT 1.5 COPY NO 40 FACT 1.5 COPY NO 44 FACT 1.5 COPY NO 47 FACT 1.5 COPY NO 50 FACT 1.5 END ``` -------------------------------- ### Define Loadcase Storage Sequences Source: https://docs.sofistik.com/2024/en/fea/ssd/tasks/task_steel_buckling_resistance/task_steel_buckling_resistance.html Examples for specifying loadcase numbers for result storage using comma separators and range hyphens. ```text 951 ``` ```text 951,953 ``` ```text 951,952,955-958 ``` -------------------------------- ### MAXIMA Combination 2 Configuration Source: https://docs.sofistik.com/2024/en/tutorials/superpositions/action-sup-alex-excl-exex/superposition_action-sup-alex-excl-exex.html Example of defining action categories and alternative load groups using SUP EXEX to restrict load case selection within variable actions. ```MAXIMA +PROG MAXIMA HEAD Combination 2 ECHO LOAD,FACT COMB 2 EXTR desi TYPE desi BASE 2200 ACT G ACT X_1 LC 11 TYPE AG1 ! different permanent load groups for X_1, X_2 and X_3 ACT X_2 LC 12 TYPE AG2 ACT X_3 LC 13 TYPE AG3 ACT Z_1 SUP EXEX ! modifiaction SUP EXEX alternativ within action or defintion at LC ! LC (21 29 1) TYPE A7 ! same variable load group for Z_1, Z_2 and Z_3 ACT Z_2 SUP EXEX ! LC (31 39 1) TYPE A7 ACT Z_3 SUP EXEX ! LC (41 49 1) TYPE A7 SUPP 2 EXTR mami ETYP beam TYPE MY FROM 20010 X 1[-] ! full output for hogging moment column 3 = end of beam no. 20010 END ``` -------------------------------- ### Define Structural Line Sequences Source: https://docs.sofistik.com/2024/en/fea/ssd/tasks/task_steel_buckling_resistance/task_steel_buckling_resistance.html Examples for specifying sequences of structural lines using comma separators and range hyphens. ```text 1,2 ``` ```text 1,2,10-12 ``` -------------------------------- ### Connect to CDB Example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/fortran/examples/fortran_example1.html Demonstrates the initialization of a CDB connection, status checking, and closing the connection. Ensure the file path is correctly set for your environment. ```fortran program connect_to_CDB implicit none ! Variables integer :: nid, l, ie, index, istat character(len=30) :: filename character(len=72) :: text index = 99 ! input here the CDB name or the CDB path filename = "S:\test\connect_to_cdb.cdb" ! Connect to CDB ! In this example 64bit debug DLL is used call cdinit(filename, index) if (nid > 0) then write(*,*) " cdb_init of ", filename," succesfull ", nid else write(*,*) " cdb_init of ", filename," not succesfull ", nid endif ! Check status call cdstat(index, istat) print *, "CDB status is: ", istat ! Lets close the CDB now call cdclose(0) ! Check status again, if closed, status = 0 call cdstat(index, istat) print *, "CDB status is: ", istat ! Press key to close the program print *, "Press key to close the program" read (*,*) end program connect_to_CDB ``` -------------------------------- ### Connect to CDB in VB.NET Source: https://docs.sofistik.com/2024/en/cdb_interfaces/vb_net/examples/vb_net_example1.html Full example demonstrating how to set the environment path, initialize the CDB connection, check status, and close the database. ```vbnet Imports System.Runtime.InteropServices Module main 'In this example, 64bit DLLs are used Public Declare Function sof_cdb_init Lib "sof_cdb_w-2024.dll" Alias "VB_sof_cdb_init" ( ByVal name As String, ByVal InitType As Integer ) As Integer Public Declare Function sof_cdb_status Lib "sof_cdb_w-2024.dll" Alias "VB_sof_cdb_status" ( ByVal Index As Integer ) As Integer Public Declare Function sof_cdb_close Lib "sof_cdb_w-2024.dll" Alias "VB_sof_cdb_close" ( ByVal Index As Integer ) As Integer Sub Main() Dim Filename As String Dim Index As Integer Dim Path As String Dim analysisPath As String Dim analysisPath2 As String 'Path of the SOFiSTIK Directory analysisPath = "C:\sofistik_installation\trunk\SOFiSTiK trunk\interfaces\64bit" analysisPath2 = "C:\sofistik_installation\trunk\SOFiSTiK trunk" 'Set the environment variable Path = Environment.GetEnvironmentVariable("path") Path = analysisPath2 + ";" + analysisPath + ";" + Path Environment.SetEnvironmentVariable("path", Path) 'Filename = full path with name of the cdb Filename = "S:\test\test.cdb" ' To connect to the CDB we will use Index = sof_cdb_init(Filename, 99) If Index < 0 Then Console.WriteLine("ERROR: Index= " & Index & " < 0 - see clib1.h for meaning of error codes") Console.ReadKey() Exit Sub ElseIf Index = 0 Then Console.WriteLine("ERROR: Index= " & Index & " - The File is not a database") Console.ReadKey() Exit Sub End If ' Output the index and status Console.WriteLine("Index: " & Index) 'This outputs the status of the CDB, please refer to cdbase.chm for more details Console.WriteLine("CDB Status: " & sof_cdb_status(Index)) ' Close the CDB Call sof_cdb_close(0) 'Check if CDB closed succesfully If sof_cdb_status(Index) = 0 Then Console.WriteLine("CDB closed succesfully, status = 0") End If ' Press any key to close the program Console.Write("Press any to close the program") Console.ReadKey() End Sub End Module ``` -------------------------------- ### Error Message Example for Missing KWL Source: https://docs.sofistik.com/2024/en/cdb_interfaces/cadinp/template/at_key.html Example of an error message when the KWL parameter is missing. ```Text +++++ error no. 10144 in program SOF_VAR This index @KEY requires an explicit definition of a number at KWL ``` -------------------------------- ### Normal Force Output Example Source: https://docs.sofistik.com/2024/en/cdb_interfaces/cadinp/template/at_key.html Example demonstrating the output of normal force for a specific steel section. ```CADiNP @KEY SECT_PLA KWL 2 SEL3 101 LET#N @WPN //ID (=6) is defined by default via SECT_PLA, //but counts also all sections string (=sel1) ``` -------------------------------- ### Connect to CDB Database Source: https://docs.sofistik.com/2024/en/cdb_interfaces/fortran/examples/fortran_example4.html Initializes the connection to the specified CDB file using cdinit. ```fortran ! Define the parameters for cdinti() ! nid = 99, test if NAME is a valid database and open the base if possible. ! Return with the assigned index. ! If the file does not exist, it will be created. nid=99 file = "simple_span_girder.cdb" !name of the cdb or the full path ! Connect to the CDB call cdinit(file,nid) if (nid > 0) then write(*,*) " cdb_init of ", file," successful ", nid else write(*,*) " cdb_init of ", file," not successful ", nid endif ``` -------------------------------- ### Error Message Example for Missing Structure Source: https://docs.sofistik.com/2024/en/cdb_interfaces/cadinp/template/at_key.html Example of an error message when the database does not contain the required structure. ```Text +++++ error no. 10143 in program SOF_VAR CDBASE.CDB does not contain a suitable structure for @KEY STU5 ``` -------------------------------- ### Iteration Loop Condition Source: https://docs.sofistik.com/2024/en/cdb_interfaces/vb_net/examples/vb_net_example4.html Example of a loop condition used for iterative calculations. ```vbnet Do While (Mrd <= Meds) And (mu <= 0.296) ```