Guide to Retrieving Values from the Database

Hello everyone,

I need to access the database to retrieve the forces in the springs using the @key command.
Does anyone know how to do this?
Is there a guide that explains how to access any parameters and values stored in the database (nodes, springs, beams, etc.)?

There’s an interfaces manual, you interested in the cadinp chapter:
https://docs.sofistik.com/2024/en/cdb_interfaces/

Take a look at the basic example in your installation folder (and the other files in the folder too):
C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024\interfaces\examples\cadinp\cdb-access-examples_1.dat

You find the different access keys in the cdbase help manual:
bild

So the result from a spring element you would find under:
Sofistik data/explicit elements/(17?) spring, dampers:

Then you can check the cdb if they actually exist (and error checking your reading algorithm):
bild

Finally something like below will give you a printout in the report:

+Prog template

Let#LC 1
@key spri_res #LC

Let#cdb_ier 0
Loop#1
  Let#nr @(nr)
  Let#p @(P)
  Let#m @(M)
  txb #nr   #(#p,10.0) #(#m,10.0)
EndLoop #cdb_ier<2

End            
1 Like

Thank you very much for your response, the logic is very clear to me now :slight_smile: .