Hi Changsong,
We have several wiki articles on Bolt Length calculation which will give you an idea on how is bolt length calculated. One of them is given below: http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki…