- It is explained in more detail in the online current documentation (for the last developer version):
https://gidsimulation.atlassian.net/wiki/spaces/GCM/pages/2695954437/proc
you can show the values of the arguments with W to understand it better
In the proc Cmas2d::EditDatabaseListDirect (file \problemtypes\Examples\cmas2d_customlib.gid\cmas2d_customlib.tcl)
proc Cmas2d::EditDatabaseListDirect { domNode dict boundary_conds } {
W “domNode=$domNode dict=$dict boundary_conds=$boundary_conds”
…
}
2) this is old, read the new documentation:
Now is not necessary to define in the spd these procs in the block
Cmas2d::EditDatabaseList $domNode $dict $boundary_conds $args
…
and in particular is more unrecommended to implement also the body of the Tcl proc in the xml document (e.g. cannot use ramdebugger to inspect it, it is much better to put the Tcl code in a .tcl normal file)
Instead can use the new simplified syntax without this block, using the special arguments %W, %DICT, %BC, etc.
as is explained in the current documentation