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.

Lost control of cursor with down arrow

Started by altair, October 14, 2012, 05:12:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altair

Hi, in my old V15, I was experimenting with different keyboard shortcuts, and I accidently lost the function of the down arrow to move the cursor down.
In the keyboard commands menu, there is no way to re-set the down arrow to its former function, that I know of.
The button still works in combination with the Shift key for smaller moves, but not by itself.
Anyone knows how I could repair that, besides resetting and re-doing all my shortcuts?

Thanks

Guy Sirois

JJG

Hi altair,

indeed, there are some shortcuts that you can not reassign : these you are talking about, for example.

Another one is the "J" shortcut, that also can not be reassigned : like you, I've experimented that (in a previously version, I had assigned it to Edit/Trim-Extend/Join endpoints, since in French, it is "Joindre" ... )

The only way to restore it is to reset your Designcad, and re-define your shortcut ; don't try to edit your dkf-file (shortcut), it's inextricable.
At a pinch (if really necessary), if you have saved your shortcuts into dka-file, maybe ...
But in any case, you must do a DesignCAD reset before.

prl

#2
Have you tried saving your current keyboard file to a text file (dka) format?  Do that, find where it lives and  open it up in notepad and find the line with the matching first two numbers 3,40:

3,40,25505 (the first two must match, the third may be something else.)

remove that entire line and replace it with the original command for the down arrow

3,40,10057

Save the dka file, in Dc open up the options command and reload your dka file and save as default.  See if that works.  Seems to when I tried it.


Note: to load a dka file, in the options dialog, use the Ascii Keyboard Files filter not the Binary Keyboard Files.  With the Ascii filter you will be able to see your *.dka file.

altair

Thanks guys !
My shortcuts file was already saved as a dkf.
I did take a look at that dkf file but I wasn't intrepid enough to try to modify it.
But following the post from prl, I will take a good look at that.

I will let you know -

Thanks

Guy

Lar

#4
I did altair's opposite: I messed with the up arrow and never got it back. This was back in version 17 or something. I had stopped using arrow steps so much and started using a snap grid technique so I never really missed it (except now in 22 the 3d grid is not as reliable as back then).

Following Prl's advice I discovered that there was no entry for the up arrow key in my keyboard file. I determined that the code would be 3,38,10056 and inserted it in the file, had to add 1 to the number at top of the file (dcad only reads the number of lines specified by the number at top of the file, if there are more lines they would be ignored),  and it worked ok, so far (of course I backed up my original keyboard file).

Quote from: JJG on October 15, 2012, 04:23:31 AM
Another one is the "J" shortcut, that also can not be reassigned
JJG, the Keyboard Tab of the Options Dialog has an 'Others' category (very last one in the 'Categories' box. In it you will find 'Point Control'

----------------------------------------
Below are what I have determined the 1st number in the dcad keyboard codes to mean (the 2nd is the key code and the 3rd is the command code). Can anybody fill in the blanks and correct if necessary:

3=no modifier key (no Shift, Ctrl, Alt)

7=Shift+
11=Ctrl+
19=Alt+

15=Shift+Ctrl+
23=Shift+Alt+

?=Ctrl+Alt+
?=Shift+Ctrl+Alt+

2= appears to be the upper keys that you have to press Shift to get (eg: Shift+the '1/!' key gives '!', although the code for 1 is 49 and the code for ! is 33).

Lar
ps: after loading a new keyboard file you should click 'save as default' (in this case test it out first) then close dcad and reopen. A trick when you want a temporary key is to set it and don't click 'save as default'. When you reopen dcad the temp key assignment will be gone.


altair

OK I just re-saved my keyboard shortcuts in ascii to get the .dka file. That worked OK.
The only thing is that I do not have a line that begins by 3,40,---
I do see the line 3,38,10056 that Lar is talking about, but no 3,40...  :(

So I tried to add the missing line with 3,40,10057, and added one to the number at the top.
Saved & reloaded the file in DC but I got an error message that DC encountered a problem and needs to close.

Any ideas?

Guy

prl

#6
Quote from: altair on October 15, 2012, 08:40:55 AM
So I tried to add the missing line with 3,40,10057, and added one to the number at the top.

You're fine.  The line with 3,40 only exists if it has been assigned a function or macro.  Apparently you cleared the assignment and saved the file.

prl

If you are still getting the crashing, make sure your text editor isn't adding funny stuff to the file.

Or go back to your earlier dka version, assign anything to the down arrow, save the file as *.dka.  Now it will contain the 3,40 line. Do the edit as described earlier.

Or (2) zip and attach the file here and I will fix it for you.

altair

Thanks prl,
just one question; DC can work with either a .dkf  OR  a .dka file, right?  Both files don't need to be there, nor do they need to be identical, right?

JJG

#9
Quote from: Lar on October 15, 2012, 08:17:57 AM
Quote from: JJG on October 15, 2012, 04:23:31 AM
Another one is the "J" shortcut, that also can not be reassigned
JJG, the Keyboard Tab of the Options Dialog has an 'Others' category (very last one in the 'Categories' box. In it you will find 'Point Control'

Thanks, Lar !
Indeed, I thought the space bar for "Command Line" was also the same kind as "J",  because I also reassigned it to something else, and I never found out how to go back to "Command Line".
Now I have found !

Concerning the problem of Altair, an alternative rather than a reset DesignCAD would be to load a dkf- or dka-file containing "standart" keyboard shortcuts of DesignCAD, then change the desired ones ...

prl

#10
Quote from: altair on October 15, 2012, 09:52:10 AM
Thanks prl,
just one question; DC can work with either a .dkf  OR  a .dka file, right?  Both files don't need to be there, nor do they need to be identical, right?

DesignCAD doesn't use these files on startup.  The files whether binary or ascii are saved configuration files, not active configuration files. You can have them both or just one or a dozen different versions if you wish.  I tend to have dated versions so when I change things if something goes wrong, I back up.  And I always use the ascii versions.

Once you load one of them and hit the "save as default", DesignCAD creates or updates the DC3MAXKEY.SYS file.  The DC3MAXKEY.SYS file is the file DesignCAD uses when loading.

Edit:  Another reason to always use the ascii version (besides not being able to read the binary versions) is for upgrading.  I have so many special key assignments I forget where everything goes.  With the ascii versions, I can see where all my basiccad programs are hooked to.  Some basiccad programs I've forgotten what I named them so I use this file to remind me.

Edit again:  A final thought in case you have multiple versions of DesignCAD.  I put all my dka files in one folder on my D drive.  Every version of DesignCAD on my machine (15.3, 17.2, 18.3, 19.beta, and 22.0) all use the same DKA.  Trying to keep things simple if possible.

altair

Thanks prl,

I also have 3DMax20, so with my .dka file now repaired, I will use it with the new version.

Your solution worked, I assigned something else to the down arrow, then modified it to be 3,40,10057

Thank you so much,

Have a nice day everyone.

Guy