We have moved to https://dokuwiki.librecad.org/
Lots of content was already moved to the new wiki, but there is still work to do. If you want to contribute, please register a new account at https://dokuwiki.librecad.org/
This wiki will be kept for a while to keep search engine results valid. Moved sites may be deleted here in future.
Difference between revisions of "Commands"
From LibreCAD wiki
(→Actions and Commands: added restrictions table) |
(→Actions and Commands: fixed a few errors // added a few entries // updated table structure to include tool names // updated all tables) |
||
Line 14: | Line 14: | ||
== Actions and Commands == | == Actions and Commands == | ||
− | You can press the | + | You can press the Space-bar or [Ctrl + M] to focus on the command line. |
− | + | Press Enter after you input a command or an alias you added to the librecad.alias file. | |
− | + | Developers (or the curious) can find the commands in [https://github.com/LibreCAD/LibreCAD/blob/master/librecad/src/cmd/rs_commands.cpp librecad/src/cmd/rs_commands.cpp] | |
=== Draw === | === Draw === | ||
Line 24: | Line 24: | ||
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Tool |
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Commands |
|- | |- | ||
| DrawPoint | | DrawPoint | ||
− | | | + | | Points |
− | | po | + | | po, point |
|- | |- | ||
| DrawLine | | DrawLine | ||
− | | | + | | Line - 2 Points |
− | | l, li | + | | l, li, line |
|- | |- | ||
| DrawPolyline | | DrawPolyline | ||
− | | | + | | Polyline - Polyline |
− | | pl | + | | pl, polyline |
|- | |- | ||
| DrawLineParallel | | DrawLineParallel | ||
− | | | + | | Line - Parallel |
− | | o, pa | + | | o, pa, offset, parallel |
|- | |- | ||
| DrawArc3P | | DrawArc3P | ||
− | | | + | | Arc - 3 Points |
− | | a, ar | + | | a, ar, arc |
|- | |- | ||
| DrawCircle | | DrawCircle | ||
− | | | + | | Circle - Center, Point |
− | | ci | + | | ci, circle |
|- | |- | ||
| DrawLineRectangle | | DrawLineRectangle | ||
− | | | + | | Line - Rectangle |
− | | rec, rect, | + | | rec, rect, rectangle |
|- | |- | ||
| DrawMText | | DrawMText | ||
+ | | Text - MText | ||
| mtext | | mtext | ||
+ | |- | ||
+ | | DrawText | ||
+ | | Text - Text | ||
| text | | text | ||
|} | |} | ||
− | === | + | === View === |
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Tool |
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Commands |
|- | |- | ||
| ZoomRedraw | | ZoomRedraw | ||
− | | | + | | Redraw |
− | | zr, rg, regen | + | | zr, rg, regen, redraw |
|- | |- | ||
| ZoomWindow | | ZoomWindow | ||
− | | | + | | Window Zoom |
| zw | | zw | ||
|- | |- | ||
| ZoomAuto | | ZoomAuto | ||
− | | | + | | Auto Zoom |
| za | | za | ||
|- | |- | ||
| ZoomPan | | ZoomPan | ||
− | | | + | | Zoom Panning |
| zp | | zp | ||
|- | |- | ||
| ZoomPrevious | | ZoomPrevious | ||
− | | | + | | Previous View |
| zv | | zv | ||
|} | |} | ||
Line 92: | Line 96: | ||
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Tool |
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Commands |
|- | |- | ||
| EditUndo | | EditUndo | ||
− | | | + | | Undo |
− | | u | + | | u, undo, oo |
|- | |- | ||
| EditRedo | | EditRedo | ||
− | | | + | | Redo |
− | | r | + | | r, redo, uu |
|- | |- | ||
| EditKillAllActions | | EditKillAllActions | ||
− | | | + | | ??? |
− | | k | + | | k, kill |
|} | |} | ||
=== Dimension === | === Dimension === | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Tool |
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Commands |
|- | |- | ||
| DimAligned | | DimAligned | ||
− | | | + | | Aligned |
| da | | da | ||
|- | |- | ||
| DimLinear | | DimLinear | ||
− | | | + | | Linear |
| dr | | dr | ||
|- | |- | ||
| DimLinearHor | | DimLinearHor | ||
− | | | + | | Horizontal |
| dh | | dh | ||
|- | |- | ||
| DimLinearVer | | DimLinearVer | ||
− | | | + | | Vertical |
| dv | | dv | ||
|- | |- | ||
| DimLeader | | DimLeader | ||
− | | | + | | Leader |
| ld | | ld | ||
|} | |} | ||
− | === | + | === Modify === |
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Tool |
− | ! scope="col" width="128px" | | + | ! scope="col" width="128px" | Commands |
|- | |- | ||
− | | | + | | ModifyTrim |
− | | | + | | Trim |
− | | | + | | xt, rm |
+ | |- | ||
+ | | ModifyTrim2 | ||
+ | | Trim Two | ||
+ | | tm | ||
|- | |- | ||
− | | | + | | ModifyMove |
− | | | + | | Move / Copy |
− | | | + | | mv |
|- | |- | ||
− | | | + | | ModifyBevel |
− | | | + | | Bevel |
− | | | + | | ch, fillet (bug) |
+ | |- | ||
+ | | ModifyMirror | ||
+ | | Mirror | ||
+ | | mi | ||
|- | |- | ||
− | | | + | | ModifyRotate |
− | | | + | | Rotate |
− | | | + | | ro |
+ | |- | ||
+ | | ModifyScale | ||
+ | | Scale | ||
+ | | sz | ||
+ | |- | ||
+ | | ModifyStretch | ||
+ | | Stretch | ||
+ | | ss | ||
+ | |- | ||
+ | | ModifyDelete | ||
+ | | Deleted Selected | ||
+ | | er | ||
+ | |- | ||
+ | | BlocksExplode | ||
+ | | Explode | ||
+ | | xp | ||
|} | |} | ||
− | === | + | === Snap === |
{| class="wikitable" | {| class="wikitable" | ||
− | | | + | ! scope="col" width="128px" | Action |
− | + | ! scope="col" width="128px" | Tool | |
− | + | ! scope="col" width="128px" | Commands | |
− | == | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | | + | | SnapFree |
+ | | Free Snap | ||
+ | | os, sf | ||
|- | |- | ||
− | | | + | | SnapGrid |
+ | | Snap on Grid | ||
+ | | sg | ||
|- | |- | ||
− | | | + | | SnapEndpoint |
+ | | Snap on Endpoints | ||
+ | | se | ||
|- | |- | ||
− | | | + | | SnapIntersection |
+ | | Snap Intersection | ||
+ | | si | ||
+ | |- | ||
+ | | SnapCenter | ||
+ | | Snap Center | ||
+ | | sc | ||
|- | |- | ||
− | | | + | | SnapMiddle |
+ | | Snap Middle | ||
+ | | sm | ||
|- | |- | ||
− | | | + | | SnapOnEntity |
+ | | Snap on Entity | ||
+ | | np, sn | ||
|- | |- | ||
− | | | + | | SnapDist |
+ | | Snap Distance | ||
+ | | sd | ||
|- | |- | ||
− | | | + | | RestrictNothing |
− | | | + | | Restrict Nothing |
− | | | + | | rn |
|- | |- | ||
− | | | + | | RestrictOrthogonal |
+ | | Restrict Orthogonal | ||
+ | | rr | ||
+ | |- | ||
+ | | RestrictHorizontal | ||
+ | | Restrict Horizontal | ||
+ | | rh | ||
+ | |- | ||
+ | | RestrictVertical | ||
+ | | Restrict Vertical | ||
+ | | rv | ||
|} | |} | ||
− | === | + | === Selection === |
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
− | | | + | ! scope="col" width="128px" | Action |
+ | ! scope="col" width="128px" | Tool | ||
+ | ! scope="col" width="128px" | Commands | ||
|- | |- | ||
− | | | + | | DeselectAll |
+ | | Deselect All | ||
+ | | tn | ||
|- | |- | ||
− | | | + | | SelectAll |
− | | | + | | Select All |
− | | | + | | sa |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
− | === | + | === Tool === |
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
− | | | + | | ToolRegenerateDimensions || dimregen |
|} | |} |
Revision as of 23:34, 23 April 2015
Editorial remark: Some redundancy to A_short_manual_for_use_from_the_command_line
Contents
Command Alias File
You can define command aliases by changing the alias configuration file and restart LibreCAD.
Windows
- C:\Users\[USERNAME]\AppData\Local\LibreCAD\librecad.alias
Mac
- $HOME/Library/Application Support/LibreCAD/librecad.alias
Linux
- $HOME/.local/share/data/LibreCAD/librecad.alias
Actions and Commands
You can press the Space-bar or [Ctrl + M] to focus on the command line.
Press Enter after you input a command or an alias you added to the librecad.alias file.
Developers (or the curious) can find the commands in librecad/src/cmd/rs_commands.cpp
Draw
Action | Tool | Commands |
---|---|---|
DrawPoint | Points | po, point |
DrawLine | Line - 2 Points | l, li, line |
DrawPolyline | Polyline - Polyline | pl, polyline |
DrawLineParallel | Line - Parallel | o, pa, offset, parallel |
DrawArc3P | Arc - 3 Points | a, ar, arc |
DrawCircle | Circle - Center, Point | ci, circle |
DrawLineRectangle | Line - Rectangle | rec, rect, rectangle |
DrawMText | Text - MText | mtext |
DrawText | Text - Text | text |
View
Action | Tool | Commands |
---|---|---|
ZoomRedraw | Redraw | zr, rg, regen, redraw |
ZoomWindow | Window Zoom | zw |
ZoomAuto | Auto Zoom | za |
ZoomPan | Zoom Panning | zp |
ZoomPrevious | Previous View | zv |
Edit
Action | Tool | Commands |
---|---|---|
EditUndo | Undo | u, undo, oo |
EditRedo | Redo | r, redo, uu |
EditKillAllActions | ??? | k, kill |
Dimension
Action | Tool | Commands |
---|---|---|
DimAligned | Aligned | da |
DimLinear | Linear | dr |
DimLinearHor | Horizontal | dh |
DimLinearVer | Vertical | dv |
DimLeader | Leader | ld |
Modify
Action | Tool | Commands |
---|---|---|
ModifyTrim | Trim | xt, rm |
ModifyTrim2 | Trim Two | tm |
ModifyMove | Move / Copy | mv |
ModifyBevel | Bevel | ch, fillet (bug) |
ModifyMirror | Mirror | mi |
ModifyRotate | Rotate | ro |
ModifyScale | Scale | sz |
ModifyStretch | Stretch | ss |
ModifyDelete | Deleted Selected | er |
BlocksExplode | Explode | xp |
Snap
Action | Tool | Commands |
---|---|---|
SnapFree | Free Snap | os, sf |
SnapGrid | Snap on Grid | sg |
SnapEndpoint | Snap on Endpoints | se |
SnapIntersection | Snap Intersection | si |
SnapCenter | Snap Center | sc |
SnapMiddle | Snap Middle | sm |
SnapOnEntity | Snap on Entity | np, sn |
SnapDist | Snap Distance | sd |
RestrictNothing | Restrict Nothing | rn |
RestrictOrthogonal | Restrict Orthogonal | rr |
RestrictHorizontal | Restrict Horizontal | rh |
RestrictVertical | Restrict Vertical | rv |
Selection
Action | Tool | Commands |
---|---|---|
DeselectAll | Deselect All | tn |
SelectAll | Select All | sa |
Tool
ToolRegenerateDimensions | dimregen |