I’m new to Adobe Illustrator and I wanted to accomplish this task. How do I remove the inner lines in my drawings? I tried with all the pathfinders effect but it keeps removing my tangent lines (the lines connecting both my circles).
It works like a charm as I followed the selected’s answer guide:
Here it is.
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
There’s a script for that, which has the added advantage of giving you perfect connecting tangent lines.
It’s called Metaball by the awesome Sato Hiroyuki – you can download it as part of a big bundle of mostly useful Illustrator scripts from his page here.
It turns a selection of circles into singular blobs by following tangent lines. Here’s an example from that page – you can also input a value for the curve, and if you input 100, it gives perfectly straight lines like in your example.
Because it creates closed path shapes, you can select the paths it creates along with the circles, use
Unite (the first of the Pathfinder window options), and it just works perfectly.
While most of the answers posted online are almost correct and give visually desired effect, I needed something 100% precise. Check out the references at the end to see animated geometrical construction of tangents.
For starters make sure to disable “Align to Pixel Grid” and “Align New Objects to Pixel Grid” in Transform Pane. You would probably have to zoom in few times to make sure anchors are placed in the intersections (as Illustrator sucks at it big time). Also, if the circles are not nicely aligned to each other, you will probably have to make some additional steps like: duplicate, rotate to horizontal position, draw stuff, rotate back again.
It takes some time and practise to draw tangent. The first part is creating a tangent through a point:
- Draw a line AB through the center of two circles A and B
- Add a point C in the middle of the line AB (fast method: Object > Path > Add Anchor Points)
- Draw a circle from point C with a radius of AC – you get two points: D and E
- Draw a line BE or BD – those are tangents of circle A and point B
The second part is using the created tangent to make a circle-circle tanget:
- Mark points F and G in intersections of AB line and both circles
- Draw a circle from point F with a radius of BG (its a same sized circle as B), getting a point H on the AB line (inside circle A)
- Draw a circle from point A with a radius of AH, getting points I and J on the intersections of this circle and the big circle C
- Draw a line from point A through I or J – make them stretch out to reach out of the circle (just use Scale Tool in point A with ALT or SHIFT) – getting points K and L
- Now you only have to draw a line BI and move it by point I to K or a line BJ and move it by point J to L
Final illustration for above steps:
References (with animations):
I am crazy late in answering this, but this might be of use to somebody anyway.
I make three shapes, two circles and one adjusted square. Note the delightful colours, just to make it clear what shapes I have made:
Select all with the selction tool, then click the
Start in the outer half of one of the circles and “pull” over to the other end:
Pathfinder won’t find anything with just lines — it only works with the area that a path is enclosing. You’ll want to connect your tangent lines and make them into a solid shape, a rectangle in this case.
Use the white arrow tool to select the right-end anchors of both lines (click on the first, shift-click on the second) and then Object > Path > Join (or Ctrl/Opt + J). Do so again for the two right-end anchors to end up with a rectangle-like shape.
Select this shape and both circles and choose the first Pathfinder option ‘Unite’.