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.

Aligning a 3D plate stack (Xand Z), and stretching (Y)

Started by samdavo, April 13, 2013, 10:04:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

By way of introduction I'm pretty green to 3D - thought I'd give it a go.  i.e. this is about first steps.
No way can I put this on "Tips and Tricks" thread, because I am just thinking aloud. 

Minstrel - thanks for that fantastic video, DesignCAD 3D Max & SketchUP - tut_009- "Baby Steps"
http://www.youtube.com/watch?v=Q--r7gg-NZM
Published on Youtube 07Jan2013.

My mission is
a) to show a pseudo - horizon (not dissimilar to Sketchup  - but hopefully to avoid having to go to Sketchup - well Sketchup Pro anyway)
b) to write a macro to achieve that "axial alignment" of plates sliding on each other. 

then
c) to thicken up the lower plate from 25mm to 100mm.
(when you don't know how to put snap point on the middle of a face - i.e. I used CG of the solid instead), 
d) to point out some of the many problems I seem to have found (similar to the above) - no doubt there's an easy answer to many of these problems.
e) to learn more about 3D Max.

Just discussing things, many trivial, starting with this one :-
1.  At 50secs you talk about colours -  FWIW, I am checking out setting the colours of the 3D cursor as X= red, Y=white, Z= blue.  This is possibly an alternative (or partial alternative?)  to "Display CS".

2.  I agree with you entirely when you say, re the alignment of blocks in a stack, that that tip alone "was probably worth the price of admission" ,  Lol, Bludy brilliant!!.   But access to those alignment icons is a bit convoluted, as you say

At 2min 30secs, (after placing the three blocks), you show how to get to the "Alignment" icons using the menu.  ("Object Alignment = Menu: Edit / Selection Edit / Object Alignment").

3. Two quick comments,   you have presumably written a macro plus a custom toolbox to access it/them.  I enclose my attempt at such a macro, which I call "align types6and8".  You have to go into it with two objects chosen.
Note that this centres in x and z directions.
>AlignObjects
{
  <Type 6
  }

>AlignObjects
{
  <Type 8
  }

But also, it is arguably not too onerous (some may say) to memorise "Alt+E, S, then down to the Alignment options"  - but I personally agree with you.
(PS actually, the quick way is one click up , rather than about 18 down to the bottom to the Alignment command)

4. I note you often export to Sketchup 8 Pro (which you need to transfer DWG files - as against the free Sketchup8 Standard - In Aus, the Pro version costs $500, mmm).   Instead I offer an option for discussion, which shows a "make-believe horizon" into DesignCAD, namely a couple of coloured planes behind the object.   And I will post some partial screendumps to illustrate this and a couple of other points.

5. The first screendump involves the mission, firstly to centre those plates, having placed them the same way you placed your blocks in the Youtube tutorial.

6. I have a second main mission to discuss, namely to thicken up the bottom (red) plate - discussion to follow in subsequent emails. 

PS I enclose a drawing should anyone want to play around with the problem (and/or with the macro).

samdavo

well, lol - I meant the first jpeg/png to be this one = taken from Minstrel's Youtube  (and the first one above is for a subsequent post).
Whilst I am at it, I enclose that macro as a zipped file.

samdavo

So, Suppose I want to increase the red plate from 25 to 100mm.
I tried looking at it in elevation, but couldn't stretch it down for some reason (??)
Q1.  Surely stretch should work in that situation (?) Am I making a stupid error?

edit - yep it's a stupid error all right.  apologies - all I had to do was use the stretch command in the appropriate elevation, and unclick the "Use 3D Selection Box" option - doh.
If you go to a new thread, called "diamonds", reply #2 in particular, you see what I mean.
There you will also see that I've written a macro to find the midpoint of each face of the bounding box - cheers.
http://forum.designcad.com/index.php?topic=4958.0

I had to resort to the following ( clearly Heath Robinson:-)
I decided to thicken it by changing the "bounding box" dimensions, which would only work with a vertically prismatic plate, (because it is a vertical scaling of any features).

