forked from 1b-agent/opencadstudio-upstream
The ribbon offered four styles and dispatched each one's id as a command. Two of those ids were not visual-style commands: "Shaded" carried SOLID, which draws a 2D filled polygon, so choosing it started a draw command; "Hidden" carried HIDDEN, which matched nothing at all, so it did nothing. The intent had been for the button to fire its tool's event, but the dropdown never reads one -- it dispatches the id. Behind that sat two generations of the same feature. The render-mode picker offered the seven styles a viewport can actually be drawn in; everything else -- the ribbon, VSCURRENT, SHADEMODE, VISUALSTYLES and a handful of bare verbs -- went through a binary wireframe-or-shaded flag that could only approximate them, reporting "Hidden (shown shaded)" and "X-Ray (shown as wireframe)" when asked for something it had no way to draw. Four descriptions of one choice, each drifting on its own. There is one list now. Each style names itself once -- mode, label, icon, and the command that applies it -- and the ribbon, the picker, the VISUALSTYLES verb and the interactive prompt all read from it, down to the line that lists the choices, so what is offered cannot disagree with what works. Keywords are the render modes' own names, since there is one set of styles left to name. The binary path is gone rather than kept alongside: its message, its module event, the tool definitions that produced it, the ribbon's special-cased highlight arms, the bare style verbs and the older keyword spellings. X-Ray goes with it -- no render mode draws one, and it was already coming out as a plain wireframe. Three files that had been left holding a single icon constant each fold into the list. Note: ModuleEvent::SetWireframe leaves the plugin API with it. Closes #621 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
177 lines
4.9 KiB
Plaintext
177 lines
4.9 KiB
Plaintext
; OpenCADStudio command aliases.
|
|
; Format: ALIAS,*COMMAND (lines starting with ';' are comments)
|
|
; Edit here or via the ALIASEDIT command. One alias per line.
|
|
;
|
|
; This file is the single source of truth for command-line aliases. It is
|
|
; copied to your user config folder on first launch; edit that copy (or use
|
|
; ALIASEDIT) to add, remap, or remove aliases.
|
|
|
|
; ── Draw ──────────────────────────────────────────────────────────────────
|
|
L, *LINE
|
|
ML, *MLINE
|
|
PL, *PLINE
|
|
A, *ARC
|
|
C, *CIRCLE
|
|
B, *BLOCK
|
|
I, *INSERT
|
|
DO, *DONUT
|
|
EL, *ELLIPSE
|
|
PO, *POINT
|
|
SPL, *SPLINE
|
|
H, *HATCH
|
|
BH, *HATCH
|
|
HE, *HATCHEDIT
|
|
BO, *BOUNDARY
|
|
GD, *GRADIENT
|
|
XL, *XLINE
|
|
POL, *POLYGON
|
|
REC, *RECT
|
|
SO, *SOLID
|
|
WO, *WIPEOUT
|
|
|
|
; ── Modify ────────────────────────────────────────────────────────────────
|
|
M, *MOVE
|
|
CO, *COPY
|
|
RO, *ROTATE
|
|
SC, *SCALE
|
|
MI, *MIRROR
|
|
E, *ERASE
|
|
X, *EXPLODE
|
|
SS, *STRETCH
|
|
S, *STRETCH
|
|
O, *OFFSET
|
|
TR, *TRIM
|
|
EX, *EXTEND
|
|
F, *FILLET
|
|
CHA, *CHAMFER
|
|
J, *JOIN
|
|
BR, *BREAK
|
|
BAP, *BREAKATPOINT
|
|
PE, *PEDIT
|
|
SPE, *SPLINEDIT
|
|
LEN, *LENGTHEN
|
|
AL, *ALIGN
|
|
AR, *ARRAY
|
|
MA, *MATCHPROP
|
|
ATE, *ATTEDIT
|
|
|
|
; ── Clipboard ─────────────────────────────────────────────────────────────
|
|
CC, *COPYCLIP
|
|
CX, *CUTCLIP
|
|
PC, *PASTECLIP
|
|
|
|
; ── Blocks / references ───────────────────────────────────────────────────
|
|
ATT, *ATTDEF
|
|
BE, *BEDIT
|
|
IAT, *IMAGEATTACH
|
|
XA, *XATTACH
|
|
XR, *XREF
|
|
ADC, *ADCENTER
|
|
W, *WBLOCK
|
|
|
|
; ── Layers / groups ───────────────────────────────────────────────────────
|
|
LA, *LAYERS
|
|
G, *GROUP
|
|
UG, *UNGROUP
|
|
|
|
; ── Dimensions / annotation ───────────────────────────────────────────────
|
|
D, *DIMSTYLE
|
|
DAL, *DIMALIGNED
|
|
DAN, *DIMANGULAR
|
|
DDI, *DIMDIAMETER
|
|
DLI, *DIMLINEAR
|
|
DRA, *DIMRADIUS
|
|
DOR, *DIMORDINATE
|
|
DBA, *DIMBASELINE
|
|
DCO, *DIMCONTINUE
|
|
DED, *DIMEDIT
|
|
DBR, *DIMBREAK
|
|
DJL, *DIMJOGLINE
|
|
DJO, *DIMJOGGED
|
|
JOG, *DIMJOGGED
|
|
DCE, *DIMCENTER
|
|
LE, *LEADER
|
|
QL, *QLEADER
|
|
MLD, *MLEADER
|
|
MLA, *MLEADERADD
|
|
MLR, *MLEADERREMOVE
|
|
MLAL, *MLEADERALIGN
|
|
MLC, *MLEADERCOLLECT
|
|
MLS, *MLEADERSTYLE
|
|
MT, *MTEXT
|
|
DT, *TEXT
|
|
T, *TEXT
|
|
ED, *DDEDIT
|
|
TOL, *TOLERANCE
|
|
TB, *TABLE
|
|
ST, *STYLE
|
|
|
|
; ── Inquiry / selection ───────────────────────────────────────────────────
|
|
AA, *AREA
|
|
DI, *DIST
|
|
DIV, *DIVIDE
|
|
ME, *MEASURE
|
|
MEA, *MEASUREGEOM
|
|
LI, *LIST
|
|
SA, *SELECTALL
|
|
DE, *DESELECT
|
|
QS, *QSELECT
|
|
FI, *FILTER
|
|
|
|
; ── View / display ────────────────────────────────────────────────────────
|
|
P, *PAN
|
|
U, *UNDO
|
|
PR, *PROPERTIES
|
|
CH, *PROPERTIES
|
|
MO, *PROPERTIES
|
|
UN, *UNITS
|
|
TP, *TOOLPALETTES
|
|
SSM, *SHEETSET
|
|
HI, *HIDE
|
|
3O, *3DORBIT
|
|
ORBIT, *3DORBIT
|
|
MV, *MVIEW
|
|
MS, *MSPACE
|
|
PS, *PSPACE
|
|
PW, *PLOTWINDOW
|
|
QP, *QUICKPRINT
|
|
V, *VIEW
|
|
VSM, *VISUALSTYLES
|
|
CUBE, *NAVVCUBE
|
|
FSHOT, *FLATSHOT
|
|
SHA, *SHADEMODE
|
|
|
|
; ── Settings / properties
|
|
COL, *COLOR
|
|
DR, *DRAWORDER
|
|
DS, *DSETTINGS
|
|
LT, *LINETYPE
|
|
LTS, *LTSCALE
|
|
OS, *OSNAP
|
|
PU, *PURGE
|
|
REN, *RENAME
|
|
SET, *SETVAR
|
|
SN, *SNAP
|
|
TH, *THICKNESS
|
|
UNHIDE, *UNISOLATEOBJECTS
|
|
|
|
; ── File / data
|
|
DL, *DATALINK
|
|
DX, *DATAEXTRACTION
|
|
EPDF, *EXPORTPDF
|
|
EXP, *EXPORT
|
|
ZIP, *ETRANSMIT
|
|
|
|
; ── 3D solids ─────────────────────────────────────────────────────────────
|
|
EXT, *EXTRUDE
|
|
REV, *REVOLVE
|
|
INF, *INTERFERE
|
|
CYL, *CYLINDER
|
|
IN, *INTERSECT
|
|
PSOLID, *POLYSOLID
|
|
SEC, *SECTION
|
|
SU, *SUBTRACT
|
|
TOR, *TORUS
|
|
UNI, *UNION
|
|
WE, *WEDGE
|