3

When I draw a rectangle, the bounding box covers also the stroke, unlike Illustrator that keeps it on the vector path.

How to deal with this problem? See attachment for a better understanding.

enter image description here

5
  • 1
    As in Illustrator, InDesign has three possible stroke alignments: Center, Outside, Inside. Did you try all of them?
    – user120647
    Commented Apr 3, 2019 at 17:16
  • 1
    Hey @Danielillo , yes I did. I've also stated in the screenshot that I am not looking for this solution. Thank you. Commented Apr 3, 2019 at 17:18
  • @alexgrigoras if you put the content of your question in an image, you cancel the possibility of text searching for future users. While it's useful to see where the problem is graphically, you should add the whole content in text format.
    – user120647
    Commented Apr 3, 2019 at 17:32
  • @Danielillo I have also stated it in words, in a comment below. To be even more explicit here it is: If I snap to the edge of the stroke and I have 2 rectangles, when I swap fill and stroke (shift+x), the rectangles DO NOT touch anymore. Now I have to take it all ober again and snap them together. Of course, when you create 10 rectangles that is very time-consuming. Thank you! Here is the link to the screenshot: imgur.com/RVSDwR0 Commented Apr 3, 2019 at 17:38
  • The question content in a comment doesn't help that much, there's an edit button at the question to add or modify the text.
    – user120647
    Commented Apr 3, 2019 at 17:44

4 Answers 4

2

Based upon @GerardFalla's answer, Adobe may have improved snapping behavior in more recent versions. I'm still using CS6 most of the time, because I dislike subscription software, and I didn't bother launching CC2017/2018 to test specifically for this answer. This answer is based pretty much on CS6 as I see the behavior.


You can alter the stroke alignment in InDesign via the Stroke Panel.

enter image description here

It appears as though you have the stroke set to align to inside. If you need it centered on the path, like Illustrator, simply click the left-most stroke alignment option in the Stroke Panel.

And you can also enable Smart Guides to align things a bit better if needed.

enter image description here


Edit After the comment:

My understanding is you need 2 rectangles to essentially use the same stroke, centered on their paths respectively. So when overlapped it appears like 1 stroke.

InDesign uses the "preview bounds" for strokes. As far as I'm aware, there's no option to change that like there is in Illustrator. So, you have to compensate for the preview of the strokes.

I don't think you can do this in "1 step", but...

  • Align the strokes to inside on both rectangles
  • Snap the edges of the bounding boxes
  • Change the stroke alignment to center

enter image description here

You can alter the stroke alignment on multiple rectangles at the same time without changing other stroke attributes.

5
  • 1
    Thank you, @Scott! That doesn't help, I've already said that. If I follow your solution, I have to do double work: first, I need to draw 2 rectangles, get a guide and snap it to the side of the rectangle, then bring the other rectangle. I just want to draw 2 rectangles and snap to the vector path, with the stroke aligned to center, one to the other. I want to do it in one step, not 2 steps with guides. Thank you! Commented Apr 3, 2019 at 17:26
  • See updated answer @alexgrigoras There is no "one step" solution I can think of.
    – Scott
    Commented Apr 3, 2019 at 17:56
  • @Scott: No need for a step, whether one or many: your answer was spot-on, but in fact In Design already has this condition well covered - see my answer below. Commented Apr 3, 2019 at 18:17
  • 1
    Might depend upon version @GerardFalla (Center-aligned strokes) while CS6 will snap the bounding box, it snaps it to the stroke previews not to other bounding boxes. And smart guides does not see the bounding box edges with center aligned strokes. See here -- so, as posted in my answer, it does look like Adobe may have improved this a little in more recent versions.
    – Scott
    Commented Apr 3, 2019 at 18:25
  • @Scott - great to know - thanks for responding so fast mate! Commented Apr 3, 2019 at 18:27
1

This whole discussion is off-track - let's get back to brass tacks:

You need to draw out, with snapping, multiple rectangles in InDesign which snap such that the strokes all perfectly line up.

IT DOES THAT NOW.

The bounding box at the outer edge of stroke is a non-issue.

Why?

Because InDesign automatically snaps also to the inner stroke boundary - exactly for this reason - to align strokes.

So to directly respond to your specific request: I know of no way to alter this behaviour - however, it's not necessary - cos it already works to accomplish your task as-is, out of the box.

enter image description here

enter image description here

0

I just had this issue and was looking all over the internet for it. I know it's been a few years since it was asked, but since I came across this issue and the solution, I figured it's best to answer.

The problem lies within the preferences options of Illustrator. Under Preferences >> General, there's a box labeled "Use Preview Bounds" that will take the bounding box to the outside of the stroke instead of exactly on the vector edge. Super annoying, (I find this feature) super useless, but I believe this is the answer you're looking for.

Answer Source: https://community.adobe.com/t5/illustrator-discussions/bounding-boxes-and-strokes/td-p/10833829

1
  • 1
    Welcome Gibby! You may have overlooked it but this question is about InDesign, not Illustrator.
    – Scott
    Commented Feb 24, 2022 at 23:54
0

Re:InDesign bounding box - stroke issue

I was just beginning to explore Indesign, coming from illustrator, to do a multi-page report. I was drawing a few outlined boxes and wanted them aligned. Then i noticed this glaring difference. GerardFalla(from the comments) managed to aligned them because they snap to the inner boundaries, somehow I could not get it to work. I had snapping on, smart guides and what not.

My solution for the time being is to use the tiny "double arrow/reverse colour" icon next to fill/stroke icon. By clicking on it, it turns my objects to have fill and no stroke or reverse. Now, Filled objects will aligned better. then i click that tiny icon to reverse the fill/stroke and set my stroke weight accordingly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.