How are inputs and outputs names of a SCADE operator sorted? Is it possible to sort them alphabetically?
The I/O of SCADE operators are sorted in the declaration order. The user has the possibility to modify this order, but this should be done manually (drag-and-drop). The order of the I/O in the interface of a node in the Framework view represents the order of the I/O when the node is instantiated. Besides, the SCADE openness to TCL scripting makes it is easy to create a new view in which you will have the I/O sorted in alphabetical order. Here is an example of TCL script that allows such a feature: proc ForEachLocal {rlocals local} { upvar $rlocals locals lappend $rlocals [list $local [get $local name] ] return 1 } proc ForEachNode {model bExpanded node} { set locals “” if { $bExpanded } { fwreport -expanded $node $model } else { fwreport $node $model } MapRole $node input “ForEachLocal locals” MapRole $node output “ForEachLocal locals” MapRole $node hidden “ForEachLocal locals” MapRole $node local “ForEachLocal locals” set sortedlist [lsort -dictionary -index 1 $locals] foreach pair $s