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.

Info box SameAs utility

Started by prl, December 07, 2006, 11:42:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: JJG on February 19, 2011, 06:51:55 AM
Also, I tried to find a way to do the same thing, but only in macro language, ... and I found it !

In fact, the native command to activate the finger sameAs already exists in the file Dc3MaxCmd.INI, but it is rendered inaccessible (= disabled) by simply being put in comment : it is ID_INFO_SAMEASBAR = 10673

JJG, I missed reading this topic.  Very nice work!!!

JJG

Prl,

you are welcome ! without your SameAs_executable, and without my XP problem to run it, I would never have got the idea to look into this kind of "stuff".
And thanks to the technical service of Cogistem too (french distributor of DesignCAD), to give me the idea that it would be doable in basicad only.

rccon

JJG,   I would like to use this technique, but have not been successful so far. I have DesignCad 21 and when I looked for the file Dc3MaxCmd.ini, it was not in the program files folder for ver. 21, nor were there any .ini files. I found it in the program folder for ver. 15, and wonder if ver. 21 is using this file, or if .ini files are no longer used. I made the changes you suggested in Dc3MaxCmd.ini, and made a macro but when I ran it an error was reported in the line ID_INFO_SAMEASBAR.
Should this work in version 21?

JJG

Rccon, yes it works in v21 as well, I use it every days.
Maybe your DcMaxCmd.ini file is in another folder ? mine is in "My Documents\DesignCAD 3D MAX 21".
It is necessary to do the described changes in this file if you want to use this macro.

Note : If you are using another version than the US-version, it is possible that the name of this file is other than "DcMaxCmd.ini" exactly : for example, in the french-versions I have on my machine, the names are "DCP6KCMD.INI" (DesignCAD pro 6000, v15), or "DCP7KCMD.INI" (DesignCAD pro 7000, v18-19), ore "DCP8KCMD.ini (DesignCAD pro 8000, v21).

rccon

JJG. Thanks, I got it working, and I think it will be a great time saver. My problem was finding the right dc3maxcmd.ini file, as I had multiple files by that name from earlier versions. It was in "my documents" as you said, but I don't like it there. It's five layers deep in C drive in a folder I never use if I can avoid it. I would like to put it in a different drive which I back up frequently, but it seems Dcad will look for it in "my documents" by default. I've looked in the "file locations" of options, but nothing there seems to apply. Do you know if there is a way to change the location?

DrollTroll

With versions 18 and later, on Windows Vista and later, when you install DesignCAD "for all users" it looks for most non-binary support files in your "My Documents/DesignCAD 3D Max nn" folder (where nn is the version number).
My own preference is to install "just for me", which puts all the binaries *and* support files, samples, etc. in the same base folder (just as the older Windows versions did). Just be sure to install to a folder where you have full read/write permissions; in the last two or three versions it's been defaulting to C:/Users/Public, but you can change this at installation time. DO NOT use this option to install to the C:/Program Files folder structure, or you'll run into endless file permission nightmares.
25 years with DesignCAD

Dr PR

rccon,

To follow up what DT said, I use the "for me only" option and install each version of DesignCAD in a

C:\DesignCAD Vnn.n\Programs

folder. Other files related to that version go into the "C:\DesignCAD Vnn.n" folder, especially debugging files specific to that version.

I have a general

C:\DesignCAD

folder where I keep keyboard files, materials, custom tool boxes, etc., and macros go into

C:\DesignCAD\Macros

I currently have 32 alpha, beta and final versions of DesignCAD running on one XP machine, all at the same time (although most are never used anymore) using this technique. All use the same common files in the "C:\DesignCAD" folder, although I have two keyboard files, one for older versions and the other for V20 and later.

With Vista and Win 7 you can't install in the "Programs" folder, and I don't want anything in the "Users\My Crap" folders. Using your own custom folders for installation reduces the possibility that installation of program B will overwrite parts of program A.

Phil

DesignCAD user since 1987

rccon

I uninstalled designcad 21 and reinstalled it on d: drive. This time all the .ini files were put in a file named data1.cab on d: drive, but when I started designcad they were extracted to my documents on c drive. I didn't see any "for me only" option in the installation.

DrollTroll

Same screen where you enter your serial number.
25 years with DesignCAD

rccon

Thanks, DT. I got it this time.