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.

MarkX

Quote from: samdavo on April 13, 2013, 10:28:02 PM
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?
I think it should work from a side view. You may have to grab the handle in the isometric view, then switch views. Just going from memory here.


Quote from: samdavo on April 13, 2013, 10:28:02 PM
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). 
If you resize from the Infobox, pay attention to the setting "Use selection handle". If you have this setting set, then the scaling action will always be AWAY from the selection point (or at least this works with lines).


Quote from: samdavo on April 13, 2013, 10:28:02 PM
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?
I tried pointing out this need once, and I got like a dozen responses telling me how to use the "move" command.

You can indeed use the move command, IF you first calculate the distance you need to move -- which is a lot of extra steps.

I think Lar made a macro for this, which I can dig out if you're interested. For some reason, it doesn't always work so I've tried to develop other techniques.

What I do usually is to find a point on object A, and lock the X/Y/Z axis going in the direction of depth. (that's shift-x,y, or z depending) Start drawing a line at the locked point. Turn on orthogonal movement and Switch to a side view. Click on the edge you want to move flush to. Because of orthogonal being on and the locked axis, the line will draw in only the desired XYZ direction. Now you have a line that you can use to move your object flush in the desired direction.

The fact that no one else seems to feel the need for this rather obvious action/tool suggests that most people are still not spending a lot of time in 3D in DC. Moving things around, you frequently need to move object A until it just touches object B, frequently at some undefined point on B. For instance, moving a bracket to line up flush to a wall. There is no obvious snap point on the wall. Snapping to the plane just snaps to SOME point on the plane. And sometimes you need object A to line up with object B, even though A and B are far apart and never touch at all.

Mark

minstrel

#16
Well, finally some time to review your postings and hopefully address some of your questions, issues and ramblings... ;)

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".

Bingo! Strategic thinking will always pay off!

I can see from the your supplied DCAD file that you just may have overlooked the most important aspect of 'Baby Steps' - namely:working with blocks [and nested blocks]. There are no 'blocks' in the file [centred stack plus thicken plate.dcd].   As a result simple tasks have become complicated.

The beauty of block definitions in conjunction with a properly set 'control handle' is clearly seen when modification become necessary to any or all of the designs components.  This also allows for precision placement [move/alignments/etc.].

So, my advice: become conditioned to building with blocks [just like you did as a youngster].  By converting each element you create into a block allows you to, at any time, revisit it and make modifications. The modifications are instantly applied and updated in the drawling the moment you re-save it [over write the same named block].  From there, you will have no problems re-assembling the project either through the control handles and/or alignment macros.  Plus an added benefit you can easily save each modified version for re-use if necessary.

Quote from: samdavo on April 13, 2013, 11:32:49 PM
... but if it saves $500 (for Sketchup8 Pro)

I admire your attempts to 'stretch' DCAD to the limits...but, then again, it does have limitations.  SketchUp makes a fantastic union with DCAD and you really have no need to shell out that 'hard earned' cash for the Pro/DWG capabilities.

Here's a few ideas to ponder: [note - these are what I've seen on various sites - I got the Pro - so I have not tested them personally].

If you prefer to work with DWG's exported from DCAD -  here's a solution to try.  Visit Trimbles site and download SketchUp Pro 7... yes the 7Pro version.  It is timed to demote itself into the version 7 FREE after 8hrs of use.  ;D http://www.sketchup.com/intl/en/gsu8/download.html

Or, you can use the free SketchUp 8 and export DXF from DCAD - review this link: http://sketchucation.com/forums/viewtopic.php?f=323&t=31186

Well, I barely scratched the surface to the majority of your questions, but hopefully a little for you to chew on.

Later, it's been a long day! 8)

Minstrel



Dr PR

One of the easiest ways to stretch an object is to move points in Point select mode.

1. Enable Point Select mode - CTRL 1 toggles it on/off.

