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.

Commands

From LibreCAD wiki
Revision as of 20:17, 23 April 2015 by Ravas (Talk | contribs)

Jump to: navigation, search

Editorial remark: Some redundancy to A_short_manual_for_use_from_the_command_line

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.

You can input a long or short command, or an alias you added to the librecad.alias file.

The following information is from librecad/src/cmd/rs_commands.cpp

Draw

Action Long Commands Short Commands
DrawPoint point po
DrawLine line l, li
DrawPolyline polyline pl
DrawLineParallel offset, parallel o, pa
DrawArc3P arc a, ar
DrawCircle circle ci
DrawLineRectangle rectangle rec, rect, rectang
DrawMText mtext text

Zoom

Action Long Commands Short Commands
ZoomRedraw redraw zr, rg, regen
ZoomWindow zoom - window zw
ZoomAuto zoom - auto za
ZoomPan zoom - pan zp
ZoomPrevious zoom - previous zv

Edit

Action Long Commands Short Commands
EditUndo undo u
EditRedo redo r
EditKillAllActions kill k

Dimension

Action Long Commands Short Commands
DimAligned dimension - aligned da
DimLinear dimension - linear dr
DimLinearHor dimension - horizontal dh
DimLinearVer dimension - vertical dv
DimLeader dimension - leader ld

Restrictions

Action Long Commands Short Commands
RestrictNothing restrict - nothing rn
RestrictOrthogonal restrict - orthogonal rr
RestrictHorizontal restrict - horizontal rh
RestrictVertical restrict - vertical rv

Tool

ToolRegenerateDimensions dimregen

Modify

ModifyTrim xt, rm, modify - trim (extend)
ModifyTrim2 tm, modify - multi trim (extend)
ModifyMove mv, modify - move
ModifyBevel ch, modify - bevel (chamfer)
ModifyMirror mi, modify - mirror
ModifyRotate ro, modify - rotate
ModifyScale sz, modify - scale
ModifyStretch ss, modify - stretch
ModifyDelete er, modify - delete (erase)
EditUndo oo, modify - undo (oops)
EditRedo uu, modify - redo
BlocksExplode xp, modify - explode

Snap

SnapFree os, snap - none
SnapGrid sg, snap - grid
SnapEndpoint se, snap - end
SnapIntersection si, snap - intersection
SnapCenter sn, snap - center
SnapMiddle sm, snap - middle
SnapOnEntity np, snap - nearest point

Selection

DeselectAll tn, deselect - all