News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Keyboard definition bug

Started by Dr PR, December 10, 2010, 02:56:51 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

V20.1
Vista 64

Unlike earlier versions V20.1 doesn't have "CTRL A" assigned to "Edit/Select All." Since this is a standard Windows function it's absence is a bit surprising.

I tried to assign "CTRL A" to "Edit/Select All" in the "Options/Keyboard" dialog, to no avail. After selecting "A" from the "New Key" dropdown list, and then checking the "Ctrl" box, I clicked "Save as Default," "Apply" and the "Save." I selected the keyboard definition file in the file list and clicked "Save."

"CTRL A" still does nothing. I closed the drawing and shut down V20.1. Then I restarted the program and loaded my drawing. "CTRL A" still did nothing. I opened the "Options/Keyboard" dialog and opened the keyboard definition file.CTRL A" still doesn't work.

I know that V20.1 uses a new command library, and that some of the old keyboard definitions will no longer work. However, whatever library is used the "Options/Keyboard" dialog should save valid command codes in the keyboard definition file.

"CTRL A" should be the default for "Select All."

If this cannot be done with the new library, it should be trashed and another should be used that allows standard Windows functions to work. Period!

Note: The keyboard definition file is being loaded/saved to the keyboard file location defined in the "Options/File Locations" dialog.
DesignCAD user since 1987

Rob S

CTRL+a works for me using v20.1 B7 plus latest downloaded program file.
User since forever

Dr PR

Rob,

Did you have to assign it, or was it already assigned as in older versions?
DesignCAD user since 1987

Lar

Doesn't work for me in the last beta.

Lar

Rob S

As it came, fresh out of the download, on two different computers (one XP, one windows 7)
User since forever

Dr PR

I figured it out.

Somehow the wrong keyboard file was loaded. I have both binary and ASCII files in the same directory, with the same name. The ASCII file is the one I edited by hand to change the command codes to work with the new library. When the program started up it loaded the old binary file instead of the edited ASCII file.

When I loaded the edited ASCII file in "Options/Keyboard" "CTRL A" is the default for "Select All."

However, for whatever reason, I was unable to assign "CTRL A" to "Select All" in the binary keyboard file that was saved.

This is pretty messed up! Hand editing an ASCII keyboard file to insert some Buck Rogers Secret Codes is NOT user friendly!

To make matters worse, the keyboard file for V20.1 is incompatible with the keyboard file from every other version of DesignCAD. I have always saved the keyboard files in a single C:\DesignCAD folder, along with macros, materials, etc., so every version can access the same user-defined information. This keyboard file incompatibility really sucks!
DesignCAD user since 1987

Adrian 2.0

I have just updated to 20.1 on 2 machines.
A 32 biit Vista & a 64 bit Vista - on both machines the program occasionally 'forgets' a shortcut key. Not always the same one, but my assignmet of 'T' for 2D text has disappeared from both machines at least twice. I just lost my 'trim multiple lines' assignment 'Alt-W'.
When I goto options & re-assign it, it works (after a reboot)  but then I loose something else.
When I re-assign the shortcut and pick the (previous) key, I get a mesage in the 'currently used' field: 'the exe file is invalid - followed by some truncated illegible text'

What can I do to make the shortcuts stick? I've started inventing new swear words...

Dr PR

#7
Look at your "Options/File Locations/Custom Keyboard" to determine the path the program uses at start up to load the keyboard definitions.

Then open that folder from Windows. Are there more than one keyboard definition files in the folder? If so, this may be why your definitions are being lost. DesignCAD has a preference for a binary definitions file (.dkf). If you have saved a revised version as an ASCII file (.dka) it will not be opened if there is a binary file in the folder.

Also, there is no way to tell DesignCAD which keyboard definition file to open, if there are multiple files. The "Options/File Locations" dialog only allows you to save the path.

The "Options/Keyboard" dialog allows you to manually load any keyboard definition file, and you can click the "Save As Default" button. But it doesn't necessarily work if there are multiple keyboard definition files in the folder. DesignCAD will select a binary file, even if you save an ASCII file as the default (bug).

This is a real problem now that the keyboard codes have been changed in V20.1. You must save your old keyboard definition file as ASCII and then edit it in Notepad to change some (not all) command codes. DesignCAD will not select this edited ASCII file by default, so a lot of commands will no longer function. You can open this ASCII file in the "Options/Keyboard" dialog and then save it again as a binary file. After this it seems to work OK.

I have my old customized DesignCAD "keyboard.dkf" and a new "keyboard V20.1.dkf" file in the same folder (C:\DesignCAD) and V20.1 uses the new binary file while all older versions still use the old binary file.

This MUST be fixed in V21! The user should never have to edit the keyboard definition file, custom menu files, custom toolbox files or macro files to make them work with the new command codes. Major BUG!

PS: I think I understand why the codes were changed. DesignCAD has been using an ancient code module dating back to Windows 3 for command processing. Apparently this code is no longer compatible with Windows 7 (Windows changed, not DesignCAD). It was necessary to change the codes, but the change should have been automatic (transparent to the user).

****

Here are DT's instructions for editing custom keyboard and menu definitions:

For Custom Toolboxes
Examine each *.dct file in a text editor. Check all "HotToolCmd(number)=(CommandID) lines. Any time you see a (CommandID) value that is between 9000 and 9299, add 600 to the id.
For example, change this line:

HotToolCmd3=9031
to
HotToolCmd3=9631

For Custom Menus
Be sure to save the custom menu in ascii format (*.dma). Then examine the menu file in a text editor. As with Custom Toolboxes, change any numbers that are in the range between 9000 and 9299 by adding 600 to the value.
For example in the default menu, you'd change this line:

        MENUITEM "Close A&ll",                  9003
to
        MENUITEM "Close A&ll",                  9603

For Custom Keyboard files
Save any custom keyboard files to ascii format (*.dka). Then examine the keyboard file in text editor. The command ID is the last number on each line (except the first line). Change any command IDs that are between 9000 and 9299 by adding 600 to them.

For example, change this line
11,52,9157
to
11,52,9757

DesignCAD user since 1987

Lar

Thanks for the info Doc.

After updating to 20.1 Ctrl+A never worked and one very important custom key (for Hide/Restore Toolboxes) never worked so I reinstalled 20.0.

I would think that saving the keyboard file in v20.1 corrects the problem but it doesn't.

I normally saved as default, ie, binary. I was unaware of the ascii until about last week when I experienced the keyboard shortcut problem. You can choose which to save or load by clicking the little down arrow at the right of the 'Save as type' / 'Files of type' field.

I will give your info a shot and see what happens.

Lar