Mobile app version of vmapp.org
Login or Join
Sent7350415

: Aligning an object freely along a guide in Illustrator I have a quick question regarding aligning objects to paths/other objects. Essentially, I have a rounded rectangle with max rounding so that

@Sent7350415

Posted in: #AdobeIllustrator #Alignment #Shapes

I have a quick question regarding aligning objects to paths/other objects. Essentially, I have a rounded rectangle with max rounding so that a circle could perfectly fit at either ends. Consequently, that's exactly what I'm trying to do. After trying several methods to no avail, it came to my attention that maybe I could create a path or guide, and lock an object, like a circle, and slide it along that path. So my question is, does this feature exist, and if not, are there other options that could help me achieve a similar effect?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent7350415

2 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi706

You can achieve the same thing with a single path using the Appearance panel...


Draw your path...
From the Appearance panel, add a number of strokes: the bottom for the "outline", the next one a few pt smaller for the "fill" and another on top for the end pieces. Set all the strokes to have round end caps.
For the end circles set the stroke to be dashed with a "0" width dash and the largest gap you can (which should hopefully be longer than your path). Set the dashes to align to corners; this will keep the "dashes" (the circles) at the ends of the path.


Once you've finished setting up your appearance you can drag the object to the Graphic Styles panel to save your style for easy reuse:

10% popularity Vote Up Vote Down


 

@Holmes874

Select the rounded rectangle tool. Draw the rectangle with exact measures. Click the artboard, give the measures. The adjustment of the rounding is possible in Illustrator's new version. If you have it, no exact measures are a must.

In the Wiev menu set the smart quides on, enable snapping to point and disable snapping to grid. Now you can easily draw a circle that fits exactly and can be dragged easily along the rectangle.

The problem is more complex if you want the rectangle to have substantial stroke width and the circle must fit exactly between the strokes. One possiblity is to offset the strokes or have multiple strokes and make the extras invisible in the appearance panel. Actually your rectangle can be a curve as written in another answers.

Here's a different, the hard worker's solution:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme