layerlingInstrukcja
Polski
Otwórz edytor

Sketches: from outline to body

Draw a flat outline, round or chamfer its corners and pull or spin it into a body.

Ten rozdział nie jest jeszcze przetłumaczony na polski. Poniżej tekst angielski.

Not everything can be put together from basic shapes. For parts with a contour of their own, such as a bracket, a tooth profile or a vase, you first draw the outline and then make a body from it. That is what sketch mode is for.

Starting a sketch

At the top, switch from „Edytor 3D” to „Szkic”. Click „Szkic w 3D” in the ribbon and choose what the outline should become:

The editor then shows a sheet with a grid. That is your drawing surface.

Drawing

The ribbon in sketch mode is divided into areas:

A body comes only from a closed outline.

An L-shaped outline. At the selected corner point, top left, the lengths of the two lines are shown in millimetres, and the angle between them in degrees.
An L-shaped outline. At the selected corner point, top left, the lengths of the two lines are shown in millimetres, and the angle between them in degrees.

Lines by numbers

Once you have set the first point with „Linia” or „Gładka krzywa”, just type a number: two fields open next to the line, „Długość” in millimetres and „Kąt” in degrees. < or Tab moves to the angle, so "50<30" gives a line 50 mm long at 30°, as in AutoCAD. Enter sets the point, and you can type the next line straight away; Esc closes the fields without ending the line chain.

The angle counts counterclockwise from the right: 0° to the right, 90° up, 180° to the left, 270° down. Leave it empty and the line follows the pointer, so you give only the length and show the direction with the mouse. Sums like "40+12.5" work in both fields. If the point would land off the plate, the field says so and waits for another value.

Curving a straight side

Select a straight line and click „Wygnij linię” in the bar that appears: the side bows out into a curve, as in Tinkercad, and shows its two handles. Drag them to shape the curve; the further out a handle stands, the stronger the bend. „Linia prosta” makes the side straight again. A point you select can be made round with „Gładka krzywa”: it gets handles of its own and the lines next to it become curves.

The bottom side of the L-shaped outline bent into a curve, with its two handles at the ends.
The bottom side of the L-shaped outline bent into a curve, with its two handles at the ends.

Reading and typing angles

Click a corner point where two straight lines meet: next to the lengths, layerling shows the angle between them in degrees, with a small arc. On a closed outline it is the angle inside the shape, so a dent reads above 180°. Click the value and type a new angle. One of the two lines then turns about the corner and keeps its length, and the other stays where it is. The line that turns is drawn dashed; Tab switches to the other one, Enter applies and Esc cancels. What hangs at the far end of the turned line goes with it.

Moving a point changes three angles: at the point itself and at the two neighbouring corners at the far ends of its lines. So layerling shows those two as well, and each can be clicked and typed. That way you set, say, the bottom left corner to 75.5° while the top left point, which moves for it, is selected. You can calculate here too, e.g. "90-14.5".

A corner shows no angle where a curve meets it, or where more than two lines meet. The „Pokaż wymiary” button on the side bar hides the angle together with the lengths.

Rounding or chamfering corners

Click a corner point and choose „Zaokrąglij narożnik” or „Sfazuj narożnik”. A small field appears for the „Promień” or the „Odległość”. Enter the size and confirm with the check mark. This works for corners between two straight lines.

Several corners at once work too: select them with Shift and a click each, or pull a frame round them, and choose „Zaokrąglij narożnik” or „Sfazuj narożnik” from the bar that appears. All of them get the same radius or distance. Where two selected corners share a side, each takes at most 45 % of it, so a rectangle rounded all round comes out alike at every corner. Points that are not a corner between two straight lines are left out, and the message says how many. A frame round a whole shape, or a click inside it, selects its corners and its lines together, and the bar then offers „Wygnij linię” and „Linia prosta” for all the selected lines next to the corner tools.

The corner at the top left is rounded with a 12 mm radius.
The corner at the top left is rounded with a 12 mm radius.

Construction lines

A construction line helps you place points without becoming part of the body. It is drawn dashed and never counts as outline: you can pull it as far beyond the shape as you like and the body does not grow.

Making a body from it

Click „Zakończ szkic”. The outline stands as a body on the workplane. In its settings you change the height, the colour and everything else as with any other shape. When you resize it, layerling builds it again from the sketch a moment later, and the sketch grows with it. So it stays an exact body that takes chamfers and fillets, and the next time you edit it the sketch has the size the body has.

