Config_db From Component To an Object not getting set

In reply to bdreku:

Hello Bdreku, I did try that way, but the results are same.

Well the intention is like, though there is no hierarchy concept for the objects, but still I was trying a similar sort of thing.

For example,

  1. I have a top level env and inside which there are multiple block_env’s.
  2. Within each block_env’s there is this block_env_cfg.
  3. And I wanted to set different values for each variable inside the config object something like given below.

top_env_cfg.block_env_cfg[0].num_agts = 0,
top_env_cfg.block_env_cfg[1].num_agts = 2,
top_env_cfg.block_env_cfg[2].num_agts = 6, 

  1. So only was trying to set the value of num_agts targeting specifically inside the each block_env_cfg with different values.

But somehow during the get, its missing or not sure if its missing searching for that complete string path for the value. Wondering if am I making any error in the get as well?