Featured Article

What is a Kicad_prl File

William Aug 14, 2026

Ever wondered about those mysterious files with the '.prl' extension, often found alongside your Kicad projects? They're not alien code or some quantum cryptography - it's just plain text, or more specifically, a rutascript file used by KiCad's 3D engine. Rutascript, you ask? Yes, it's a simple scripting language used to define the movement and behavior of objects in KiCad'srouter-3d extension, which enables 3D representation and routing of your PCB designs.

KiCad Utilities Generate Parts; Track Costs
KiCad Utilities Generate Parts; Track Costs

Now that you have a basic idea, let's dive deeper into understanding what a 'kicad_prl' file is and why it's important, or rather, why it isn't!

Start With Kicad - Schematic Diagram
Start With Kicad - Schematic Diagram

Understanding Rutascript

Rutascript is a simple, yet powerful language used to define the routing rules and 3D movement of tracks in KiCad. It's a .prl file, standing for Rutascript Language. It's not something you'd interact with directly while designing your PCB, but it's there in the background, making the magic happen.

KiCAD Best Practices: Library Management
KiCAD Best Practices: Library Management

But wait, why the '.prl' extension? Well, that's just an arbitrary choice by KiCad's developers. Rutascript isn't unique to KiCad - it's used in the libre routing engine 'router-3d'. So, you might find '.prl' files in other software that use router-3d as well. It's just a convention that stuck.

What's Inside a '.prl' File?

Fast KiCad workflows for beginners (re-upload)
Fast KiCad workflows for beginners (re-upload)

A '.prl' file is just a plain text file containing Rutascript commands. These commands tell the routing engine how to move, turn, and jump to create the 3D routed tracks of your PCB. It's like giving directions to a tiny robot that's figuring out the best way to route your copper paths.

Here's a quick example of what you might find inside a '.prl' file:

move(10, 0, 0); // Move 10 units forward in the x-direction turn(90, ' Degrees'); // Turn 90 degrees clockwise jump(5, 5, 0); // Jump 5 units forward and 5 units to the right

See, just simple commands telling the router what to do. No complex syntax or data structures here.

Kicad: Convert a Pdf to a Schematic
Kicad: Convert a Pdf to a Schematic

The '$' Special Command

Besides the basic routing commands, the '$' symbol in a '.prl' file signals a special comment or a variable substitution. These are placeholders for KiCad to fill in values based on your design rules. Here's an example:

move($VIA fiercemeaning, 0, 0); // The router will fill this with the size of a via, as defined in your design rules

So, even though '.prl' files look simple and static, they're actually quite dynamic, changing with every run based on your design rules.

KiCad Tutorial: Make Your First Printed Circuit Board
KiCad Tutorial: Make Your First Printed Circuit Board

The '.prl' File in KiCad Projects

Now that you understand what a '.prl' file is, let's talk about its role in KiCad projects. You'll find a '.prl' file (usually named 'kicad_prl' based on the project filename) in each KiCad project's '3d_map' directory. This file defines the 3D routing of the top and bottom layers of your PCB.

A New KiCAD Tutorial Hits The Scene
A New KiCAD Tutorial Hits The Scene
KiCAD Tutorial 2019 | Learn KiCAD under 25 Minutes | Beginners guide
KiCAD Tutorial 2019 | Learn KiCAD under 25 Minutes | Beginners guide
KiCAD Schematic and PCB
KiCAD Schematic and PCB
Introduction to KiCad and FreeCAD
Introduction to KiCad and FreeCAD
Embedding a vintage component, creating a professional looking home for a circuit board, or even designing a complex apparatus complete with a chassis – these and many other challenges turn into a stimulating pleasure with FreeCAD. Once you have internalized the basic processes, there are virtually no limits to your imagination. Starting to use a new software is never straightforward – especially with a tool as versatile as FreeCAD. Manageable, but at the same time easily usable individual comp Electronic Circuit Board With Schematic, How To Design Electronic Enclosures, Electronic Design Software Interface, Freecad For Electrical Design, Complex Electronic Circuit Board, Electronic Circuit Design Software Interface, Electronic Circuit Schematics Book, Arduino-based Electronic Project, Electronic Circuit Board Prototype
Embedding a vintage component, creating a professional looking home for a circuit board, or even designing a complex apparatus complete with a chassis – these and many other challenges turn into a stimulating pleasure with FreeCAD. Once you have internalized the basic processes, there are virtually no limits to your imagination. Starting to use a new software is never straightforward – especially with a tool as versatile as FreeCAD. Manageable, but at the same time easily usable individual comp Electronic Circuit Board With Schematic, How To Design Electronic Enclosures, Electronic Design Software Interface, Freecad For Electrical Design, Complex Electronic Circuit Board, Electronic Circuit Design Software Interface, Electronic Circuit Schematics Book, Arduino-based Electronic Project, Electronic Circuit Board Prototype
PCB designing using KiCAD - From Schematic to Gerber file
PCB designing using KiCAD - From Schematic to Gerber file
an autocad poster with instructions on how to use the car's engine
an autocad poster with instructions on how to use the car's engine
Kickstart to PCB designing in KiCad
Kickstart to PCB designing in KiCad
KiCAD 7 PCB Layout in 5 steps
KiCAD 7 PCB Layout in 5 steps
8 Best Free CAD Software for Beginners for Windows
8 Best Free CAD Software for Beginners for Windows
Creating A PCB In Everything: KiCad, Part 1
Creating A PCB In Everything: KiCad, Part 1
the autocad 2d shortcut keys
the autocad 2d shortcut keys
Learn KiCAD10 in 7 steps
Learn KiCAD10 in 7 steps
How To Use CAD Software For Beginners
How To Use CAD Software For Beginners
self improvement tips
self improvement tips
Tutorial básico de KICAD!
Tutorial básico de KICAD!
CERN’s KiCad component library now open source – Home | CERN
CERN’s KiCad component library now open source – Home | CERN

When KiCad's 3D viewer or the 3D PCB rendering in the assembly view wants to show your routed tracks, it reads the '.prl' file, translates it into the routing engine's language, and voila! You see your 3D rendered tracks.

生成'kicad_prl' Files

KiCad generates '.prl' files automatically whenever you run a 3D view or render. But what if you want to generate them manually? Well, KiCad provides the 'pcbnew' command-line tool, which you can use to generate the '.prl' file without opening KiCad:

pcbnew -P projectname

Replace 'projectname' with your .kicad_pro project's filename, and it'll generate the '.prl' file for you.

文件的总结与意见

While '.prl' files are crucial for KiCad's 3D view, they're usually something you can leave KiCad to handle. But now that you know what they are and how they work, you'll understand KiCad's 3D features a bit better. So, go ahead, play around with the 3D view, and maybe even generate your '.prl' files manually for fun!

Happy routing!