2. Select the object - all points will be marked with little boxes.

3. Drag a selection box around the points you want to move. The boxes will be filled dark blue. You may need to rotate the view or work in one of the smaller view windows to be able to drag the selection box around only the desired points.

4. Now gravity snap to one of the dark point boxes. This point will become a "handle" for the remaining selected points. Just drag the "handle" point and the other selected points will follow.

NOTE: Perhaps "handle" isn't a good choice of words because this selected point does not replace the entire object's handle. It only works for the selected points.

5. Left click to set the "handle" point at a desired position. Or you can use Point Relative or any other point positioning command to move the selected points a precise distance and direction. This allows you to "stretch" part of an object any direction and distance.

Phil
DesignCAD user since 1987

JJG

Phil,

I'll add to your description of stretching in Point select mode that you can add or subtract some point(s) simply by holding down the shift key or Crtl + shift, exactly as well as you'll doing it for adding or subtract something in a "classic" selection.
However, you don't need to gravity snap a "dark point box" to initiating the "stretching" of all "dark points boxes" : simply close the cursor near one of these points, and a left mouse click will do the same action.
Exactly as for dimensions in Point select mode.

Dr PR

JJG,

You are right about left click near a point.

However, I should have cautioned that when working in 3D you should be very careful about dragging points to be sure you don't distort polygons so they are no longer planar. Non-planar polygons will cause problems in DesignCAD. The most apparent are strange rendering effects, but non-planar polygons can cause the solid Boolean operations and some other functions to behave unpredictably.

For what Sam wants to do it is pretty easy to select all of the points on one side of a simple solid and then move them all the same distance and direction at one time. This works OK if the stretched sides (polygons) are all 3 or 4 sided.

But if a solid has surfaces that are complex grids with many facets it isn't a good idea to try to move points.

Also, in 3D you can't add or subtract points from solids or grids with Point Select mode.

Phil
DesignCAD user since 1987

samdavo

#20
Thanks for the very helpful responses Mark, Minstrel, Phil, JJG.  (might be tonight I respond).

As for my last post (reply #13), and that file "test of alignment" (where I find it takes several iterations of that macro to line the three objects up - WHEN you do two at a time),  Having slept on it - I find that you can run that macro with three (or four or more ...)  objects selected , and it lines them up in one go!!   doh.   Which is real handy.

And minstrel, By then I tried setting them as blocks.  Not sure if that is relevant to the more interesting /successful outcome (??).

Still there seems to be a very minor problem of the unpredictability as to where they will line up.
One object was a line, (call it a centreline), and it would have been real handy if that was where they lined up. 
AGAIN however, I could fairly easily have stacked them on that line (like a totem pole, or a shishkabob skewer) I guess.   (using individual move command - and maybe blocks as minstrel says).

Summary - I'd better watch that video again lol.  (and maybe I'll concede that Sketchup is quite interesting). There are a lot of ideas to get one's head around here.  cheers

prl

Quote from: samdavo on April 14, 2013, 03:08:17 PM
. . . the unpredictability as to where they will line up.

The "align" command reminds me of one of those Desktop publishing graphics commands.  I never use it.  I tend to think like a fabricator.  Make a part on your workbench then move it to where it needs to go in the total assembly. When making the part, put alignment/match marks on the part.

In DesignCAD if a 3d solid doesn't have a natural alignment point that can be used as a handle  (say a corner, midpoint), I will add a construction line or construction point to the 3d solid at the appropriate location. I "group" the construction primitives to the solid or use the improper solids trick to embed the line to the solid. Then use handles and drag copy/move to gravity snap everything together.  This ensure everything is exactly where it needs to be.


minstrel

#22
Well, here's the way I approach it using a constant control point and blocks.

I've absolutely no time to 'slap' a video together so a rather 'muddled' dcad file will have to do for the moment.  As always it appears much more complicated in explanation then in the actually doing...practice makes perfect, you know?

