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.

workspace configuration

Started by rccon, March 03, 2013, 11:05:44 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

rccon

Samdavo,  that second file you posted (.dka.txt) looked like my .dka file, and I thought I should be able to edit it, deleting the references to the unwanted keys. But when I tried to open designcad, designcad would encounter an error and shut down. Not surprising, since I couldn't determine what to delete.

But wait, I just tried opening the .dka file again with notepad, and it looked completely different. This time each line was a list of three comma separated numbers except some of them were followed by a couple of spaces and ;;; followed by the path to a macro. The last of the three numbers on these lines would be 25500 or something close to that and this number would be one that showed up as "currently assigned" in the "options, keyboard" window. Bingo, I now can see what macros the numbers refer to, and can also edit the file. I deleted the lines referring to unwanted macros, started designcad and changed the workspace configuration to use the .dka file instead of the .dkf. Still the old key assignments showed up.

One more step, then. It seems when designcad starts, the dc3maxkey.ini file is updated in accordance with the keyboard file, but the old stuff is not removed. Solution is, fix the .dka file, open dc3maxkey.ini for edit, delete everything and save it as a blank file. When designcad is started next, dc3maxkey.ini is regenerated, this time with only what you put in the .dka file.

It's working, for now. I just hope if this comes up again a year from now, I will remember what I did. It seems unnecessarily complicated. Also, I would like to know why my .dka appeared once with undecipherable symbols, like the one you posted and next time as recognizable numbers and text. Also, could someone explain why we need both .dka and .dkf keyboard files?


samdavo

dka sounds like ascii,  you can save as one or the other.
You must have saved it as that option ? some time when you were thinking of the Mrs maybe (?)
I enclose the ascii of my file.
anyway, well done.
(were the hotkeys set outside DCAD?)
cheers sd

rccon

Yes, that looks like my dka file. I guess the other one with all the weird characters was binary? If so, I don't know how I managed to open my dkf, since "open with" does not show for it, but I was trying lots of different things. I see now that notepad will open a binary file if you just choose "open" and select notepad from the program list.

I had set some hotkeys outside of designcad, and they took precedence over the ones within designcad. Thanks for the exchange, it cleared up a lot for me.

Dr PR

We don't really "need" both keyboard file types.

The binary file will load faster and it is smaller. On modern computers these things don't matter much, but back in the dark ages when memory and hard disk space were small and processors slow the binary file made the program open a bit faster. The binary format was the default.

The .dka ASCII file can be edited in a text editor. This gives you the option of creating and editing the keyboard description outside DesignCAD. After it is loaded in DesignCAD you can save the same keyboard configuration in a .dkf binary file.

Phil


DesignCAD user since 1987

samdavo

#19
Phil,
Makes sense.
And it would also make sense ( you'd think) to make the default the "edible ascii".
Even better if it weren't in such a weird code.  (or does someone know what those numbers mean ?

i.e. would be good if it read like DT's "Standard hotkeys" listing
A = arc
Cntl + A =  etc
 
cheers

Bob P

Some (but not all) command numbers are in the cmdlist.ini file, in the same folder as the other DC ini files.

prl

Quote from: Dr PR on March 11, 2013, 08:49:53 PM
After it is loaded in DesignCAD you can save the same keyboard configuration in a .dkf binary file.

It was my understanding that the *.dkf or *.dka are only used to load the keyboard definitions.  Once you "save as default", DesignCAD creates/updates the DC3MAXKEY.SYS file.  It is that file (DC3MAXKEY.SYS) that is loaded upon starting DesignCAD each time, not the *.dkf or *.dka. Of course I could be wrong but that is what I understood.

Garry K

I found 3 files

c:\ProgramData\IMSI\DesignCAD 3D Max 22\DC3MAXKEY.INI
c:\Users\All Users\IMSIDesign\DesignCAD 3D Max 22\DC3MAXKEY.INI
c:\Users\Garry\Documents\DesignCAD 3D Max 22\DC3MAXKEY.INI

I'm guessing that is the one you are talking about

If the file changes there may be virtual issues as well. (Windows 7)

prl

Quote from: Garry K on March 12, 2013, 03:16:59 PM
c:\Users\Garry\Documents\DesignCAD 3D Max 22\DC3MAXKEY.INI
I'm guessing that is the one you are talking about

No, talking about the DC3MAXKEY.SYS file not DC3MAXKEY.ini.  File is in same folder as program executable dcad22.exe    The "save as default" creates/updates the sys file.  DesignCAD will then create the corresponding *.ini file.

The proper sequence is to create or manually edit the *.dka file.  Load it in options>options keyboard and "save as default", click OK.

Bob P

Quote from: prl on March 12, 2013, 03:40:46 PM
No, talking about the DC3MAXKEY.SYS file not DC3MAXKEY.ini.  File is in same folder as program executable dcad22.exe    The "save as default" creates/updates the sys file.  DesignCAD will then create the corresponding *.ini file.
The proper sequence is to create or manually edit the *.dka file.  Load it in options>options keyboard and "save as default", click OK.

Depending on the version of Windows and whether the program is installed for one or all users, the file may end up in Garry K's folders.  It's in the My Documents folder on my machine.

Dr PR

I always install "for me only" and tell the installer where to put the program. On my XP and Win 7 machines the DC3MAXKEY.INI and DC3MAXKEY.SYS are both in the

C:\DesignCAD Vnn.n\Program

folder (where I installed the program).

I have looked around on the Win 7 machine and I can't find any DesignCAD files in any other folder. They may be somewhere else, but if they are they are well hidden.

Phil
DesignCAD user since 1987