Hi Dilip,
I realized now you posted your question to Developers and Programming Forum, which (obviously) is not MicroStation forum. So I recommend to move your post to proper MicroStation Programming forum . To move existing post, use More > Move tool…