Generate DDL for all entities/ procedures/ views/ objects

Hi,

Is there a way to export MS SQL Scripts/  DDLs for all the objects in the database?

Thanks