If you want to receive attribute values with AdoScript you can use the command GET_ATTR_VAL in the messageport Core. The syntax of this command is as follows:
1CC "Core" GET_ATTR_VAL objid:id AttrSpec
2# As inputs you would need the objectid and the attribute specification. The parameters below (in square brackets) are optional.
3[ as-string ] [ core-value ] [ format:strValue ] [ sep:strValue ]
4# There are two options to declare the attribute 1) attribute id or 2) attribute name:
5AttrSpec : attrid:id | attrname:strValue .
6#-->RESULT ecode:intValue val:anyValue
In your case this would be then
1CC "Core" GET_ATTR_ID classid: (id_fromClassID) attrname: "SOD_Select"
2SET from_AttID: (attrid)
3
4CC "Core" GET_ATTR_ID classid: (id_toClassID) attrname: "SOD_Select"
5SET to_AttID: (attrid)
6
7CC "Core" GET_ATTR_VAL objid: (id_frominstanceid) attrid: (from_AttID)
8SET from_attribute: (val)
9
10CC "Core" GET_ATTR_VAL objid: (id_toinstanceid) attrid: (to_AttID)
11SET to_attribute: (val)