If the workplane lies on the side of a body, you draw the way you look at that side: up in the sketch is up on the finished body too. The faint outline of the body in the sketch view shows where it stands. If the workplane cuts through a body, the sketch view shows the outline of that cut instead, so a hollow body appears as a ring and you can line the sketch up with its walls. A point you set or drag close to a corner of these outlines snaps exactly onto it; a small blue ring shows it. That way you take edges of other bodies into the sketch, even when the workplane does not lie exactly on them.

The outline has become a body. The corner is rounded.
The outline has become a body. The corner is rounded.

With „Edytuj szkic” you can return to the sketch at any time to change it. A double click on the body does the same, as in Tinkercad (a locked body stays closed); „Dwuklik otwiera szkic” in the settings switches that off. Edge treatments you already made on the body are lost, though, because the edges are created anew.

Revolving

When revolving, you draw half the cross-section to the left of the axis shown in the sketch. Next to it you see a 3D preview of the revolve. It shows at once what the body will look like. The outline must be closed. At the end click „Zakończ obrót”.

A revolved body is an exact body, like an extruded one: it takes chamfers and fillets, and you can hollow it, for a cup or a vase. A body revolved with an older layerling is a mesh; open „Edytuj szkic” and finish it again to make it exact. A profile that reaches across the axis cannot be built exactly and becomes a mesh, as before.

Building as a stroke

Normally the area inside a closed outline becomes the body. With „Obrys” in the „Zakończ” section you build the line itself instead, with a width you set. Tick „Buduj jako obrys” in the panel; the sketch shows straight away what comes out.

The sketch keeps the drawn line. Open it again and you go on changing line and stroke; untick the box and the area is built again. Curves are broken into short straight pieces for it. A revolve has no stroke.

Fill and silhouette

You can set the stroke without opening the sketch too: in the properties of a sketch body, choose „Powierzchnia”, „Obrys na zewnątrz”, „Obrys do wewnątrz” or „Obrys na środku” under „Wypełnienie”, with „Szerokość linii” and „Narożniki”. The body is built again straight away, where it stands. These match the fill modes of Tinkercad's SVG import: default, outer line and inner line. „Szerszy” keeps the area filled and grows it by the line width all round, with sharp, round or bevelled corners: a base layer under a logo for a multicolour print, which the stroke outside alone would only give as a ring.

„Sylwetka (bez otworów)” leaves out every outline lying inside another: holes and whatever lies in them. Only the outer outline stays. Together with „Obrys na zewnątrz” it makes a cookie cutter: import an SVG twice, once with the silhouette as an area for the base and once with the silhouette and 1 to 2 mm of stroke outside as the wall. The switch is in the „Obrys” panel in sketch mode as well.

Fillets and chamfers on the edges go when the body is built again, as when the sketch is edited.

Slanted walls, for stamps

An extruded sketch has vertical walls. A stamp, an embossing die or a punch wants slanted ones, outside and inside, with the same wall thickness all the way. Layerling has no draft angle for an extrusion, but for plain outlines the „Zwężenie” gets you there. One way that works:

  1. Draw the outline with the hole it needs and make a body of it. Duplicate the body (Ctrl+D).
  2. On the first body, switch on „Sylwetka (bez otworów)”, so the hole is filled, and give it a wider bottom than top with „Zwężenie”.
  3. On the copy, open its sketch again and delete the outer outline, so that only the outline of the hole is left. Finish the sketch, switch the body to „Otwór” and give it a narrower bottom than top with „Zwężenie”.
  4. Move the hole into the first body, where the hole was, and group the two.

The walls now slope outside and inside. Taper scales the whole outline, so this is exact for plain shapes, where you can choose the sizes so the walls run parallel, and only an approximation for fine details such as lettering.

A picture as template

With „Dodaj obraz” you put a photo or a drawing under the sketch and trace it. You can set its size, opacity and position. Once the picture sits right, lock it with L so you do not move it by accident while drawing. A locked image is out of the way: clicks go through it, so you can pick lines and points on top of it and drag a frame over them. To select it again, for example to unlock it, Alt+click it. If its settings at the right edge cover the picture, drag them away by their title bar; a double-click on it docks them again.

Under „Wyrównaj” you line up a photo that was not taken straight:

All four touch the reference only, never the sketch.

Keys in sketch mode

KeyEffect
Escend the line chain, clear the selection
Deletedelete the selected element
Ctrl+Ccopy the selection
Ctrl+Xcut the selection
Ctrl+Vpaste
Ctrl+Dduplicate the selection
Ctrl+Zundo
Shiftwhile drawing: snap the line in 15° steps; while dragging: keep movement on one axis
digit, <, Tab, Enterwhile drawing: type and set the length and angle of the next line
Rrotate the closed sketch by 45°
Llock or unlock the template image