layerlingPanduan pengguna
Bahasa Melayu
Buka editor

Files, saving and sharing

Where your designs live, how to back them up, which formats layerling imports and exports, and what is possible on a shared server.

Bab ini belum diterjemahkan ke dalam bahasa anda. Teks Bahasa Inggeris dipaparkan.

Where your designs live

layerling saves everything in the browser on your computer. There is no account and nothing is uploaded. (With a copy you host yourself, designs can live in a shared folder on the server instead; see the section on the shared folder further down.) Every change saves itself. The preview picture on the start page shows the view you last had in front of you when you went back with “Papan pemuka utama”. If you open layerling in the same browser days later, everything is there.

If you go back to the start page from a design with nothing in it, layerling asks whether to keep it. “Ya” or Enter keeps it, “Tidak” removes it, so empty designs do not pile up. For a design in a shared folder on a server, “Tidak” deletes the file from the server, for everyone who uses it.

That has a downside: whoever clears the browser storage or switches to another computer loses the designs. So back up important work into a file.

Your designs, your backup

Your designs live in this browser on your computer. As with all data, only what exists a second time in another place is safe: a failing drive, a new PC, cleared browser data or a bug, and without a backup the work is gone. Keeping that backup is up to you; no software can do it for you. layerling makes it easy: “Sandarkan semua” on the start page puts every design into one file in a single click (see below). Keep that file on a USB stick, in a cloud folder or on a NAS, after every bigger session.

layerling reminds you. The line above the designs of this browser grows louder the longer the last “Sandarkan semua” lies back: with the button “Buat backup sekarang” once it is older than the days set under “Ingatkan saya untuk membuat backup” (7 to begin with) and designs changed since, and in red when there are more than three designs and no backup at all, or none for 30 days. The editor reminds you once a day in the status line, with the same button. The automatic backups below do not count here: they are on the same computer.

Earlier versions

layerling also keeps two kinds of backup by itself:

  • Before saving over a file. When Ctrl+S or “Simpan reka bentuk Layerling” writes into a .lyl file that is already there (Chrome and Edge, see below), the file as it was is kept first. A file that has not changed since its last backup is not kept twice.
  • States while working. While you work on a design, a state of it is kept every 10 minutes, but only when something changed; the last six of each design stay.

“Versi terdahulu” lists them: in the editor in the export window under LYL and in the command search, on the start page beside “Pulihkan sandaran” for every design, and in the menu of a design for that one. Each shows its picture, time, kind, name and size. “Buka” opens the version as a new design: the design you have open stays as it is, and the new one is not tied to the original file, so saving it never writes over that file. The download button saves the version as a .lyl file, the bin deletes it.

In the settings (the cogwheel in the ribbon), the page “Backup” sets how many earlier versions of a file are kept (none up to 20, 5 to begin with), how often a state is kept (never, every 10 or every 30 minutes) and when the reminders start. These settings belong to this browser, not to a design. All backups together take at most 500 MB; above that the oldest states go first.

Backup folder (Chrome and Edge). Under “Folder sandaran pada komputer ini” you can choose a folder on your computer. Each backup then also goes there as a .lyl file named after the design and the time, for example Bracket 2026-11-11 20-31-05.lyl, a state with auto before the ending. Old ones go there as they do in the browser; nothing else in the folder is touched. After a reload the browser asks once more for permission the first time you save; a state kept before that stays in the browser, and the message offers “Benarkan folder”. If the question goes unanswered for 20 seconds, the design is saved without the copy, and the message says so. A folder that syncs with the cloud or lies on another drive is a second place too.

The backups in the browser go when the browser's data is cleared. That is why they do not replace “Sandarkan semua”.

Folders for your designs

With dozens of designs a single list is not enough. On the start page, “Folder baharu” makes a folder for the designs of this browser; a click on the folder opens it. Folders can hold folders.

  • Into a folder: drag a design onto the folder, or choose “Pindahkan ke …” in the design's menu, which lists every folder. A new design, and a file you open or import, made while a folder is open lands in that folder.
  • Out again: the first tile in a folder, .., and the line under the tabs lead back; you can drop a design on them too. A folder dragged onto another folder goes inside it.
  • Rename and delete are in the folder's menu. Deleting a folder deletes no design: what was in it moves one level up.
  • A picture for a folder: start its name with an emoji, such as 💡 Ideas. The folder then shows the emoji big in place of the folder icon, and the rest as its name. As the emoji is part of the name, it goes wherever the folder goes; rename the folder to change it or take it off. This works for the folders on a server too.
  • Search looks through every folder, at the names and at the descriptions: words such as coaster, drinks in a description work as tags, so "coaster" finds the design. A design that is found shows its folder, and a click on it opens the folder. The X at the end of the search field, or Esc in the field, empties it again.
  • The order of the cards is chosen beside the search: “Terkini” puts the designs you used last first, so opening a design moves it up; “Dicipta” keeps them in the order you made them, the newest first, however often you open them; “Nama” sorts them alphabetically. The browser remembers the choice. Designs on a server keep no creation date, so there “Dicipta” goes by their last change.

