CDB End Node Number Spring

Hi,

The following code works to get the start node number of a spring. Could you please clarify the code to get the end node number? Thanks in advance!

@KEY SPRI
STO#Start_Node @(#Num_Spring,NODE)
PRT#Start_Node

Hi Andrew,
To extract the nodes that define the spring in the database, you need to use the following code: (Start node: Node ¬ | End node: Node +1), as shown in this piece of code :

+prog template urs:33.1
head
LET#cdb_len 0
LET#cdb_ier 0
@key SPRI
loop#i
LET#nr(#i) @(NR)
LET#NodeStart(#i) @(NODE)
LET#NodeEnd(#i) @(NODE+1)
if #cdb_ier<2
txb #(#nr(#i),5.0) #(#NodeStart(#i),7.2) #(#NodeEnd(#i),7.2)
ENDIF
ENDLOOP #cdb_ier<1
end

I hope this helps, and good luck!

Abderrahman OMRI :blush:.

Works perfectly. Thanks a lot!!!

1 Like