Copy link to clipboard
Copied
I have created a plan of my central heating pipework that provides a good indication of how it looks in reality rather than being a simplified diagram. To do this, I first created art brushes for 15mm, 22mm, and 28mm pipes. Each of these brushes simply has a pair of lines defining each side of the pipe.
However, it would have been better to have had a fill colour for these brushes, but my attempts to add a fill that is limited to the line of the pipe have failed. Is there a way to do that?
How about a simple line with two (or more) strokes...
The problem with this brush is that the outer lines have a fill, which appears when their endpoints are separated. Remove the fill from those outer paths and it should work.
Copy link to clipboard
Copied
Probably? Please show your brush artwork and what you've tried so far.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
If there are just 2 lines, then you cannot fill anything. Just drawing a white rectangle and putting it behind the 2 lines could be an option.
Copy link to clipboard
Copied
How exactly did you try? Does this work for you (a coloured rectangle between two strokes)?
Copy link to clipboard
Copied
I'd already tried that before I started this drawing. It doesn't work for me (using CS6) as it does for you. Your example shows the red fill colour being confined to the interior of the stroke throughout a bend. In my case, the fill spills out across the black border into the area inside every bend. Are you using Illustrator CC?
Copy link to clipboard
Copied
Please show what you tried. I am using CC, but brushes have not changed between CS6 and now.
Copy link to clipboard
Copied
This is what I tried:
Copy link to clipboard
Copied
Can you share the brush file?
Copy link to clipboard
Copied
I tried to attach a brush library containing my 'Art brush for pipes', but got an error about its extension not matching its contents.
Copy link to clipboard
Copied
You can't attach AI files in the forum unfortunately.
Copy link to clipboard
Copied
I believe you could attach an .ai file to a pdf, and then upload it using the "browse files to attach" button. In Acrobat- View> Show/Hide> Navigation Panes> Attachments> +
Or possibly just change the extension to .pdf, then change it back after download.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The problem with this brush is that the outer lines have a fill, which appears when their endpoints are separated. Remove the fill from those outer paths and it should work.
Copy link to clipboard
Copied
Well spotted! That does indeed fix my issues with your method.
I've already converted my original drawing to use Met1's multi-stroke line suggestion. It will be interesting to find out if your brush solution is any better. At first glance, there doesn't appear to be much of a difference.
Copy link to clipboard
Copied
Brushes give you more options for terminating your paths in interesting ways (you could draw couplings at either end, for example) but otherwise there should be no functional difference.
Copy link to clipboard
Copied
How do you create end couplings for brush strokes?
Copy link to clipboard
Copied
Say you wanted something like this:
You'd select 'Stretch between guides' and pull the guidelines away from the ends so the centre section is the only bit that deforms. Then you could make parts like this:
Copy link to clipboard
Copied
Thanks for that very useful advice. It's much appreciated. I don't need to create such complex ends for the pipes in my current drawing but this method may well prove useful for other purposes.
Copy link to clipboard
Copied
I've just used that method to create an art brush for a pipe with one end rounded off. That will be useful for pipes that are connecting to tanks, etc. Previously, I was adding such ends manually.
Copy link to clipboard
Copied
Good to hear. If there are any other variations you need to create with a single path, there is probably a method (or several methods).
Copy link to clipboard
Copied
How about a simple line with two (or more) strokes...
Copy link to clipboard
Copied
That suggestion appears to work very well. I didn't know you could create lines with multiple strokes., so thanks for advancing my knowledge of Illustrator 🙂
Copy link to clipboard
Copied
Create a small rectangle.
Fill it with a gradient from the Windows> Swatch libraries> Gradients> Metals (or create your own).
With the rectangle selected, go to Object> Expand.
With the rectangle still selected, go to Brushes> New Brush> Pattern brush.
Apply the new brush to any line.
You can round the corners using Effect> Stylize> Round corners.
Copy link to clipboard
Copied
I'm trying to follow your suggestion, Luke, but keep getting the error 'The selected artwork contains an element that cannot be used in a pattern brush'. I have tried several different swatches from the Metals Gradients, including Pewter and all have generated the same error.
What might I be doing wrong? What settings are required in the Object > Expand dialogue box (I used the defaults)?