Sorry my BAD. a haven't test the code, here try this one
EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ALL (zone) WITH (ATTRIB NAME EQ '/PIPING') COLOUR 243
EXPORT AUTOCOLOUR ALL (zone) WITH (ATTRIB NAME EQ '/MECH') COLOUR 217
or this EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ALL WITH (NAME OF ZONE EQ '/PIPING') COLOUR 243
EXPORT AUTOCOLOUR ALL WITH (NAME OF ZONE EQ '/MECH') COLOUR 217
the error seems type mismatch of attribute name compare to DBREF. you can also try MATCHWILD syntax
Sorry my BAD. a haven't test the code, here try this one
EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ALL (zone) WITH (ATTRIB NAME EQ '/PIPING') COLOUR 243
EXPORT AUTOCOLOUR ALL (zone) WITH (ATTRIB NAME EQ '/MECH') COLOUR 217
or this EXPORT AUTOCOLOUR RESET
EXPORT AUTOCOLOUR ALL WITH (NAME OF ZONE EQ '/PIPING') COLOUR 243
EXPORT AUTOCOLOUR ALL WITH (NAME OF ZONE EQ '/MECH') COLOUR 217
the error seems type mismatch of attribute name compare to DBREF. you can also try MATCHWILD syntax