Requesting Database Results - Bar's Endnode

Hello everyone!

I am trying to get the stress at the bar’s endnode from the CDBase without success… With this way bellow I can only get the stresses from the bar’s startnode (X=0.0):

@key beam_str #lf #stab #qsp_i
let#sNni @(nr) $ Stabnummer
let#sX @(X)    $ Abstand zu Stabanfang
let#sigc  @sigc/1000 $ Druckspannung

(#lf #stab #qsp_i are load case, bar number and stress point)

Is there a way that I can say something like @(X=0.15) or @key beam_str #lf #stab #qsp_i X=Endnode?

I mean, I way that I can choose whether I get the stresses and the startnode or endnode?

Many Thanks
Raphael

Just repeat the requests, this will read the next line in the cdb.

@key beam_str #lf #stab #qsp_i
let#sNni @(nr) $ Stabnummer
let#sX @(X)    $ Abstand zu Stabanfang
let#sigc  @sigc/1000 $ Druckspannung
$ ----------------------------------
$ Repeat the block below until you get what you want (correct NR/X)
$ ----------------------------------
let#sNni @(nr) 
let#sX @(X)    
let#sigc  @sigc/1000 
$ ----------------------------------

Basically you are:

  • jumping to the first cdb-entry of your beam/bar with @key
  • reading the information in that “line” with @nr/@x/@sigc
  • reading the information in the next line, once you start reading something “behind”, e.g. @nr after reading @sigc

Maybe read through the cdb-access-examples_1.dat file in your installation folder (C:\Program Files\SOFiSTiK\2020\SOFiSTiK 2020\interfaces\examples\cadinp)

1 Like

Many Thanks!!