Normally the platform id is picked up from the file :
%ORACLE_HOME%\inventory\ContentsXML\ oraclehomeproperties.xml
(If you want to over-ride the value, it can be done through setting the variable OPATCH_PLATFORM_ID.)
Unix
export OPATCH_PLATFORM_ID=0
set OPATCH_PLATFORM_ID=0