“Sandarkan semua” keeps the folders: the designs sit in the backup file in their folders, and restoring the backup puts them back there. The folders of this browser are separate from the folders on a server. The card pictures go into the file too, so they are back as soon as you restore.

Backing up and passing on

On the start page every design has a menu with the options to rename, duplicate and delete. The row beside the tabs has the same buttons on every tab. To delete several designs at once, click “Pilih”: a click on a card chooses it (a tick shows what is chosen), “Pilih semua” chooses every design in the list, and “Padam” asks once for all of them. “Selesai” or Esc leaves the selection. With “Sandarkan semua” you pack all designs of the open tab into one single ZIP file. “Pulihkan sandaran”, beside it (it is there on a new computer with no designs, too), brings them back, also in another browser or on another computer; “Buka reka bentuk atau import geometri” takes the same file. A restore that is cut off, as when the browser closes the page, keeps every design it got to; restoring the same backup again skips those and brings the rest. The “Bentuk tersuai” travel in the same file, in the folder Custom shapes, see Shapes. If you restore a backup into a browser that already has some of these designs, those are not added a second time; the notice says how many were already there. A design that cannot be read is left out, and the notice names it. If the page reloads in the middle of a backup, usually because a very large design took all the memory the browser allows, the start page says afterwards at which design it stopped: save that one on its own as a file (see below) or simplify its largest meshes, then back up again. Above the designs of this browser, a short line says where they stand: in orange while they are in no backup yet, or when some were added or changed since the last “Sandarkan semua” (it says when that was and how many), and in grey once all of them are in it. Only a backup of all designs counts, not one of a folder or of chosen designs. Where a design is here already and the backup has a newer version of it, a window asks at the end, once for all of them: “Ganti” puts the backup's version into the same card and keeps the one from before under “Versi terdahulu”, among the last states of the design, where the oldest goes as new ones come; “Simpan kedua-duanya” adds the backup's version as a copy beside it; “Biarkan” changes nothing. Whether two versions differ is told by what they hold, their bodies and notes, not by their times. A design that differs and was changed here after the backup's version is never replaced; the notice says how many were left. Designs on a server are not asked about. A backup of all designs also holds the settings of this browser: your default for new designs, the theme, the ribbon, your own keys and the printers. When you restore it, a tick box asks whether to take them over too; it is ticked when this browser has no default of its own yet.

“Keterangan” in the same menu (a right click on the card opens it too) takes a few lines about the design: its size, the material, which version it is, whether it has been printed. A card with a description has a small mark in front of its date, and the text shows when you hover over the card, without opening the design. On a tablet you read it in the same menu. The description goes along into the design's .lyl file, into backups, onto the server and into a copy. It appears in a box beside the card, formatted: Markdown such as **bold**, lists, links and headings works, and every line you type stays a line. Move the mouse onto the box to scroll a long text or to open a link. Designs on a server have it too: there it is written into the file on the server. One that was saved there with version 1.187.0 shows its text on the card after its next save.

Only some designs: after “Pilih”, “Buat sandaran” packs just the chosen designs, in their folders, into one ZIP file, and “Buat sandaran” in a folder's menu packs that folder with every design and folder in it. Neither takes the custom shapes along, and “Pulihkan sandaran” brings both back like a full backup. This is for the designs of this browser.

Where a backup goes: in Chrome and Edge a save dialog asks for the folder and the name, and it remembers the folder for the next backup. That way your backups go straight into a folder of your own, on a cloud drive for example. The same goes for “Sandarkan bentuk tersuai”. Other browsers put the file into their download folder; which folder that is, you set in the browser's settings. If the dialog hands back no file, the message offers “Muat turun sebaliknya”: the backup then goes into the Downloads folder as a normal download. On an iPhone or iPad the share menu opens instead, and "Save to Files" puts the backup into a folder of your choice.

To try something out without touching a design, choose “Buka salinan” in its menu on the start page. layerling makes a copy, as “Gandakan” does, and opens the copy right away; the original stays as it was, whatever you do in the copy. On a server the copy lies there next to the original.

If a design opens very slowly or not at all, usually because its history of undo steps has grown very large, choose “Buka tanpa sejarah” in its menu on the start page. layerling then reads only the current state, deletes every earlier step for good and opens the design; after a question, because this cannot be undone. To keep the steps, back the design up with “Buat sandaran” first.

You back up a single design in the editor: “Eksport”, choose the format LYL and click “Simpan reka bentuk Layerling”. The LYL file is layerling's own design format and contains everything: shapes, groups, sketches, CAD data, imported sources and the history, meaning the undo steps. Under “Sejarah tindakan yang disimpan” you choose how many of the last steps travel along; it starts at what the settings (the cogwheel in the ribbon) keep under “Sejarah”. The last stop, “Tiada”, saves the design with its current state only - the way to share a file without its undo steps. The export is a copy under the “Nama fail” you give it; the design in your browser keeps its history. Older .skf files from earlier versions can still be opened; they are then saved as .lyl. If the design is too large for the file with all those steps, only the newest steps that fit go in, as in the browser's own copy and in the backups, and the message says how many; the design itself is always saved whole.

