DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

List Current Keyboard Shortcuts

Started by ajs, July 31, 2013, 10:12:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ajs

Over the years I've adapted the default set of keyboard shortcuts to facilitate the way that I use the program but I've just discovered that I've not produced a cribsheet since 2003 and my memory's not what it was and I'd like to produce an updated list.

Back then, I laboriously handcrafted it as an Office document.   I'm reluctant to do so again so I was wondering if anyone knew if it was possible to run a macro that would splurge the information out to an Excel-readable file?

Thanks

PS In exchange, I have a simple macro that produces a text list of a file's Layer Names if anyone's interested.

Dempsey

Go to Options (Q) --> Keyboard tab --> Save... --> Save as type: Ascii Keyboard Files  --> name file --> Save.

If you like to know the common defaults then have a look at the last reply of this topic: http://forum.designcad.com/index.php?topic=30.0
Dempsey

ajs

Thanks for replying, Dempsey, and I've done as you suggest but all I get are rows of meaningless numbers.

Unless there's a corresponding index of numbers to text available - which I could use to base Excel Lookups upon - it doesn't help me produce a cribsheet.

prl

#3
Quote from: ajs on August 01, 2013, 12:41:12 AM
Unless there's a corresponding index of numbers to text available - which I could use to base Excel Lookups upon - it doesn't help me produce a cribsheet.

Yes, once you have a readable keyboard definition file (*.dka), you will have to match the numbers to what they mean.  Example:
.
.
2,47,10194
.
.

First position defines key modifier:

2 - normal symbol
3 - normal character
7 - shift
11 - ctrl
15 - ctrl shift
19 - alt

Second position is ascii key code.

Third position is DesignCAD command number, see Dc3MaxCmd.ini file.

So this line is the normal keyboard symbol "/" assigned to the DesignCAD mirror command (ID_SELECT_MIRROR=10194)

Dempsey

Dempsey

ajs

Thanks, prl.  Now making progress albeit slowly.

ASCII codes: a cinch.

Qualifiers: also easy since I could infer the missing values from shortcuts I was familiar with.

DesignCAD Commands: not easy.  I'm using the 2D version of v22 and I think the equivalent file is "C:\Users\Andrew\Documents\DesignCAD 22\DcExpCmd.ini" although there are some other files which have lists with fewer commands that also have numbers.  Anyway, back to the DcExpCmd.ini file: this has many lines that are commented out which I have ignored.  Of the remaining, I have extracted the command number and the text that succeeded the "ID_" at the start of the name, changed subsequent underscores to spaces and used Excel's PROPER command to convert the all-uppercase text to mixed case.

Then I took my saved keyboard definition file and, using Excel lookups, matched what I could to produce an output list but MANY of the commands are unmatched.

I chose one at random to investigate: "2,91,10079".  So the keyboard trigger is an (unmodified) left-hand square bracket: "[".  In the ini file, "10079" appears as a line thus:
;ID_WALL=10079
ie commented out and thus inactive (which I can confirm is the case in my usage of the program).

I'm beginning to lose the will to live - am I close or miles away?!?

I wanted to illustrate my problem so far by uploading my spreadsheet but am not allowed to so have pdf-ed it.  First 4 pages are my input file, the next 4 pages are my output then the reference data of ASCII, Modifiers and Cmd list.

DrollTroll

Yes, you're definitely in the ballpark. You have indeed selected the correct ini file for your numeric command ids.
Note that not all numeric key identifiers can be logically combined with Shift or Ctrl -- for example, on most US keyboards, the @ sign is on the 2 key, so Shift-2 is not allowed in addition to @. You could have a Ctrl-2 but not in combination with a Ctrl-@. Similar constraints exist for parentheses, brackets, and other punctuation/special marks and numbers.
Side note: You could also post your xls file if you zipped it first.
25 years with DesignCAD