So I clicked it, went into InfoBox, changed the size of bounding box from 25 to 100,   and (presumably because I haven't set a sticky handle with the red plate) the increase was about its CG, i.e. 37.5mm up (of the top) and 37.5mm down ( of the bottom face). 

Q2.  Now I couldn't find an "(Object) Alignment option" to make the two faces "mate" / flush, i.e. effectively lowering the red plate by 37.5mm.   Is there such a "mating" feature in 3DMax?

So instead I drew a vertical line 37.5mm long, highlighted red plate, set handle at one end of 37.5mm line, and then moving the plate with "M".   (No doubt I should have used "Relative to Reference POint", but that's the least of my problems, lol). 

(I then change the view angle to achieve the "pseudo-perspective" horizon (2 cents)

samdavo

Q3.  For some reason, No matter what I do (well, within my philosophy, Horatio), I can't seem to make the gold plate stay still, and the red plate self align underneath it.   (i.e. if you look at the drawing - or the jpegs - you'll see the gold axis of the top plate no longer lines up with the centred position of that plate).

The sequence of choosing the plates seems to make no difference.
Is it always the case that the bottom plate stays stationary?

samdavo

Q4. Suppose you have a solid (i.e. the red plate).  Is it possible to (easily) set a handle on the midpoint of one face (the top face?)   I imagine - had I thought ahead with perfect hindsight foresight - I could have put the handle at that point when I drew that "box".

If it isn't easy to set a point on midface, is there a macro out there ?
(PS I considered drawing a diagonal line, and setting a point with Ctrl+K, midpoint.  - But the top surface wasn't easily available, so I opted to simply choose CG, scale everything from 25 to 100mm vertically (about CG), and then lower it 37.5mm.


samdavo

Q5. I clicked "Save parameters with drawing".
I assume that others opening that file have "view angle" set at one called "temp4". 
ON another matter, I note that when I download and open it (direct from this forum), it has white background, whereas I saved it with black.(?) 

Q6.  I assume I used the view toolbox correctly?  i.e. As I was drawing, I would rotate to see what I wanted, then defined the view using "Save Current View",  to eg "temp4".

PS. Just thinking aloud again, lol,  but how hard would it be to make a background that is lower-half green, and upper-half sky blue  ???   This is more or less what Sketchup does - well that's where I got the idea from.  I imagine pretty hard in DesignCAD - hence I thought I'd try this "pseudo horizon / drop-screen" behind the object(s) - 2 cents.   Arguably a bit amateurish, but if it saves $500 (for Sketchup8 Pro), I'm happy to consider it.

PPS - when I think about it, you can leave the background as say grey,  and then add a single sky-blue "drop screen"  (top half) - even if it actually has to be skewed across the XYZ axes to make it look horizontal / eye level.   I forgot to mention that (doh) you have to set the view firstly as Perspective,  then rotate it as required, and then save view.   After all we are trying to fool the eye into believing there is a horizon (Sorry - thought I'd redefine the term baby steps :) ) 

samdavo

Oops - I seem to have half solved the vertical stretch problem lol. 
I enclose screendump which is what I ended up with after stretching the red shape (in elevation) down by 75 - and is self-explanatory-

as I am sure my confusion is self evident  :o

Q7.  Can anyone explain please why it is so reluctant to want to stretch from a full planar situation to another.

samdavo

Ahh - well I seem to have got there in the end, but damned if I know how lol.
(other than to turn off the 3D selection option in the Stretch Command dialogue box)?

I notice that, when I put the selection box around the bottom red line ( in elevation),  that a completely different selection box is being drawn in the main view  (and even a different colour?  i.e. different to my default selection box colour).
Anyway, apologies if this is all covered under "3DMax 101".  and the answer is simply that I have to read up some more.

(Sorry, for 3D I usually use a different Cad program - cost is many many multiples of 3DMax however) 

samdavo

PS another thing I may have screwed up, I believe I tried to set "Solid Define", assuming it would combine the lines, planes etc into a single solid...  (?)  As I recall, I accidentally combined both shapes into said "single solid" so I reversed it (with undo from memory) , and possibly left a stack of loose ends /entities there.   

And perhaps, that affects how things stretch (??)  Hard to imagine.
Q8. How important is it to use Solid Define?

Q9.  When I go into "selection filter" with that drawing, I find there are 4 types of entities, :
text,
dimensions,
lines and
planes.

Why doesn't it say there are solids there as well?

minstrel

#9
My, Samdavo, you've been as 'busy as a bee'...

Glad to see 'Baby Steps' inspired you to dig so deeply into these things.  Must admit, your 'flurry' of posts is a bit too much for me to respond to today [big family event], but I'll be getting back to you.  Plus, I'm sure others with offer their thoughts and ideas, into the mix, as well.

Keep at it! ...One step at a time 8)

Minstrel

samdavo

Well, Minstrel, Thanks for that great Youtube (and the others).
I like the way you end up playing chopsticks.
Last Question for now (promise lol) - but I assume it takes a while to learn how to play a symphony.
i.e. one summer-dip in the lake does not a swallow-diving 3D draftsman make  :)

samdavo

Quote from: samdavo on April 13, 2013, 11:32:49 PM
PPS - when I think about it, you can leave the background as say grey,  and then add a single sky-blue "drop screen"  (top half) ...  After all we are trying to fool the eye into believing there is a horizon

OK - just playing around with this whilst watching Sunday night TV...
One of my goals was to simulate "SketchUp".
I therefore enclose some jpeg/png's of the effect of a single blue (or black) drop-screen

green and blue as I proposed in the above post (with fogging - which I clearly don't understand very well lol)
yellow and black - call it a desert scene;
and "greens at night".

Personally I prefer the first pictures I posted - without fogging etc. (2 cents).
Hey - just thinking aloud ok?
PS Again, I enclose the drawing should anyone be interested.

samdavo


samdavo

#13
Here's another way to look at it (getting back to the alignment matter, where it isn't clear to me which will move, and which will remain anchored  wrt the origin) ...

I enclose a drawing called "test of alignment".
and I include a png of that drawing called "Unaligned"
and another - after running that macro several times - called (finally) "ALIGNED" ; all three,
a) vertical axis (green), - which I have assumed acts the same as a solid,
b) piston (gold), and
c) btm plate (red).

Now, I don't know about you, but it took me many runs of that macro (align X and Y)  to achieve this. (2 cents).

I realise there are other ways to do this,  and maybe - heck, just align them, and then reset the origin,  - not that difficult.

MarkX

Quote from: samdavo on April 13, 2013, 11:07:09 PM
Q4. Suppose you have a solid (i.e. the red plate).  Is it possible to (easily) set a handle on the midpoint of one face (the top face?)   I imagine - had I thought ahead with perfect hindsight foresight - I could have put the handle at that point when I drew that "box".
AFAIK, there's no tool for this. Losing landmarks is a big problem in DC IMHO. Once I find a middle point (using a variety of techniques), I'll frequently mark it with a pointmark in order to retain it.

You can draw a true circle through 3 points on the square and then quickly find the center of the circle. Or draw a line from the middle of one side to the other and then snap to the middle of the line. This is where those other programs that find reference points for you really shine

If you have DC set to remember handles, then sometimes it will remember the handles long enough for additional actions.

Mark