Creating a diagonal pattern in Adobe Illustrator can add a dynamic touch to your designs. This straightforward guide will walk you through the process, from creating your pattern to applying it to shapes or artboards.

Before we dive into the action, ensure you have a basic understanding of Illustrator's tools, including the Rectangle Tool (M), Line Segment Tool (/), and the Shaping Tools (L) for selecting and manipulating objects.

Creating the Diagonal Pattern
For this example, let's create a simple diagonal stripes pattern. Begin by opening a new document in Illustrator and setting your rulers to show (View > Rulers > Show Rulers or press Ctrl + R).

To make life easier, let's use the Grid feature. Go to View > Show Grid to display it. You can adjust the grid spacing later by heading to Edit > Preferences > Guides & Grid (if you're on a Mac) or simply follow the same path but click on 'Edit' instead of 'Preferences' if you're on Windows.
Setting Up the Diagonal Line

Grab your Line Segment Tool (/) and click on your artboard. A small dialog box will appear. Type in the width and height you want for your diagonal line. For instance, if your artboard is 800x600, experiment with values like 700x500 to center your line.
Click OK. Now, an 'Endpoint' prompt should appear. Move your cursor to the starting point of your diagonal line and click. Move to the endpoint and click again. You should now see a diagonal line on your artboard.
Isolating Your Line

With the Direct Selection Tool (A) active, click once on your line to select it. Press Ctrl + J (or Command + J on Mac) to isolate the line on its own layer.
To convert this line into a pattern, first, duplicate it (Ctrl + C, Ctrl + F). Then, use the Selection Tool (V) to select and group both lines (Ctrl + G). This ensures they stay together as we manipulate them.
Creating Your Diagonal Pattern

Now, let's create our diagonal stripes pattern. Enter the Pattern Options panel (Window > Pattern Options) and set a non-zero width for the stroke. Play around with colors to achieve your desired effect.
Next, duplicate your grouped lines (Ctrl + C, Ctrl + F) and position them to create your pattern. You can use the Transform panel (Window > Transform) to rotate and skew them for different effects.









Creating the Pattern Swatch
With your line/pattern still selected, open the Patterns panel (Window > Swatch Libraries > Patterns). Click on the New Pattern button in the top-right corner of the panel.
Illustrator will prompt you to set a name and dimensions for your pattern. Click OK and Illustrator will open the Pattern editor. Fill the box with your diagonal pattern and click Done. Your new pattern is added to your Swatches panel.
Applying the Pattern
To apply the pattern to a shape or artboard, use the Paint Bucket Tool (K) or drop the pattern into your Swatches panel. Select a shape or a filled artboard and click on the pattern in the Swatches panel.
You can adjust the pattern scale in the Appearance panel (Window > Appearance) or scale the individual objects if you prefer maintaining your pattern's size and adjusting geometry instead.
Congratulations! You've successfully created and applied a diagonal pattern in Adobe Illustrator. Approach this technique freely to experiment with different patterns and effects. Happy designing!