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 file problems

Started by edgar, February 11, 2008, 12:02:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

edgar

My custom keyboard shortcut file has imbedded in it this (among many similar) string:
C:\Program Files\IMSI\DesignCad 3D Max 15\Sample Macros\dist.d3m
I can use an editor (like PSPad) to edit the binary, and if I change the 15 in to 18 the file still functions (if I change the folder name). However, if I change the string:
C:\Program Files\IMSI\DesignCad 3D Max 15\Sample Macros
to:
C:\Program Files (x86)\IMSIDesign\DesignCad 3D Max 18\Sample Macros
or, even more preferable:
C:\Users\Edgar\AppData\ IMSIDesign\DesignCad 3D Max 18\Sample Macros
The file causes DCad to choke and die. Does anyone have a solution for migrating keyfiles?
-Ed

Dr PR

edgar,

This is a Vista related problem that is pretty easy to work around.

I decided long ago to put all user-generated DesignCAD configuration files, macros, etc. in a "DesignCAD" folder in the root directory on drive C:. This protects my files from being overwritten or modified by new DesignCAD installations. After installing a new program I use "Options/File Locations" to make the new version look at exactly the same place the older version was looking. I don't have to rewrite anything. So far I haven't seen a problem with new versions corrupting the files so older versions can't use them.

However, I do not try to execute macros from within configuration files. Still, if the macro language is compatible with the new DesignCAD version it should work.
DesignCAD user since 1987

edgar

Quote from: Dr PR on February 11, 2008, 12:20:13 PM
edgar,

This is a Vista related problem that is pretty easy to work around.

I decided long ago to put all user-generated DesignCAD configuration files, macros, etc. in a "DesignCAD" folder in the root directory on drive C:. This protects my files from being overwritten or modified by new DesignCAD installations. After installing a new program I use "Options/File Locations" to make the new version look at exactly the same place the older version was looking. I don't have to rewrite anything. So far I haven't seen a problem with new versions corrupting the files so older versions can't use them.

However, I do not try to execute macros from within configuration files. Still, if the macro language is compatible with the new DesignCAD version it should work.

I understand what you are saying. I think the ultimate goal of Vista (I think this is security related), is to lock the C:\ drive as far as any non-OS files are concerned. Eventually user installed programs will reside in their own space completely. This makes a lot of sense to me. As soon as I get my machine completely installed (I only have a couple more programs to go and have only installed Vista 5 times  :P ) I plan on write-protecting C:\.

My problem is that I created a DCad environment in DCad15 and have migrated it over the years, OSes and computers. With admin permissions, I had no problem creating the
C:\Program Files\IMSI\DesignCad 3D Max 15\Sample Macros
folder. But eventually I need to figure a way to edit the keyfile when needed to respond to changes in folder theory (imagine when all is distributed and SampleMacros is somewhere in cold storage on some satellite!)

If I could get the file structure for custom keyboard files, I could write a program to edit them. I suppose I could spend a bunch of time reverse engineering it. I could even try to recreate a keyboard file by starting DCad with default keycodes, this would be a bit of work, but probably less than reverse engineering. I was hoping some power user had already dealt with the issue.
-Ed