Generating Gerber files in Diptrace is quite straightforward. To export gerber file from Diptrace, just select File -> Export -> Gerber.
Click“Export All” and save all the layers
After export the gerber files, we need to export the NC Drill files.
After all the data has been exported, it is usually prudent to check the results with a gerber viewer to see how the files look like.
Video tutorial: https://youtu.be/tQL3wboqiZE