5.9 Printing Operations for Elements

The following script prints the operation name and command for a selected element. If the command is blank, then the command is the same as the name. It works as a client script only.

//@debug on
  formula.log.info("Printing operations for " + element.dname);
  var ops = element.operations;
  for(i=0; i < ops.length; i++) {
    formula.log.info(ops[i].name + "|" + ops[i].command);
  }