6 Replies Latest reply on Jan 25, 2010 8:52 AM by gingersnap28

    How can I select areas inside incomplete shapes?

    gingersnap28

      Hi,

       

      I'm often required to open PDF drawings outputted from AutoCAD and add colour to them. I do this by opening the PDF in Illustrator and drawing colour shapes in a layer underneath the CAD drawing. Illustrator is good at handling all of the lines from the PDF, but shapes are never interpreted as connected shapes, they are always broken shapes made up of lines. I find it's faster to re-draw them in a layer underneath than to try to join the broken shapes.

       

      Ideally it would really speed up my workflow dramatically if Illustrator had an area select feature like Photoshop, for example if I could just click inside the broken shape with the magic wand tool and it would select the area.

       

      Is it possible that this feature exists in Illustrator and I just haven't found it? Any recommendations would be appreciated.

       

      G.

        • 1. Re: How can I select areas inside incomplete shapes?
          uniquestions Level 1

          Hi,

           

          Maybe you can do it first in Photoshop, then change to Illustrator.

          • 2. Re: How can I select areas inside incomplete shapes?
            Th3DigitalMan Level 1

            Hi,

             

            I feel your pain!  I work with engineering drawings also and they can be a hassle to connect all the points.  I used to select two points at a time and choose JOIN (Apple J).  But than the little dialogue box comes up and wants to know if you are going to use a CORNER or a SMOOTH connection.  You hit enter and than you still have 3 more corners to go and that's if you're just connecting a square box.  A complicated shape can take a LOOOONNNNNG time.

             

            Illustrator doesn't recognize that middle area as anything unless it is an enclosed area.  I have found that you can in many cases select all the lines that make up the shape and than click on the first ICON in the bottom row of the PATHFINDER.  It's called DIVIDE which makes absolutely no sense but it will connect all the lines together into one shape.  It also drops the stroke so the shape appears to disappear but if you will assign a stroke color to it the outline will re-appear.  You can also give it a fill then. I usually draw a marquee around the lines I want to select rather than selecting them one at a time. That being said I have not had 100% success with this technique.  Sometimes on ROUNDED corners there are so many points that for whatever reason this technique does not work.  But it seems to work well in some cases.

             

            What the previous poster suggested would also work.  Save the drawing as a PDF or EPS.  Open it in Photoshop.  Color all the areas.  Than save the finished file back out as a TIFF or JPEG and place on a layer under your drawing and viola!  All the colors should show through correctly.  Resize if necessary although if you rasterize it correctly and save it correctly you shouldn't have to resize it.

            • 3. Re: How can I select areas inside incomplete shapes?
              Jacob Bugge MVP & Adobe Community Professional

              Gingersnap and DigitalMan,

               

              In the newest version(s) there is a new feature called Live Paint (Groups) which do(es) paint areas.

               

              In both newest and earlier CS versions, you may use one of the scripts JoinNearest and JoinNearestStraight that James has made available here: http://www.illustrationetc.com/AI_Javascripts/PathScripts.htm

              • 4. Re: How can I select areas inside incomplete shapes?
                Ignatius Fay Level 1

                gingersnap28 -

                 

                If you are using CS4, this should not be a problem. Use the Direct Selection tool to select the lines that form a particular shape. Choose LivePaint under the Object menu and select 'Make' to turn these lines into a LivePaint object. Then, use the LivePaint Bucket to fill the object with whatever color you like.

                • 5. Re: How can I select areas inside incomplete shapes?
                  JETalmage Level 6

                  Do this:

                   

                  1. Use the shape tools to draw a few ordinary closed paths, overlapping each other partially. .25 pt. stroke, no fill.

                  2. Select all the paths. Object>Path>Add Anchor points. Repeat 8 times or so.

                  3. Select>Object>DirectionHandles.

                  4. Edit>Cut.

                  5. Delete.

                  6. Edit>PasteInFront.

                   

                  Now you have a what looks like enclosed areas, but is really just a bunch of tiny open paths. You've simulated the kind of thing you frequently get from CAD exports.

                   

                  7. Select all.

                   

                  Now record an Action that performs these steps:

                   

                  1. Apply 1 pt black stroke with round endcaps and joins.

                  2. Object>Path>OutlineStroke.

                  3. Apply the Merge Pathfinder.

                  4. Object>CompoundPath>Release.

                   

                  Stop recording.

                   

                  Everything will look like it just acquired a black fill. But now you have a Group of ordinary closed paths with black fills and no strokes. The outermost closed path completely surrounds the others and is offset from them by 1 pt. (thus, serving as the line work). You can now click the fills of the other paths and apply whatever fill colors you want.

                   

                  The Action can now be applied with one click.

                   

                  I frequently use a slight elaboration of such an Action when importing DXFs of exploded assembly drawings. I Lasso or marquee-select around the disjointed paths that make up the drawing of an object, and then run the Action with one click. The result is white-filled closed paths, simplified to remove excess anchorPoints, with a heavier weight outline around the outer perimeter. (Helps clarify individual parts in an exploded drawing--not proper thick/thin treatment, but servicable. Also serves for color-coding by the thick outlines if you.)

                   

                  The exact best steps to include in the Action depends partially on the nature of the kinds of drawings you typically import; but the principle is generally like that outlined above.

                   

                  All of this (including workarounds with LivePaint) is, of course, ridiculous workaround for Illustrator's ridiculous lacking any kind of intelligent join command.

                   

                  JET

                  • 6. Re: How can I select areas inside incomplete shapes?
                    gingersnap28 Level 1

                    Ok, I've tried out both the LivePaint feature and setting up the action script, and they both do what I was hoping for!!! I think I will be able to use them both in my work. Thanks so much for the feedback. You guys have just saved me (and my coworkers) hours of time Glad I asked...

                     

                    G.