The following is a CATIA drawing view macro to help you learn how to program for the drafting workbench since macros cannot be recorded in it. To create 2D CATIA drawing views from 3D models with a CATVBA macro  follow these steps:

Use the DrawingViews collection to create an empty DrawingView:

Next, retrieve the GeneravtiveBehavior object:

Now, establish the link with the 3D CATIA model, like so:

Finally, set the View attributes, such as the hidden line mode:

The DrawingView object contains the DrawingViewGenerativeBehavior object, which owns the methods for creating 2D views from 3D models.

Thanks for reading about my CATIA drawing view macro. Read more CATIA tutorials.