Don't know whether I fully understand your question, but if you want to extract the DDL of an object with its grants, here's how you can get to it.
In the browser, right click on the object you wish to extract the DDL from, and select the View option. That should open up a window with the defintion of the object in an easy form. If you want tohe plain SQL, click the View SQL button at the bottom right hand corner, and there is the SQL.
Both the form and the SQL contain the GRANT information.