I want/need to draw templates for e.g. Nasi-Schneiderman diagram's like some rectangles + some lines, positioned relative to one another (grouping can solve that) but some elements should have locked height so when resized they only should adjust in width.
Basically, you certainly guessed that to change only width, you can use selector tool and use side arrows and not corners arrows. For a group, all objects within this group will undergo width transformation.
You need, within a group, to have elements with locked height and others without ?
My question is certainly stupid, but then, if you resize, their positions, relative to one another, will change, don't you think ?
These Diagrams often have a "header" (and "footer") and a "body". And the header (and "footer") should have a fixed height, only scale in width, while the complete diagram (header + body (+ "footer")) should of course scale in height and width.
There's no direct way to lock the object height, but here's my workaround.
Download this image. Select the two shapes on the right. Stretch them and see what happens. Triangle height should be preserved.
The blue triangles come from the [Pattern Along Path] path effect applied to a single horizontal line. Use the Node tool [n] to reveal the underlying shape. This line is aligned with the top of a rectangle. The pattern source is linked to the shape on the left. The pattern has a half-height vertical offset so it's top-aligned with the line.
Here's an update to my previous drawing. It's not just a new colour scheme.
Stretching shapes with the Select tool preserves node coordinates by applying a transform but distorts your line widths. In contrast, stretching shapes with the Node tool changes node coordinates but preserves your line widths. In this image I changed the rectangles to paths [Path > Object to Path] so they're easily modified with Node tool.
Use the Select tool [s] to select shapes then switch to the Node tool [n]. In the tool control bar turn on [Show transformation handles for selected nodes]. [ctrl+a] selects all nodes. Now use the selection handles to scale the shapes.
Compare this result with using the select tool in both drawings.
I want/need to draw templates for e.g. Nasi-Schneiderman diagram's like some rectangles + some lines, positioned relative to one another (grouping can solve that) but some elements should have locked height so when resized they only should adjust in width.
... I not found a possibility to do that.
Maybe some info here: http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Transforms.html
Basically, you certainly guessed that to change only width, you can use selector tool and use side arrows and not corners arrows. For a group, all objects within this group will undergo width transformation.
You need, within a group, to have elements with locked height and others without ?
My question is certainly stupid, but then, if you resize, their positions, relative to one another, will change, don't you think ?
perhaps more detail. I want to draw templates for: https://en.wikipedia.org/wiki/Nassi%E2%80%93Shneiderman_diagram / https://de.wikipedia.org/wiki/Nassi-Shneiderman-Diagramm [en/de]
These Diagrams often have a "header" (and "footer") and a "body". And the header (and "footer") should have a fixed height, only scale in width, while the complete diagram (header + body (+ "footer")) should of course scale in height and width.
There's no direct way to lock the object height, but here's my workaround.
Download this image. Select the two shapes on the right. Stretch them and see what happens. Triangle height should be preserved.
The blue triangles come from the [Pattern Along Path] path effect applied to a single horizontal line. Use the Node tool [n] to reveal the underlying shape. This line is aligned with the top of a rectangle. The pattern source is linked to the shape on the left. The pattern has a half-height vertical offset so it's top-aligned with the line.
Smart 😉
kind of black magic 😉
Here's an update to my previous drawing. It's not just a new colour scheme.
Stretching shapes with the Select tool preserves node coordinates by applying a transform but distorts your line widths. In contrast, stretching shapes with the Node tool changes node coordinates but preserves your line widths. In this image I changed the rectangles to paths [Path > Object to Path] so they're easily modified with Node tool.
Use the Select tool [s] to select shapes then switch to the Node tool [n]. In the tool control bar turn on [Show transformation handles for selected nodes]. [ctrl+a] selects all nodes. Now use the selection handles to scale the shapes.
Compare this result with using the select tool in both drawings.