Under “Kandungan fail” the file takes the whole design (as before) or only the selected objects, “Yang dipilih sahaja”. That is a new design of its own: without the other objects, the undo history, notes and attached files, and with a picture of only those objects. It has no project number of its own yet, so opening it never takes the place of this design. This design stays tied to its own file: the new file is not remembered as its file, there is no rename offer, and Ctrl+S still saves the whole design where it did before. With nothing selected, only the whole design can be picked. Handy for a part you keep in a library and bring into other designs with “Masukkan ke dalam reka bentuk ini”.

Saving into your own folder (Chrome and Edge). There the button opens your system's save dialog, so you pick the folder and the name yourself, and an existing file can be replaced. Afterwards Ctrl+S saves the design into that same file again, without a dialog. A design opened from a .lyl file with “Buka reka bentuk atau import geometri” or the open button of the export window saves back into that file, too. The browser may ask once for permission to change the file. After the page is reloaded the design forgets its file, and the next Ctrl+S asks for it again; the dialog starts in the folder you used last. Firefox and Safari do not allow a page to write into files like this. There the file is downloaded to the Downloads folder as before, and Ctrl+S downloads it again; Firefox can be set to ask for the folder each time under Settings, General, Downloads. If you give the file a different name there, the design keeps its own name, since a version or a date in the file name is often meant that way; the message after saving then offers “Namakan reka bentuk dengan nama ini juga”.

When the file was changed somewhere else (Chrome and Edge). A design file in a folder that is synced to the cloud can be worked on at a second computer. If the file has changed since you opened or saved it here, Ctrl+S does not write over it: the message says so and stays until you answer it. “Overwrite anyway” saves over the file after all, and the file as it was stays under “Versi terdahulu”, as with every save. To keep both versions, save under another name with “Simpan reka bentuk Layerling” in the export window. After the page is reloaded the design no longer knows its file, so nothing is compared then.

When the save dialog saves nothing. If the dialog closes without a file, the message at the top says so and offers “Muat turun sebaliknya”: the design then goes to the Downloads folder like in Firefox. The browser reports a dialog closed with Cancel the same way as one it could not use, so on a PC where the save dialog fails for every folder this is the way to keep saving. The same button comes when the file was chosen but could not be written, for example because a virus scanner blocks it; a file left empty is removed again.

An STL export whose dialog hands back no file gets the same message and button. To leave the save dialog out altogether, switch on “Simpan reka bentuk sebagai muat turun” in the settings under “Simpan dan eksport”: “Simpan reka bentuk Layerling” and Ctrl+S then always save the design as a download, and “Simpan STL dan 3MF sebagai muat turun” does the same for STL and 3MF.

Attachments

Instructions, a parts list, notes, a photo or a datasheet can stay with the design as files. “Lampiran” in the “Fail” group of the ribbon, the paperclip, opens the list; a small dot on the paperclip shows that the design has some.

  • “Muat naik lampiran”: Choose one or more files: .md (Markdown) or .txt as plain text (UTF-8), .png, .jpg, .jpeg or .webp pictures, or .pdf documents. A file is checked by its content, so a file that is not what its name says is refused, and other types, .svg among them, cannot be attached. A text file can be at most 2 MB, a picture 16 MB and a PDF 32 MB; a design holds up to 32 files and 64 MB together.
  • The list: The arrow downloads a file as it was uploaded. The bin removes it; the row asks once more first, and a removed file cannot be brought back with undo, because attachments are not part of the undo history.
  • Reading a file: The eye on the row of a .md or .txt file opens it in a window to read, without downloading it. Markdown is shown formatted, with headings, lists, tick boxes, tables and code; a text file is shown exactly as it is written. Only links to web pages and e-mail addresses work, and they open in a new tab. Pictures named in the file are not loaded: their description stands in their place. Escape, the cross or a click beside the window closes it. Reading works in the History view too.
  • Looking at a picture: The eye on the row of a picture opens it in the same window, shrunk to fit when it is large. A PDF has no eye: download it and open it in the program you read PDF files with.
  • A name that is already there: layerling asks what to do. “Gantikan” puts the new content into the file of that name, which keeps its place in the list. “Namakan semula” adds the new file under another name and suggests the first free one, such as notes 2.md. The cross leaves the new file out. Upper and lower case count the same, and the same file uploaded again changes nothing.

Attachments are saved with the design like everything else: in the browser, in a LYL file, in a backup and in a design on a server, which they reach as soon as one is added or removed. They do not come along with “Masukkan ke dalam reka bentuk ini” or with a custom shape, and a bug report does not contain them. A design with attachments is saved as a newer kind of LYL file: an older layerling says that it cannot open it instead of dropping the files. A design without attachments is saved exactly as before.

