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.

Ctrl M and other commands

Started by samdavo, November 17, 2013, 12:49:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Ctrl M = previous view,
and you can repeat it 10 or 100 times, and you go back, not only to the last time the file was saved, but to when you opened that file on that session (2 cents). 
I find that unexpectedly handy :)
Maybe others have other examples of handy hotkeys and commands (even customised hotkeys). 

samdavo

#1
Correct name seems to be Ctrl+M = Zoom Previous , (as in View\Zoom\Zoom Previous if you prefer);
Next to check out Ctrl+Shift+M  = Zoom Redo :-

Firstly a distraction - I'm confident that everyone is aware of
Ctrl + Z = undo , and
Ctrl + Y = redo

I believe both of these work for "several" steps,  eg 5 steps back - indeed as far back as the last save of the file in question -  and then 5 steps forward again.  Let's define this as a "medium-long-term-memory into the past";  and "ditto back to the present". 

Suppose you've made a change to the drawing - made the pagoda octagonal instead of hexagonal - and you can't decide which,
then to compare them side by side, don't save, but just open a new file (restored down as required);   
(Ctrl + C) = copy and (Ctrl + V) = paste the octagonal one into the new drawing
And Undo the original back to hexagonal.   Compare and/or contrast to your heart's content.

Somewhat similarly, Ctrl+M will go back to previous view/zoom (as many times as required - even before the last save = a super-long-term memory into the past);
but (think I'm right here),  I believe that  Ctrl+Shift+M = Zoom Redo only works once, i.e. there is only a one-off-memory back, and you don't necessarily make it back to the present (if you know what I mean).  (2 cents).   Bit like the time-regression-machine that ran out of petrol on the return journey.   On the other hand, after a while, you have a stack of views stored up and available with Ctrl+M,  and whether you go to the first use of this view or the third makes no difference.

Just playing around with the Ctrls folks. :)   

PS I find this often more convenient even than Aerial view, eg you are working with a stack of drawings on one sheet (refer jpeg), then "zoom-memory" is real handy  to navigate back to what you were doing a few minutes ago. 

samdavo

#2
Ahhh - gotta feeling that Ctrl+Shift+M wipes out that super-long-term memory of Ctrl+M, and you are left with just one zoom back or forward.
edit : Correction, sorry, that's not true that you can't still go back to the first view when you started that drawing that session;  but it IS true that Ctrl+Shift+M can only "return forward" by one view. 

Actually I personally don't use Ctrl+Shift+M, although I do use Ctrl+M quite a bit ;  I remember it as an upside down Ctrl+W :)  cheers

samdavo

#3
If you have a hotkey "A" which runs a macro to "select all layers",
then "A" followed by "Ctrl+A" selects everything.

Or if you have a hotkey "2" which runs a macro to "select only layer 2",
then dragging a selection box around part of the drawing selects layer 2 there ...  and ( continuing) ...

If you then have a hotkey "3" ditto layer 3,  and you use Shift and drag the selection box around another part of the drawing, you add layer 3 there to the first layer 2 selection;

all very simple and civilised  :)  (Those hotkeys and macros posted under "User Contributions").   

Others probably use the selection filter (edit or Q\Layer options) to achieve this sort of thing - and (quite likely) equally/more efficient.

Feel free to post your favourite "shortcuts" (or possibly lesser known commands).

*******************
Another one,  with some objects such as lines of text selected...
Alt,  then E (edit), then S (selection edit)
then up arrow, and enter ...
and you have the options of "left justify / align" the text - or other objects - or centre justify etc.

Of course it's not difficult to write a macro to do that either. (I attach LJ.d3m = left justify - also CJ and RJ  , centre and right resp - only work with something selected); i.e.  "spacebar,  CJ, enter", and everything selected is centre justified. 

But equally, I feel it is worth noting how easy it is to use Alt to access the full Menu and drop-down submenus thingo.  (2 cents). 
(V22.1  Win7)

samdavo

#4
Here's another comment from left field :-

If you have a stack of files open, many of which are 3D (with eg 4 windows each), and you want to
a) see a clear alphabetic list of those windows, and
b) close some; 

then you can cascade all windows with "spacebar + CAS + enter";  and delete windows to your heart's content; 
(edit: and when you've finished, you can get the original Design Cad Tiling back with "spacebar + DCT + enter")

or (at least with V22 and with Win7)  you can go to "Window" then (at the bottom of the list) "Windows", and all your open windows are listed alphabetically, and you can close them one by one.  (2 cents)   

samdavo

#5
Here's another one that possibly doesn't get used much ... (but I plan to use it more in future) ...
Surface Area and Volume.
(edit : you get both when you go to Dimension\Info\Volume, and then choose a solid)

The grate has a stack of wedge-shaped holes through it.
It has a total surface area of 30835,
and a total volume of 55286.
I have no idea how accurate those numbers are, lol.
(edit - let's call em cms,  cms2 and cms^3)

(edit - having checked other solids - it looks to be spot on)

But they are easily cut and pasted into a spreadsheet, and eg the volume can then be multiplied by the density of the material in question ( eg 7.85 kg / litre for steel,  or 0.5kg / L for pine), and you have the mass.  (2 cents)

(55.28 x 7.95 = 440kg if it were steel,   28 kg if it were wood)


samdavo

#6
Quote from: samdavo on November 20, 2013, 02:13:21 AM
... the volume can then be multiplied by the density of the material in question ( eg 7.85 kg / litre for steel), and you have the mass.  (2 cents)

Actually, if you copy the solid (which you've drawn in mm), 
a) and scale/(selection zoom)  the copy up by a linear factor of (7.85)^(1/3)  in each direction,  i.e. cube root of 7.85,  = 1.987,  (i.e. you can use 2 if you're in a hurry) - 
b) and you measure the volume,
c) and you divide by 10^6,
you get kg direct - assuming your solid was made of steel,  (and density of your steel = 7.85 kg/litre, and a litre is 100mm x100x100).

i.e. no need to go to the spreadsheet.

Heck stainless steel has density of 8, so that you "selection zoom" up by a factor of 2.

(Hey, maybe this post is good enough for the "Tips and Tricks" Thread? :)  - ahh probably not).