Once again, my zeal toward 'block' usage is not solely with DCAD in mind...but, with the intention of further enhancements done within SketchUp and friends.  Plus, most of my designs, these days, involves multiple instances of the same component...so 'blocks' are a valuable asset.

samdavo - still having fun?  Anyhow I used you're initial dcd file as a foundation.  I started from scratch due to erratic and uncontrollable viewing behaviour in your file...nice setup, I just couldn't get it to play nicely with me. 
There are lots of loose ends in my attachment... and I'm sure questions will arise...just ask.

Keep at it!
Minstrel

samdavo

#23
Quote from: minstrel on April 15, 2013, 03:05:59 AM
1. Well, here's the way I approach it using a constant control point and blocks.

2.   ... a rather 'muddled' dcad file will have to do for the moment.  As always it appears much more complicated in explanation then in the actually doing...practice makes perfect, you know?

3. Plus, most of my designs, these days, involve multiple instances of the same component...so 'blocks' are a valuable asset.

. samdavo - still having fun? 
Minstrel, Monday night here ... (Sydney)
Firstly, (minor point), I won't tell you how I drew those shapes, but in summary, your way is as good as mine , with (clearly) the advantage of highlighting your ideas on blocks and handles.  (And I still have to fully study them - sorry, too much wisdom for a quick comment)

Secondly, I note (from checking your drawing with "Selection Filter") that you have  Blocks, Pointmarks, and a Gridsurface  - and I had none of these.  (Some big clues there no doubt).

Thirdly, (and I hope I don't confuse anyone here - NOR INSULT YOU BECAUSE I STILL HAVE TO study it fully ),  but I have gone back to my drawing, deleted everything but the original red plate and gold piston, copied them each (using N), "block defined" them as block 1 and 2 resp,
(sorry, I leave the original ones as solids rather than blocks)

I then draw a line 1, 2, 3, 4, by clicking at the points shown in the top left view ( EVEN this took some experimentation for a newbie like me - so ignore it if you wish).

I end up with a short vertical line (3-4) , (equal to the vertical gap between these objects); and then
a) old school move command ... select the gold piston, make handle at 4, move this by placing handle to 3.
b) Note that this is equivalent to the "kiss" command for two planar surfaces  (underside of gold piston, and top of red baseplate) ...  which I refer to elsewhere as adding a "mating" constraint...
c) then I highlight the two blocks, and run that macro that centres them in X and Z dirns.

PS I concede that prl and probably others would probably control each block individually (without that macro).

But equally, if it is so easy to get them all aligned - they can THEN be grouped in a nested block, and manipulated.