Exporting

Click “Eksport” or press Ctrl+E.

If the window covers something, drag it by its title bar to another spot; the Import and Attachments windows move the same way. A double click on the title bar puts it back.

The export window with the formats STL, 3MF, OBJ, STEP, SVG, PNG, LYL and 2D.
The export window with the formats STL, 3MF, OBJ, STEP, SVG, PNG, LYL and 2D.

At the top is the file name, below it you choose the format. The suggested name is the design's; when one body of several is exported and has a name of its own, it is that body's name. With something selected, only the selection is exported, otherwise the whole design. If the selection leaves out visible parts, a note in the window says so plainly, and “Pilih semua” selects everything visible in one click. Once the file is written, the window closes by itself; if the export fails, it stays open with the message.

FormatForWhat to know
STLslicer and 3D printingA triangle mesh. The simplest and most widespread format. An STL has no parts: bodies that overlap are joined into one mesh. To keep them as separate parts, export 3MF. In Chrome and Edge the first STL export asks where to save, and later STL exports of the design write into that file, until you type another name in the file name field or press “Simpan sebagai…”.
3MFslicer with coloursEvery body stays a part of its own with name and colour. Overlapping bodies are only joined when they share a colour; where a shape sits inside one of another colour, say a logo in a plate, the one built first leaves room for the later one. Suited to PrusaSlicer, Bambu Studio, OrcaSlicer and Cura. Bambu Studio and OrcaSlicer ask on opening how to map the colours onto your filaments, and call the file "not from Bambu" - the message is harmless. Every body comes in on the filament of its colour, which you can change in the slicer like that of any object; OrcaSlicer and the slicers built on it take it from there too. They do not read a colour per face, though, so a body of several colours, a Multicolor group or a body painted in layerling, also has its faces painted with their colours' filaments, as painting in the slicer would: OrcaSlicer and PrusaSlicer 2.9 then print each colour with its filament, PrusaSlicer up to 15 colours, and Bambu Studio 2.9 takes the filaments from the painting instead of asking. A body of one colour is not painted, so inside the print the colour changes exactly where one body meets the next. Under “Warna dan filamen” the export window lists the colours in the order the slicer numbers its filaments and points out two colours that look nearly alike: “Satukan” gives both the colour used more.
OBJmodelling and exchangeA widely supported mesh format. Colours are stored as vertex colours in the same file, with no extra .mtl. Bambu Studio and OrcaSlicer read them and ask, as with 3MF, how to map them onto your filaments; other programs see only the shape. As with 3MF, overlapping bodies are only joined when they share a colour.
STEPa full CAD programKeeps boxes, cylinders, spheres and cones as exact geometry, and so shapes made from an outline (star, heart, ellipse, tube, half sphere, round roof, rounded box, dovetail, the bores and more), the bent tube, the wedge, the pyramid, the paraboloid, the curved cone, the plain round vase, threads, springs and gears, plus fillets and chamfers. The first STEP export in a session loads the CAD kernel (about 22 MB) once.
SVGlaser cutter and plotterA clean top view in millimetres, including holes and curved outlines. Under “Pandangan”, “Jejak pada satah kerja” writes only the outlines where the objects stand on the workplane. “Tepi yang kelihatan dari atas” writes the edges you see from above as lines, each body in its colour; see below.
DXFlaser cutting shopThe same top view (“Siluet dari atas” or “Jejak pada satah kerja”) as one outline of lines, true arcs and circles - no polylines, splines or curves made of short straight pieces - on layer 0 in white, DXF 2000 in millimetres, not mirrored. Bodies that touch become one outline, so no line is cut twice. Shops ask for one part per file: select the part before exporting. Not yet tried on a laser cutter: feedback is welcome.
PNGforum posts, print sites, questionsA picture of the view as it is, at twice the resolution and without handles, selection frames and dimensions. “Paparkan platform binaan” and “Latar belakang lutsinar” are chosen in the window. Turn and zoom first until the picture is right; the selection does not matter here.
LYLlayerling itselfThe editable design with everything that belongs to it.
2Dworkshop, lathe and mill, documentationA drawing at 1:1 as PDF or SVG: front, top and right-side views on an ISO sheet. See below.

Bridges for parts that would fall out (DXF and SVG). When a plate with text is cut by a laser or a plotter, the middle of letters like o, a and b falls out. Tick “Jambatan untuk bahagian yang boleh tercabut” in the export window of the DXF, or of the SVG with the top view, and small bridges hold such parts to the material round them, as on a stencil: “Lebar jambatan” (0.5 to 3 mm) and “Jambatan bagi setiap bahagian” (1 to 4) are set beside it. A bridge never touches another outline or another bridge and never leaves a gap too narrow to cut; parts that would only hold each other are tied to the plate too. If a part gets no bridge at the chosen width, the message after the export says how many. Nothing changes unless the box is ticked.

