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.

Set View By View Center - No menu command?

Started by VanF, April 13, 2010, 07:52:28 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

VanF

Hey folks,

V 17.2 - is there no menu command for Set View By View Center and consequently no way to make a keyboard shortcut, short of making a macro for it?

That said...does anyone have a macro for it?  ;D

Van

Dr PR

Van,

Open "Options/Options/Keyboard." In the "Categories" window select "View". Then in the "Commands" window scroll down to "Set View." I think this is the same as "Set View By View Center."

I have attached a "vc.d3m" macro that I think Lar posted a while back. It is much better that "Set View By View Center" - it works the way the command should work. When you execute the macro it waits for you to set a point (left click or right click). Then when you drag it rotates the view around that point.

The only drawback is that you cannot use the macro in the middle of another command. The macro will terminate the command in progress.
DesignCAD user since 1987

VanF

Thanks Dr PR. I tried assigning Set View to a keyboard shortcut, but that brought up even more questions, for instance, why does DC allow you to override some default keyboard assignments but not others? I tried assigning Set View to CTRL+Q, which is by default assigned to Surface Connect, which I don't use that much. The new key was assigned and the shortcut appeared next to Set View in the View menu but when I used the shortcut, I still got the Surface Connect dialog and no View action. Oh well. I really couldn't figure out what Set View was supposed to do anyway.

Lar's macro is just the ticket, as you say, exactly the way the command is supposed to work. Thanks Lar and Dr PR!

Van

Adrian 2.0

van,
The older versions of DCad did have the problem that when you set a new keyboard assignment it had no effect until you shut down & re-started.
I can't remember now if you need to re-boot or just close DCad & re-start it. I've not had V17 installed for some time now so I can't test it, it doesn't seem to be a problem any more - not that I've had the need to assign any keys lately.

Dr PR

V20 still works like V17.

You must save the keyboard assignment file (Options/Options/Keyboard/Save), and it must be in the file location defined in "Options/Options/File Locations/Custom Keyboard."

Then you should also click the "Save as Default" in the Keyboard dialog (I really don't know how this is different from saving the file, but I do it as part of the voodoo needed to get the program to remember the new keyboard definitions).

Then you should close DesignCAD.

If you are lucky the new keyboard options will work the next time you start DesignCAD, but I am not always lucky. Sometimes I have to open the keyboard file (Options/Options/Keyboard/Load), draw something and test to see if the new definitions are working, and then close DesignCAD again before the new keyboard definitions "stick."

If this doesn't work, kill a goat and spread its entrails on the keyboard under a full moon.

Eventually the program does start using the new keyboard definitions automatically every time the program starts.
DesignCAD user since 1987

Adrian 2.0

Dr,
How many goats are left alive in your district?
I find chickens are nearly as effective.

Pearco

adriank;

Wow! Chickens. You can learn something new about Dcad every day on this forum.
Thanks for the new tip.
Jim
User since ProDesign 1.5

Lar

Hey Doc, thanks for the free promo on the vc.d3m thing but it was actually prl who posted the macro. You can see the original post here:
http://forum.designcad.com/index.php?topic=1831.0
It sounds very much like this thread.

Quote from: Dr PR on April 19, 2010, 09:04:07 AM
You must save the keyboard assignment file (Options/Options/Keyboard/Save), and it must be in the file location defined in "Options/Options/File Locations/Custom Keyboard."

Then you should also click the "Save as Default" in the Keyboard dialog (I really don't know how this is different from saving the file, but I do it as part of the voodoo needed to get the program to remember the new keyboard definitions).

When you make changes to the keyboard setup it is only temporary for the current session. To let dcad know that you intend for it to be permanent you click 'Save As Default'. For it to actually become permanent you have to close dcad since dcad does not update the configuration stuff until you close. Saving the keyboard file saves an external file on the hard drive for you to reload at any time (after a new installation, for example, or different users on the same computer can have different setups which they would have to load every time after the other user). This has nothing to do with whether dcad uses the setup or not because right after saving the file you can go back and change everything or reset to the original.

Lar

VanF

Quote from: Dr PR on April 19, 2010, 09:04:07 AM

If this doesn't work, kill a goat and spread its entrails on the keyboard under a full moon.


Well, I'm glad that hasn't changed since V17.2.

Van