Next, I would pose a question of Minstrel -  once I combine them in a nested block, I believe I can "un-nest them" - please confirm.  (trying to remember the Youtubes, sorry - memory isn't perfect)

I suspect ( because I accidentally posted this ramble half-complete) that I will have to include the attachments in another post.
Cheers (for further discussion as necessary).
 

samdavo

#24
here's what I meant to add above ...
dcd called "centred stack 2"
and the screendump   as  , (no)   AFTER I drew the multiple-cranked line 1-2-3-4, which gave me a vertical line between the two objects (CLEARLY I could have done this better, simply by locking the orthogonal direction as Y,   doh)...  and AFTER I had moved the gold piston down by this amount... see PPS below

(all as Mark said ... "move" rather than a macro to make the surfaces "mate")...

PPS NB, re the last comment... you'll have to look at the dcd to see the vertical segment of that line, 3-4. 
In the png file called "SELECT BOTH", you will see that this is AFTER  I have lowered the gold piston by the length of line 3-4;  and likewise ( with the "resizing handles" evident), you will see that I have chosen both objects - immediately prior to running that macro.  (2cents)

(this line 1,2,3,4 was drawn in the top left window - and gave a cranked line as shown - put this down to beginner stupidity...)

the rest is described above - and I end up with the two plates centred (and blocks lol).

minstrel

Quote from: samdavo on April 15, 2013, 05:23:03 AM
... I believe I can "un-nest them" - please confirm.  (trying to remember the Youtubes, sorry - memory isn't perfect)

Yepper...they are fully editable!

Do this: Select [double click] the 'nested' block.  The 'Info box' opens - look at the bottom and see 'Explode'.  Before you click on it  be sure to 'check mark' the "Explode Top Level Only".  This will explode the 'nest' but retain each of the individual 'blocks'.

There may be instances where you will need to explode the entire 'nest' [for instance, when you need to remove 'pointmarks']...in that case keep "Explode Top Level Only" unchecked.

Minstrel

samdavo

#26
Sorry, but before I leave that line 1-2-3-4 for a minute,

I just stuck the copies of the two objects randomly in the drawing (before making them blocks).   
For some reason, there were x, y and z components to the "shifts" I chose.
see the cranked line 1234 to see the relative positions of the two new copies.

As I said, to draw that line, I chose ortho-line, and gravity-snapped /right-clicked on the corners of the two objects in the top left elevation (2, 3, and 4 all on the same point).

I enclose the screendump of that line, and the points I clicked to draw it - see the pink circles added to the marked up screendump.   (and I concede that line is a very amateurish way to get the vertical separation of those surfaces/objects - but I still think it highlights something, namely that lines drawn, and selections selected, are not necessarily intuitive). 

point "1" was the front of the red plate for some reason (why not the back?)
point "2" was the back of the gold piston (why not the front?)
point "3" and "4" were just further clicks on that point (no comment, all good).
Feel free to ignore this post - but I realise I still have a bit to learn here :)

Summary,  clearly one has to be more disciplined in 3D than in 2D (2 cents) - probably it would have been more sensible to choose discrete x or z shifts - rather than random xyz - when I copied those objects in the first place etc etc.  Maybe as simple as holding the Shift key (of Shift+Ctrl,  etc ) whilst moving the cursor (?)

MarkX

Here's my "line-and-orthogonal-flush" trick.

In the first image I show the set up. There's a cyclinder and a box, and I want to make the cylinder flush with the box along the Z axis. That is, I want the face of the cylinder to have the same Z value as the back of the box, and I want to move the cylinder towards the box. Note that even after this move, the two objects will not be touching, because they are far apart in the X and Y direction.

In the next picture, I turn on the orthogonal mode and try to draw a line from the corner of the box to the edge of the cylinder. I can't do it, because the line wants to move out in the X direction only. I need to change the view position.

In the next image, I've changed the view point so that I can now draw a line between the corner of the box and the edge of the cylinder. I snap to the cylinder, and a line is formed. Note that the line does not actually touch the cylinder, because the line travels only along the Z dimension and the cylinder is off-set in the XY dimension.

In the final image, I select the cylinder and set a handle at one end of the line (the end closest to the cylinder). Next I will move the cylinder to the front box. I don't show the result, because this forum only allows me 4 images. In the final result, the back face of the box and the front face of the cylinder now are "flush" in the Z dimension, though they don't actually touch.

Hope this helps!
Mark

samdavo

#28
Mark - thanks for those tips (and also for the one about the circle through 3 points to get quick centre of a face).   (or even a circle on a diameter formed by two diagonally opposite points ?, no I think I prefer the three points)-

Just thinking aloud again - but some other ways that you could steer that line in z dirn and also make it the same length as the z separation between them would presumably be :-  (PS we've gone from matching faces in y direction to matching them in z - but I only mention that for interest, and because of the title of the thread )...

1. to set first point on the box, draw a short line in the z direction,  (or, in general, normal to the planes of interest, whether cylinder or box)   then use the "_" command to extend it to the cylinder (?) 
2. Of course you could always do it in reverse, i.e. a similar line starting at the cylinder, and extended to the box.
3. I guess yet another is to note the z dimension of the faces of box and cylinder, and calculate the shift. (presumably only possible with orthogonal objects)
4. Bound to be others, including "Rel to Reference Point' as Rob S would no doubt use (which I have ignored for years, probably at the expense of my efficiency).   I have almost always used construction lines, when I imagine I could have used "Rel to Ref" on many occasions.  Again, old habits, but I'm not about to resist change for the better.   Especially with my current level of efficiency in 3D :)

PS Suppose the cylinder was a sphere, and you just wanted it to touch the box (or the plane of the box) - then you would presumably opt for option 2 above (?)  on second thoughts, no biggie, as I think (might be wrong) that you have to deduct the length of one radius from the line in either event  - or again, maybe "Rel to Ref" would be useful, even if only for the last half diameter?.

All these matters obviously become more complex when you have an inclined plane (and an inclined normal to said plane).   eg you want a draw a ball about to bounce on an inclined plane  ...  (or a spherical light on one of those inclined ceilings in down-town Paris, etc )

Thanks.   And your point about drawing that line being possible in one elevation but not another is exactly the level of learning that I am at here (or was yesterday lol  - tomorrow the world).   cheers  sam

MarkX

Quote from: samdavo on April 15, 2013, 03:23:51 PM
1. to set first point on the box, draw a short line in the z direction,  (or, in general, normal to the planes of interest, whether cylinder or box)   then use the "_" command to extend it to the cylinder (?) 
2. Of course you could always do it in reverse, i.e. a similar line starting at the cylinder, and extended to the box.
Yep.
Quote from: samdavo on April 15, 2013, 03:23:51 PM
3. I guess yet another is to note the z dimension of the faces of box and cylinder, and calculate the shift. (presumably only possible with orthogonal objects)
Calculation is an option, though a bit tedious. Be sure to turn up the precision to match what you want.

Quote from: samdavo on April 15, 2013, 03:23:51 PM
4. Bound to be others, including "Rel to Reference Point' as Rob S would no doubt use (which I have ignored for years, probably at the expense of my efficiency).   I have almost always used construction lines, when I imagine I could have used "Rel to Ref" on many occasions.  Again, old habits, but I'm not about to resist change for the better.   Especially with my current level of efficiency in 3D :)
In TurboCad, and probably most other CAD programs, you can select an object, move into the appropriate XYZ field, and type a number. The entire object moves.

In DC, only one object can be moved in this manner: The pointmark. Ok, not quite true. You can use the absolute move command, but you have to specify the coordinates for all 3 dimensions!

Using "," (to find a location), Shift F6 (to move to the coordinate fields, and the pointmark you can create a new point to move and click your object to. Let me know if you'd like me to spell out this method.

Quote from: samdavo on April 15, 2013, 03:23:51 PM
PS Suppose the cylinder was a sphere, and you just wanted it to touch the box (or the plane of the box) - then you would presumably opt for option 2 above (?)  on second thoughts, no biggie, as I think (might be wrong) that you have to deduct the length of one radius from the line in either event  - or again, maybe "Rel to Ref" would be useful, even if only for the last half diameter?.
I would find the center of the sphere, and then draw a radius line towards the other object. The end of this line would become the place to use for movement operations (the end that will be 'flush'). Of course, this is unnecessary if your sphere happens to have a projection already pointing towards the other object.

Quote from: samdavo on April 15, 2013, 03:23:51 PM
All these matters obviously become more complex when you have an inclined plane (and an inclined normal to said plane).   eg you want a draw a ball about to bounce on an inclined plane  ...  (or a spherical light on one of those inclined ceilings in down-town Paris, etc )

Yes, the only practicable way to get any of these techniques to work is to shift the work-plane so that your axis of movement matches X,Y, or Z. There may be other tricks depending on the object, but I prefer something that works every time.

Once again, DC really ought to have a "flush" command.

Have fun!
Mark