STL into your own folder (Chrome and Edge). There the first STL export of a design opens your system's save dialog, so you pick the folder and the name yourself and can replace an existing file. After that every STL export of the design writes into that same file without a dialog; the export window shows which file, and Save as… next to the export button picks another. The dialog remembers its own folder, apart from the one for designs, so the slicer files can stay with the slicer. After the page is reloaded the design forgets its STL file and the next export asks again. Firefox and Safari download the file as before. If you would rather have every STL as a plain download, so that the browser numbers a name it has already used (name (1).stl, name (2).stl) as Tinkercad does, switch on “Simpan STL dan 3MF sebagai muat turun” in the settings under “Simpan dan eksport”.

3MF works the same way: its first export asks where to save, later 3MF exports of the design write into that file, and “Simpan STL dan 3MF sebagai muat turun” makes it a download as well. STL and 3MF each keep a file of their own, in the same folder memory.

A hole you have not grouped is taken out of every body it reaches when you export, as the view shows it. So there is no need to group before each export. With a selection, only the selected holes count. A hole cannot be exported on its own; layerling points that out.

STEP only carries exact CAD bodies. An imported mesh is made exact for the file, as “Jadikan tepat” does (see "Making an imported mesh exact" below), which can make the export take up to a minute; a mesh that is mostly free-form, such as a figure, is left out, as is anything else that cannot be written exactly. The message after the export names those bodies and says why. For the printer, use STL or 3MF, which carry everything. A group goes into the file as one body where its parts meet, as you see it; with “Pelbagai warna” on, each part stays a body of its own in its colour.

SVG for a laser or plotter

With “Tepi yang kelihatan dari atas” under “Pandangan”, the SVG shows the design as you see it from above, like the top view of a drawing: every edge you can see is a line, and edges hidden by other parts are left out. Each line has the colour of its body, so a laser or plotter program that sorts by colour puts each colour on a layer of its own. Whether a layer is cut, scored or engraved, you choose there.

Every area a colour shows has a closed outline, and where two bodies meet, both get the line. The areas are filled even-odd, so filling a colour to engrave it leaves its holes and the places of other bodies free. A part reaching through another gets the line where it comes out. The SVG is at 1:1 in millimetres, with the front of the design at the bottom of the page, in the same place as the silhouette. A design with too many edges for this view, such as a plate with hundreds of holes, gets its filled silhouette instead, and the message after the export says so.

Under “Pandangan” there are also four pictures of the design as you are looking at it right now, for an illustration, a manual or a pen plotter: “Pandangan semasa: tepi yang kelihatan” draws the edges you can see, “Pandangan semasa: termasuk tepi tersembunyi” adds the ones behind as thin dashed lines, and “Pandangan semasa: garis luar” only the outline. “Pandangan semasa: mesh segi tiga” draws every triangle edge you can see, the mesh the bodies are printed from, as thin lines; on round parts it gets busy. Turn the view as you want it before you export. The picture looks straight from that direction, without perspective, so it stays at 1:1 in millimetres and parallel edges stay parallel. Each line has the colour of its body; surfaces are not shaded. A design with too many edges is refused with a message; choose fewer objects then.

A drawing for the workshop

Choose the format 2D (hover over it and it says Drawing) and, below the file name, PDF or SVG. With something selected, only the selection is drawn, otherwise the whole visible design; holes you have not grouped still cut the parts they reach.

layerling draws the front, top and right-side views in first-angle layout (the right side to the left of the front view, the top view below it) on the smallest ISO sheet that fits, from A4 to A0, or a larger one if the part needs it. It is always at 1:1. Each view carries its overall width and height, and edges you cannot see are dashed. Round bores that run parallel to a view direction get a centre cross and a label (F1, T1, R1), and a table lists their diameter and position, measured from the lower-left corner of the view. The title block in the lower-right corner holds the name, scale, units, date and sheet number. The words on the sheet follow the interface language.

The PDF is drawn on the paper you choose under “Kertas”, A4, A3, US Letter or US Tabloid: a bigger drawing is split over several pages of it, still at 1:1, and only a view that fits no page keeps one larger sheet. The SVG always stays one sheet. Printed on paper, the drawing is a quick check of the size before the 3D print, see Preparing for 3D printing.

Below PDF or SVG you can fill in “Nombor lukisan”, “Semakan” and “Dilukis oleh”; they go into the title block, and a field left empty shows a dash. The number and revision stay with the design, also in its .lyl file, and your name is kept in this browser for every design. The date is always the day of the export.

“Tambah dimensi…” opens a window for dimensions of your own, one view at a time. Click two corners or bore centres, or one straight edge, then click where the dimension line goes: beside the points it measures up and down, above or below them across, and between them straight from one to the other; “Arah” fixes the direction. A click on the rim of a bore gives its diameter. The dimensions stay with the design, also in its .lyl file, and appear in the PDF and the SVG. If you change the part so that the corners of a dimension are gone, it is left off the drawing and the window marks it.

