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: updated edit table // moved input instruction) |
(→Snap: added command for Set Relative Zero Position) |
||
(9 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | == | + | == Actions, Tools and Commands == |
− | + | === Draw === | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width=" | + | ! 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 | + | | 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 |
− | | mtext | + | | Tools - MText |
− | | text | + | | mtxt, mtext |
+ | |- | ||
+ | | DrawText | ||
+ | | Tools - Text | ||
+ | | txt, text | ||
+ | |- | ||
+ | | DrawHatch | ||
+ | | Tools - Hatch | ||
+ | | ha, hatch | ||
+ | |- | ||
+ | | DrawLineFree | ||
+ | | Freehand Line | ||
+ | | fhl, free | ||
+ | |- | ||
+ | | DrawSpline | ||
+ | | Spline | ||
+ | | spl, spline | ||
+ | |- | ||
+ | | DrawSplinePoints | ||
+ | | Spline Through points | ||
+ | | stp, spline2 | ||
+ | |- | ||
+ | | DrawLineOrthogonal | ||
+ | | Line - Orthogonal | ||
+ | | ortho, perp | ||
+ | |- | ||
+ | | DrawLineVertical | ||
+ | | Vertical Line | ||
+ | | ver, vertical | ||
+ | |- | ||
+ | | DrawLineHorizontal | ||
+ | | Horizontal Line | ||
+ | | hor, horizontal | ||
+ | |- | ||
+ | | DrawEllipseInscribed | ||
+ | | Inscribed Ellipse | ||
+ | | ei, ie | ||
+ | |- | ||
+ | | DrawLineBisector | ||
+ | | Bisector | ||
+ | | bi, bisect | ||
+ | |- | ||
+ | | DrawLineTangent1 | ||
+ | | Tangent (P,C) | ||
+ | | tanpc, tangentpc | ||
+ | |- | ||
+ | | DrawLinePolygonCorCor | ||
+ | | Polygon (Cor, Cor) | ||
+ | | poly2, polygon2v | ||
+ | |- | ||
+ | | DrawLineParallelThrough | ||
+ | | Parallel Through Point | ||
+ | | pp, ptp | ||
+ | |- | ||
+ | | DrawCircle2P | ||
+ | | Circle - 2 Points | ||
+ | | c2, circle2 | ||
+ | |- | ||
+ | | DrawCircle3P | ||
+ | | Circle - 3 Points | ||
+ | | c3, circle3 | ||
+ | |- | ||
+ | | DrawCircleTan3 | ||
+ | | Tangential 3 Circles | ||
+ | | ct3, tan3 | ||
|} | |} | ||
− | === | + | === View === |
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width=" | + | ! 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 | ||
− | |||
|} | |} | ||
− | === | + | === Edit === |
{| class="wikitable" | {| class="wikitable" | ||
! scope="col" width="128px" | Action | ! scope="col" width="128px" | Action | ||
− | ! scope="col" width=" | + | ! 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 === |
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
− | | | + | ! scope="col" width="128px" | Action |
+ | ! scope="col" width="128px" | Tool | ||
+ | ! scope="col" width="128px" | Commands | ||
|- | |- | ||
− | | | + | | DimAligned |
+ | | Aligned | ||
+ | | da | ||
|- | |- | ||
− | | | + | | DimLinear |
+ | | Linear | ||
+ | | dr | ||
|- | |- | ||
− | | | + | | DimLinearHor |
+ | | Horizontal | ||
+ | | dh | ||
|- | |- | ||
− | | DimLeader || ld | + | | DimLinearVer |
+ | | Vertical | ||
+ | | dv | ||
+ | |- | ||
+ | | DimLeader | ||
+ | | Leader | ||
+ | | ld | ||
|} | |} | ||
− | === | + | === Modify === |
− | + | ||
− | + | ||
− | + | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
− | | ModifyTrim || | + | ! scope="col" width="128px" | Action |
+ | ! scope="col" width="128px" | Tool | ||
+ | ! scope="col" width="128px" | Commands | ||
+ | |- | ||
+ | | ModifyTrim | ||
+ | | Trim | ||
+ | | tm, trim | ||
|- | |- | ||
− | | ModifyTrim2 || | + | | ModifyTrim2 |
+ | | Trim Two | ||
+ | | t2, tm2 | ||
|- | |- | ||
− | | ModifyMove || mv | + | | ModifyMove |
+ | | Move / Copy | ||
+ | | mv | ||
|- | |- | ||
− | | ModifyBevel || ch, | + | | ModifyBevel |
+ | | Bevel | ||
+ | | ch, fillet (bug) | ||
|- | |- | ||
− | | ModifyMirror || mi | + | | ModifyMirror |
+ | | Mirror | ||
+ | | mi | ||
|- | |- | ||
− | | ModifyRotate || ro | + | | ModifyRotate |
+ | | Rotate | ||
+ | | ro | ||
|- | |- | ||
− | | ModifyScale || sz | + | | ModifyScale |
+ | | Scale | ||
+ | | sz | ||
|- | |- | ||
− | | ModifyStretch || ss | + | | ModifyStretch |
+ | | Stretch | ||
+ | | ss | ||
|- | |- | ||
− | | ModifyDelete || er | + | | ModifyDelete |
+ | | Deleted Selected | ||
+ | | er | ||
|- | |- | ||
− | | | + | | BlocksExplode |
− | |- | + | | Explode |
− | | | + | | xp |
+ | |- | ||
+ | | ModifyCut | ||
+ | | Divide | ||
+ | | di, div, cut | ||
+ | |- | ||
+ | | ModifyEntity | ||
+ | | Properties | ||
+ | | mp, prop | ||
+ | |- | ||
+ | | ModifyRound | ||
+ | | Fillet | ||
+ | | fi, fillet | ||
|- | |- | ||
− | | | + | | ModifyAttributes |
+ | | Attributes | ||
+ | | ma, attr | ||
|} | |} | ||
− | === | + | === 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 | ||
|- | |- | ||
− | | SnapIntersection || si | + | | SnapEndpoint |
+ | | Snap on Endpoints | ||
+ | | se | ||
+ | |- | ||
+ | | SnapIntersection | ||
+ | | Snap Intersection | ||
+ | | si | ||
|- | |- | ||
− | | SnapCenter || | + | | SnapCenter |
+ | | Snap Center | ||
+ | | sc | ||
|- | |- | ||
− | | SnapMiddle || sm | + | | SnapMiddle |
+ | | Snap Middle | ||
+ | | sm | ||
|- | |- | ||
− | | SnapOnEntity || np, | + | | 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 | ||
+ | |- | ||
+ | | SetRelativeZero | ||
+ | | Set Relative Zero Position | ||
+ | | rz | ||
|} | |} | ||
− | === | + | === Selection === |
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
− | | DeselectAll || tn | + | ! scope="col" width="128px" | Action |
+ | ! scope="col" width="128px" | Tool | ||
+ | ! scope="col" width="128px" | Commands | ||
+ | |- | ||
+ | | DeselectAll | ||
+ | | Deselect All | ||
+ | | tn | ||
+ | |- | ||
+ | | SelectAll | ||
+ | | Select All | ||
+ | | sa | ||
|} | |} | ||
+ | |||
+ | === Info === | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! scope="col" width="128px" | Action | ||
+ | ! scope="col" width="128px" | Tool | ||
+ | ! scope="col" width="128px" | Commands | ||
+ | |- | ||
+ | | InfoDist | ||
+ | | Distance Point to Point | ||
+ | | dpp, dist | ||
+ | |- | ||
+ | | InfoAngle | ||
+ | | Angle Between Two Lines | ||
+ | | ang, angle | ||
+ | |- | ||
+ | | InfoArea | ||
+ | | Polygonal Area | ||
+ | | ar, area | ||
+ | |} | ||
+ | |||
+ | === Tool === | ||
+ | |||
+ | {| class="wikitable" | ||
+ | | ToolRegenerateDimensions || dimregen | ||
+ | |} | ||
+ | |||
+ | == Learning == | ||
+ | |||
+ | You can learn about the commands and the command line at: | ||
+ | |||
+ | *[[A_short_manual_for_use_from_the_command_line|A short manual for use from the command line]] | ||
+ | |||
+ | *[[LibreCAD_users_Manual#Using_Command_Line|Using Command Line]] | ||
+ | |||
+ | Developers (and 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] | ||
+ | |||
+ | == Command Alias File == | ||
+ | |||
+ | You can define command aliases by changing the alias configuration file and restarting 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 | ||
+ | |||
+ | [[Category:Usage]] |
Latest revision as of 20:41, 7 January 2017
Contents
Actions, Tools and Commands
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 | Tools - MText | mtxt, mtext |
DrawText | Tools - Text | txt, text |
DrawHatch | Tools - Hatch | ha, hatch |
DrawLineFree | Freehand Line | fhl, free |
DrawSpline | Spline | spl, spline |
DrawSplinePoints | Spline Through points | stp, spline2 |
DrawLineOrthogonal | Line - Orthogonal | ortho, perp |
DrawLineVertical | Vertical Line | ver, vertical |
DrawLineHorizontal | Horizontal Line | hor, horizontal |
DrawEllipseInscribed | Inscribed Ellipse | ei, ie |
DrawLineBisector | Bisector | bi, bisect |
DrawLineTangent1 | Tangent (P,C) | tanpc, tangentpc |
DrawLinePolygonCorCor | Polygon (Cor, Cor) | poly2, polygon2v |
DrawLineParallelThrough | Parallel Through Point | pp, ptp |
DrawCircle2P | Circle - 2 Points | c2, circle2 |
DrawCircle3P | Circle - 3 Points | c3, circle3 |
DrawCircleTan3 | Tangential 3 Circles | ct3, tan3 |
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 | tm, trim |
ModifyTrim2 | Trim Two | t2, tm2 |
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 |
ModifyCut | Divide | di, div, cut |
ModifyEntity | Properties | mp, prop |
ModifyRound | Fillet | fi, fillet |
ModifyAttributes | Attributes | ma, attr |
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 |
SetRelativeZero | Set Relative Zero Position | rz |
Selection
Action | Tool | Commands |
---|---|---|
DeselectAll | Deselect All | tn |
SelectAll | Select All | sa |
Info
Action | Tool | Commands |
---|---|---|
InfoDist | Distance Point to Point | dpp, dist |
InfoAngle | Angle Between Two Lines | ang, angle |
InfoArea | Polygonal Area | ar, area |
Tool
ToolRegenerateDimensions | dimregen |
Learning
You can learn about the commands and the command line at:
Developers (and the curious) can find the commands in librecad/src/cmd/rs_commands.cpp
Command Alias File
You can define command aliases by changing the alias configuration file and restarting 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