PS for pine wood, you would have to zoom the duplicate solid down by 79.4% all directions to get volume to come out as kg of pine ( density = 0.5, and cube root of 0.5 is 0.79)

samdavo

#7
ok, Here's a question or two (but I suspect the answer is no to both).

1. Is it possible to obtain the centre of mass of a solid using standard commands. (PS Please skip to next post).

2. Next question.  Has anyone ever written a macro to do this? 

I use "centre of mass", because I realise that DCAD can snap to "centre of gravity" of an area...
eg a random hexagonal/polygonal area;

not sure about a random sexagonal/polygamous area like Woodstock though.   

PS I suppose you could always slice a random solid up like the 27 elements of a Rubik's Cube, and calculate the volume or mass of each - then run a spreadsheet.  Pretty rough for the 21st century lol.  (see second jpeg - random triangular pyramid).

PS Of course the CG for a prismatic solid is easy, because you can simply go to 2D and find the CG of the area / cross-section.   Refer jpeg.   It is more the random ones I was thinking of.   Cheers.

samdavo

#8
Quote from: samdavo on November 20, 2013, 09:24:43 AM
ok, Here's a question or two (but I suspect the answer is no to both).
1. Is it possible to obtain the centre of mass of a solid using standard commands.
Well it turns out that the answer to the first is yes (doh).
i.e. if you select a planar area, and snap to CG, you get the CG of the area.
But if you select a solid, and snap to CG, you get the CG of the solid.

Great stuff!!
I enclose a dcd and few jpegs of a line joining the CG's of three solids.
Dead simple.
cheers.

samdavo

#9
PS The effect of chamfering a corner off the rectangular block moves the CG of the solid off-centre.  See the jpeg -  CG is 23 of 48 from one face,  and 22 of 46 from another;  Just under half in each case.
Cheers

PS Sorry - I'm still experimenting with the best way to present 3D dimensions :)
Not sure how anyone else does dimensions, but, for the final two jpegs, I've used:-
"(set) origin" at the CG incidentally,
then "Options\General\Working Plane in 2D = XZ", 
then set "2D mode",
then add the dimensions in the plane and orientation you desire,
then back to 3D.

Seems pretty tortuous, but one gets there in the end. (2 cents).

samdavo

#10
As for the accuracy of Dimension\Info\Volume (and Surface Area as a bonus) ,
here's an example and check of said accuracy.
Firstly what does DCAD give,   19577 mm^2 (see jpeg).

THeoretical Surface area of torus = 4 (pi)^2 . r. R
where r = 10mm
R = 50mm
Surface area = 19739. mm^2

near enough :)

PS that formula can be written (2.pi. r).(2.pi.R) which is the circumference of the circlular crossection of fthe doughnut , by the circumference of the circular axis of the doughnut.

It is the same as/similar to the walls of a cylinder in effect, i.e. perimeter of base x height /length.   
Something to discuss next time you're having a doughnut with a friend :)

samdavo

#11
Here's a check on volume.  I found these formulae for the volumes of NASA nosecones (sorta) - whether conical, parabolic or elliptical.    I get the volume to be within about 1.5% to 2.0% for the conical and elliptical, but about 5% in error for the parabolic - could be something to do with the accuracy of my parabola.  ( 2 cents).   Basically, all good, and the fact that it also immediately snaps to CG of the solid is handy.  Well, I imagine it would be if you worked for NASA :) 

I mean, I don't imagine it matters all that much if you land EXACTLY in the middle of the Sea of Tranquility, or a few    metres "moon east" or "moon west".  And who's gonna tell on you anyway?  Some moon-dweller?  Ha, who's gonna believe a moondweller against the word of a team of astronauts?  (2 cents)

samdavo

#12
Just a quick comment that's pretty self-evident.
But suppose you need an "fairly accurate" parabola, of the form
y = (0.0025) x^2.   ( edit - best would be a half of a symmetrical one, see last mentioned set of coordinates ... but meanwhile ...)

First effort (not very accurate)
draw a curve between 5 points :-
(0,0);   (20,1);  (40,4);    (60,9);   (80,16).

Second effort
draw a curve between 7 points (which address "boundary conditions":-
(0,0);   (1,0.0025);   (20,1);  (40,4);    (60,9);   (79,15.6025);    (80,16). 

Then check the accuracy of each of these at various points, including intermediate points.   I found that the second was a major improvement (see attached jpegs).

As for how to draw a parabola, I suspect the best way is to have one sitting in your library (which you prepared earlier), which can be imported and stretched as required ( 2 cents).   At least that way, you only have to calculate the numbers once. 

But maybe there's an easier way of course. Feel free to set me straight here.

PS as for the volume of this "parabolic nosecone" - despite the better accuracy of the parabola that is swept , I can't agree with NASA lol.  (about 6% higher than theoretical). How they got to the moon is anyone's guess!  :)

PS When I thimk about it, the most accurate would probably be a symmetrical curve that is cut in two :-

(-80,16). 
(-79,15.6025);
(-60,9);     
(-40,4);
(-20,1);
(0,0);   
(20,1); 
(40,4);   
(60,9);   
(79,15.6025);   
(80,16).