Print at 100 % or "actual size", or the lengths will not match. What the drawing does not do: threads, depths, tolerances and bores at an angle are not dimensioned, and the sizes come from the model as a mesh, so they are nominal. A very detailed part (over 100,000 triangles) or more than 200 bores is refused with a message; choose fewer objects then.

The projection is based on the drawing work of Cadverix-3D by WC3D.

How much filament does it take?

For STL, 3MF, OBJ and STEP the “Bahan” box shows the volume, weight and length of 1.75 mm filament of what is exported. It counts like the file: visible bodies only, holes taken off, overlaps only once. On the right you pick the filament - PLA, PETG, ABS, ASA, TPU or PA (nylon) - and the weight follows its density. The volume is the body's own. Weight and filament are a rough estimate for a print with walls and infill: you set the “Infill” (15 % to begin with) and the “Dinding” (2) under the heading, and the box says what it counted and what the same part would weigh solid. Your slicer's own settings decide the real number, so take it as a guide: good for comparing designs and for whether the spool will last. At 100 % infill the box counts the part as solid, the upper bound. The box works out its numbers when you press “Kira”, so the export window opens at once even for a finely traced model.

Sending to a slicer

layerling can run inside a slicer, in a tab that a slicer plugin adds. When the plugin has introduced itself to the editor, the export window shows a second button next to the download, named after the slicer, for example Send to OrcaSlicer. It appears for the formats the slicer takes, usually STL and 3MF. A click hands the file the export window would write (same name, format and selection) to the plugin, which puts it into the slicer: no download folder in between. Nothing leaves the editor until you click, and in an ordinary browser tab the button is not there.

Which slicers can do this today: OrcaSlicer from version 2.5 on, whose plugins can show a web page in a tab of their own. Bambu Studio has no plugins of this kind, and PrusaSlicer's plugins (in the 3.0 previews) only ask for settings in a dialog and cannot show a page; with these two, export the STL or 3MF and open it in the slicer as before. The plugin for OrcaSlicer is orca-layerling by joaobordignon, a separate project: it is not part of layerling, we have not tested it ourselves, and its first version runs on Linux only. For plugin authors, the small message format is described in EMBEDDING.md.

Importing

With “Import” or Ctrl+I you bring foreign files into the design.

The import window: open or insert designs and drop geometry.
The import window: open or insert designs and drop geometry.
  • “Buka reka bentuk Layerling”: A layerling design (.lyl, or an older .skf) comes back as a new design.
  • “Masukkan ke dalam reka bentuk ini”: The bodies of a layerling design are added to the open one. Handy for basic shapes you need again and again: build them once, save them and bring them in every time. Drop one or more .lyl files on the drop zone below and they are inserted the same way. Its notes come along, closed and numbered on after the ones already in the design, and so do its reference points.
  • “Masukkan dari pelayan”: The same for a design kept on the server (shown when there is a server store). Pick the folder and click the design; its bodies are added to the open one.
  • DXF: A DXF, as a laser cutting shop or a supplier sends a part outline, comes in as parts to work on: every closed outline a body 4 mm high and every hole in it a hole of its own beside it (a round one a cylinder), so a hole is moved and sized in the 3D editor like any other; select them all to move the part. In millimetres (a file in inches is converted, one without a unit is read as millimetres), arcs and circles kept as true arcs. Lines, arcs, circles, ellipses, polylines, splines and blocks are read; text, dimensions and hatches are left out, and outlines that do not close too - the message says how many. Set the thickness in the properties.
  • Add geometry: Drop STL, OBJ, 3MF, STEP, SVG, PNG or JPG files in the window or click to choose a file. Imported meshes can be turned, moved, cut with holes and built upon. A STEP file with several solids, an assembly from another CAD program, comes in as one body each under the name the file gives it, in its place to the others and in the colour the file gives it; several bodies under one entry of the file, the screws of a part say, become a part each. Its assemblies become bundles under their names, an assembly inside one a bundle inside the bundle; so a whole assembly hides or moves at once, and a double click opens it to work on a single part. An SVG comes in as a sketch body, one from a tracer such as picsvg.com or Inkscape's "Trace Bitmap" as well: its outlines become the lines and curves of a sketch, 4 mm high and reading from above as in the drawing. In the properties you set its “Isi lakaran”, an area or a stroke outside, inside or centred, and “Siluet (Tanpa Lubang)” leaves the holes out, see Sketches, "Fill and silhouette". You change the points themselves in sketch mode. If it should come in at a size of your own, type the width in the import window under SVG and picture: width in mm first, as in Tinkercad: the drawing is scaled to it, height and depth with it, and the field is empty again after that one import; left empty, an SVG comes in at its own size and a picture 50 mm wide. Only a very intricate SVG with more than 10000 lines and curves comes in as a fixed mesh. A PNG or JPG picture is traced into an outline and comes in the same way, as a sketch body 50 mm wide that you can resize afterwards: the part of the picture that is not its background, the background being the part that takes up more of the picture's edge. An SVG that holds nothing but one picture is traced the same way. A shape that cannot be built into a solid, such as an outline that crosses itself or touches itself at a point, is left out, and after the import layerling says how many there were. Then it helps to join overlapping pieces in the drawing program, close the outlines and save the file again. Drawings made on one page, such as the layers of one document exported as separate files, line up again when you switch on “SVG: kekalkan kedudukan pada halaman lukisan” in the import window before you import them: each keeps its place on the page, where otherwise each is centred on itself. An SVG drawn in several colours comes in as one body per colour as well, each in its colour and in its place; with more than 12 colours, as a traced picture has, it stays one body. A coloured OBJ or 3MF comes in as one body per colour, each in its place. In an OBJ the colours sit either in the file itself, as in an OBJ from layerling, or in an .mtl beside it. Select that one too, or import the whole ZIP the way Tinkercad hands out its OBJ. A 3MF carries its colours itself, and in a project from Bambu Studio, OrcaSlicer or PrusaSlicer each part takes the colour of its filament. A 3MF with several objects, such as a project with one object per plate, comes in as one body per object; modifiers, negative volumes and support blockers from the slicer are left out. Colour painted onto faces in the slicer is not read. A project that changes filament at set heights, so that the colours lie in layers one above the other, asks on import whether to cut it there into a body per colour; without it, it comes in in one colour. Parts of one model exported as separate files, such as the body, arms and legs of a miniature, fit together again when you switch on “STL, OBJ, 3MF: kekalkan kedudukan daripada fail” in the import window: every STL, OBJ or 3MF then stands where its file puts it, the file's origin in the middle of the plate and its height above the plate as in the file, so a part whose file puts it below the origin stands below the plate. Otherwise each file comes in on its own near the middle of the plate. “Warna badan yang diimport” in the import window sets the colour of bodies whose file gives them none; your browser remembers it.

