Hi Shashank -
There is no supported way to do this. That said, the description / design of a Tableau workbook (.twb) is nothing more than XML.
So, you could take a workbook which already has an attached TDE and "explore" the XML and see what all the elements and attributes look like.
Then, you could write C# to open up a different *.twb and inject the appropriate XML elements and attributes.
Again, while this approach works it is not supported and Tableau Support can't help you implement it or assist if things don't work afterwards. It's a strictly "do it yourself" type of project.
Just curious - why are you doing this in the first place?
Hope this helps a little.
Thanks for prompt response.
I’ve a requirement from our client as the logic need to be implemented in this way. However, I’ll try exploring XML and hope for the best.
Thanks again for the help,