How to get Nameing bom configuration variable

I have a assembly,a variable vaule is difference for defference configuration. as ex.: configuration:T01 the variable (mfg_plant) is TP1,configuration:T03 the variable (mfg_plant) is TP3.

  So if i output a name bom, In API how to get configuration function ?

SolidworksSolidworks Pdm enterprise Pdm