Two ticks under that field (Discussion #2121): with “Nilai ini ialah tinggi” the number is the height of the drawing on its page instead of its width, and “Kekalkan untuk import seterusnya” leaves the number in the field, so every drawing that follows comes in at the same size, also the next time you open layerling.

  • From Tinkercad: An STL or OBJ export from Tinkercad comes in as geometry like any other mesh, and an OBJ keeps the colours. The real shapes come across with a free tool from the community: Export to layerling by taylormadearmy, a bookmark that converts a Tinkercad design in your browser into a .lyl file, which you open here with “Buka reka bentuk Layerling”. It is not part of layerling and we have not tested it ourselves yet; its author tested it on Windows with Chrome.

A design saved with a newer layerling may hold things your version does not know yet, such as a new shape, a new setting or fonts of one's own. If layerling cannot open it for that reason, the message names both versions. If it opens, the notice says that newer things may look different here. Either way, reloading the page helps: layerling.com always serves the newest version. The installed app picks it up the next time it starts; on your own server you install the update.

Template pictures are added in sketch mode, see Sketches.

Large meshes

layerling is made first of all for building exact CAD bodies: a cylinder is stored as a circle and a height, a rounding as one curved face. An imported mesh is an approximation made of triangles, the finer the more of them, and every one of them is held in memory, drawn and saved. Smaller parts as meshes are no problem. Very large meshes, such as scans, sculpts or models from Blender with hundreds of thousands or millions of triangles, make the editor slower, take a lot of memory and make saving slow, and cutting them may not work at all. After an import that brings such meshes in, layerling says so once. Simplify such a mesh first (see below), import only the parts you need, or build simple parts from layerling's own shapes.

Simplifying an imported mesh

A scanned or sculpted mesh often has far more triangles than its shape needs, and every one of them is carried along while you move, cut and save. “Permudahkan mesh” in the Modify group (or in the right-click menu of the body) shows the mesh as it is next to what a chosen share of its triangles would leave of it; both views turn and zoom together with the mouse buttons of the workplane. Set how much to keep as a percentage or a number of triangles, and “Permudahkan” takes the lighter mesh. The result is a plain mesh: for the result of a cut or merge, “Edit kumpulan” and its original parts are given up. With “Kekalkan tepi dan lubang” switched on, as it is to begin with, sharp edges and the rims of holes stay exactly where they are while flat faces still lose most of their triangles; switched off, the simplifier may round them off to reach a lower count. If the simplifier stops above the number you asked for, the window says so and why: with “Kekalkan tepi dan lubang” on, a body made of flat faces and sharp edges, such as boxes and wedges, often cannot lose more.

Cutting, merging and intersecting an imported mesh is calculated in your browser, so the workspace settings limit how many triangles such a mesh may have (“Potong mesh yang diimport sehingga”). A mesh above the limit is not processed, and the message names its triangle count; simplify the mesh first, or raise the limit if your computer can take it.

Making an imported mesh exact

An STL, OBJ or 3MF file holds only triangles, even when the part was drawn in CAD with flat faces and round bores. “Jadikan tepat” in the “Permukaan” group (or in the right-click menu of the body) looks through those triangles for the planes, cylinders, cones, spheres and tori they were made of and rebuilds the body from them as an exact CAD body: a bore becomes one real cylinder with a round rim instead of a hundred narrow strips. After that, “Fillet” and “Chamfer” follow one clean edge, “Padam muka” takes away a whole rounding or the wall of a hole, and a STEP export carries the real faces. The status line says what was found, such as "planes: 9, cylinders: 4".

What fits none of these surfaces stays as small flat facets, and the message says how much of the surface that is. A body that is mostly free-form, such as a figure or a sculpted shape, stays a mesh, and so does a mesh with gaps or crossed walls, which cannot close into a solid. Up to 400,000 triangles are taken, and a large mesh can take a few minutes. A larger mesh goes below that with “Permudahkan mesh” and “Kekalkan tepi dan lubang” switched on; otherwise take the mesh as it came, it comes out cleanest. One undo step brings the mesh back.

After the import of a single mesh from 10,000 triangles up to the size of a large mesh, layerling looks through it in the background for a few seconds. If it is made of simple faces such as planes and cylinders, a message offers “Jadikan tepat” with a button: such a part often needs far fewer triangles as an exact body. With this offer the mesh stays if the exact body would not be lighter, and the message says so; a figure or a scan gets no offer.

For a small mesh with round faces, up to 4,000 triangles, the edge tools do this by themselves: rounding an edge of such an STL rebuilds it the same way first.

Reporting a bug

If layerling does something unexpected, save a “Laporan pepijat”: the link sits in the footer at the bottom, next to the forum. It is a ZIP file, because GitHub and many forums refuse a bare .lyl: inside are your design as a .lyl and a short text file with the version, browser, screen size, the last messages and any errors. The start page opens the ZIP like a backup, or you unpack it and open the .lyl. Nothing personal is in it. Attach the file to your post in the forum or on GitHub, so the problem can be followed with exactly your design.

If layerling stops with an error, a window with the error message shows instead of a blank page. From it you can save the state of the design last stored in the browser as a .lyl file, go back to the overview, or start a new design. The error message from the window and the saved file help when you report it.

Shared designs on a server

When layerling runs on your own computer or web server, it can offer a shared folder in which all users keep designs. The start page then holds the designs in two tabs, “Pelayan” for the shared folder and one for this browser, each with the number of designs in it; the one with more designs comes first and is open. You create folders there, move designs by dragging and search across the whole folder. A design that lives there saves itself back to it. A design from this browser goes onto the server by dragging its card onto the “Pelayan” tab, or with “Simpan di pelayan” in the card's menu. A folder of this browser goes onto the server the same way, with everything in it, and designs that go onto the server keep their folders there, also with “Simpan semua di pelayan”. The way back is “Simpan dalam pelayar ini” in the menu of a design on the server, or dragging its card onto the tab of this browser: the design then lives only in this browser and leaves the server folder, also for the others. While the “Pelayan” tab is open, “Cipta reka bentuk 3D baharu” and “Pulihkan sandaran” put the design into the server folder you have open, and “Sandarkan semua” packs every design of the server, in its folders, and its custom shapes into one ZIP file. The start page shows a design by its file name, so renaming a design, on its card or at the top of the editor, renames the file on the server too. Deleting a design or a folder removes it for good, together with its working copy in this browser. Custom shapes kept on the server sit in its folder Custom shapes, see Shapes.

Two things make that quicker: “Simpan semua di pelayan” on the start page puts every design of this browser on the server in one go, and ticking “Reka bentuk baharu pada pelayan” makes every new design start in the server folder, so it is saved there from the first change on. With the tick, everything else that makes a design starts there too: opening or importing a file, “Pulihkan sandaran” (with the backup's folders), duplicating and taking a state from the history, each into the server folder you had open; “Folder baharu” on the start page then makes a folder on the server. A design made in the first moments waits until the server has answered. When new designs must always start on the server and this browser holds none of its own, the start page shows only the server's designs. The tick is kept in this browser. A design that cannot go - its name is taken on the server, say - stays in the browser, and the message says how many.

The other export formats (STL, 3MF, OBJ, STEP, SVG, PNG and the drawing) can go into the same folder: in the export window, “Simpan ke pelayan” writes the file next to your design, or into the folder you have open on the start page for a design that is not on the server. A program that shares the folder, such as a slicer in Docker, can open it from there. The file does not appear in the list of designs. If a file of that name is already there, the message says so, and pressing the button again replaces it.

That is not simultaneous editing: whoever opens a file works on a copy of their own. If somebody else has changed the file in the meantime, layerling refuses to overwrite it.

On layerling.com this function is not switched on. How to set it up on your own server is described in the README on GitHub.