Author Topic: Glue multiple rectangles  (Read 1518 times)

0 Members and 1 Guest are viewing this topic.

MarkL94

  • Newbie
  • *
  • Posts: 4
Glue multiple rectangles
« on: March 16, 2023, 01:50:25 AM »
Hi all,

I would like to glue multiple (about 5) rectangles to each other using connection points (only in y direction is sufficient). When rescaling or move one, I would like the others to move along.

So far, I've found an example in which the following steps were performed:
  • Draw a rectangle
  • Add two connection points
  • Make one of the two connection points an outward connection point
  • In Shapesheet, change DirX/A and DirY/B to 0 mm for both added connection points
  • Copy the shape, and glue the new shape to the original using the connection point

This is close to what I'm looking for. Because, if I rescale or move the initial shape, the other one follows. However, if I move the second shape, the glued connection gets broken. Can somebody pinpoint me the right direction?

Thank you in advance!

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3379
    • Paul Herber's website
Re: Glue multiple rectangles
« Reply #1 on: March 16, 2023, 03:12:17 AM »
The trouble is that with the behaviour you want it would be impossible to ever separate the shapes once glued.
But there are two alternatives.
1. multiple geometry sections within one shape
2. a grouped shape

Option 2 is the most likely to be what you want.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #2 on: March 16, 2023, 03:12:33 AM »
Copy the shape, and glue the new shape to the original using the connection point
What connection point type do you use for these points: same or differend for left and right size ?
« Last Edit: March 16, 2023, 03:14:11 AM by Surrogate »

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #3 on: March 16, 2023, 03:30:20 AM »
Visio have 3 types of connection points

Please read more about these types

MarkL94

  • Newbie
  • *
  • Posts: 4
Re: Glue multiple rectangles
« Reply #4 on: March 16, 2023, 03:40:37 AM »
The trouble is that with the behaviour you want it would be impossible to ever separate the shapes once glued.
But there are two alternatives.
1. multiple geometry sections within one shape
2. a grouped shape

Option 2 is the most likely to be what you want.

Yes, indeed, that makes sense. That is basically what I want. I would separate the shape by deleting it.

Option 2 I think does not suite my problem indeed, as resizing one shape does not behave as I would like.

How would option 1 work? I've never worked with multiple geometry sections work?

Thank you all for your input!

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #5 on: March 16, 2023, 03:47:29 AM »
Make one of the two connection points an outward connection point
I'm sorry I didn't notice this!
Try make one side as outward and another side as inward…

MarkL94

  • Newbie
  • *
  • Posts: 4
Re: Glue multiple rectangles
« Reply #6 on: March 16, 2023, 04:10:20 AM »
No worries! As I indicated, this does not allow me to resize all shapes individually while the others follow. Thank you for the input though!

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #7 on: March 16, 2023, 04:40:47 AM »
As I indicated, this does not allow me to resize all shapes individually while the others follow
What about their pin positions ?


Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #8 on: March 16, 2023, 07:10:03 AM »
Mark, please try this document.
Shapes behave as intended ?

MarkL94

  • Newbie
  • *
  • Posts: 4
Re: Glue multiple rectangles
« Reply #9 on: March 16, 2023, 07:52:02 AM »
Mark, please try this document.
Shapes behave as intended ?

Thank you for your effort! This is exactly what I currently have indeed. The unfortunate part is that, when moving or rescaling the object on the right, the rest of the objects remain in place. I'm looking for the behavior of the object on the left, but then for all objects glued to each other.

I appreciate your coorporation!

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #10 on: March 16, 2023, 08:04:10 AM »
In this video you can watch how I create it steps-by-step

Yacine

  • Hero Member
  • *****
  • Posts: 3241
Re: Glue multiple rectangles
« Reply #11 on: March 16, 2023, 08:44:31 AM »
I don't know if I can dare to propose my old tool. Watch reply #2 of this post http://visguy.com/vgforum/index.php?topic=6914.msg38314#msg38314
But I think that is overkill for your task.
« Last Edit: March 16, 2023, 11:22:06 AM by Yacine »
Yacine

Surrogate

  • Hero Member
  • *****
  • Posts: 1837
    • ShapeSheet™ Knowledge Base
Re: Glue multiple rectangles
« Reply #12 on: March 16, 2023, 09:08:01 AM »
when moving or rescaling the object on the right, the rest of the objects remain in place
Of course, if you move in the middle of the row there is a break in the chain.
In my case, you can resize the shape through the "Size and Position Window" without breaking the chain (see the last seconds of the video)
« Last Edit: March 16, 2023, 09:17:42 AM by Surrogate »