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.

Zoom to selection from command line doesn't work?

Started by MarkX, March 25, 2012, 10:56:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

I've pasted this:

  ZS=ID_ZOOM_SELECTION         ;10742;

into my custom.ini file. I select an object and type <space>ZS.

Nothing happens.

Nothing happens also if I use the native assignment:

  ZoomToSelection

I can use the menu view/Zoom to../  to correctly zoom to the selection.

Might be a bug. Can anyone else confirm?

Thanks!
Mark

Bob P

I don't know why the "zoomtoselection" doesn't work, but I did get your zs alias working.  I didn't include the ";10742;" on the line though.  Not sure whether that is the problem.

Make sure that the custom.ini file you're editing is the correct one.  For some reason, DC has installed all the ini files in two places.  The one that is active (for me) is in the \My Documents\Designcad 3D max21\ folder.  If you're not sure, search in the general Documents and Settings folder for a new DC3MAXKEY.INI file.  Many of those files are renewed every time you close the program, so locating a newer one will point to the correct folder to find the correct custom.ini.

MarkX

Quote from: Bob P on March 25, 2012, 01:15:22 PM
I don't know why the "zoomtoselection" doesn't work, but I did get your zs alias working.  I didn't include the ";10742;" on the line though.  Not sure whether that is the problem.
Hi Bob,

I just copied and modified the line from cmdlist.ini. I assumed the number on the end was innocent since it was commented out. But apparently it isn't innocent. Removed the comment (useless anyways) and now it works!

I posted earlier about the lack of documentation for the  custom commands. This is an extension of that problem -- there's nothing in the files warning that comments at the end of a line will disable the line. In most languages comments at the end are harmless.

Thanks!
Mark