OPM Custom Component through Spec

Hi folks,

I was referring this below WIKI link which is similar to my requirement but I need to govern through Spec by using Spec data.

https://communities.bentley.com/products/plant/w/plant_design_and_engineering__wiki/28661/how-to-create-four-ports-component-with-different-sizes-in-openplant-modeler

In this WIKI we have created a new Port "BRANCH_PORT1" on REDUCING_PIPE_CROSS.

How can I use my Spec Data to map it through Spec?

Current Scenerio: 

System is automatically taking BRANCH_PORT1 value as 8, Can anybody have an answer?

Regards | Abhilash Panchal