Hello,
More generally you may find this script useful if there is a rhinoscriptsyntax method equivalent to what you are trying to do with Rhinocommon