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.

Quick Plate with multiple holes

Started by samdavo, May 31, 2013, 08:52:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I enclose something I didn't realise was so easy.  It involves drilling and/or oxycutting a stack of holes and/or shapes in a plate.

It follows Minstrel's tip that you draw it all in 2D first, (thanks m8), but varies a little on a couple of points.
But what I like is that there is no need to draw NEW cylinders and "solid subtract" them, because you can draw the cylinders (i.e. planar circles become cylinders in 3D)... at the same time you draw the plate (i.e. a rectangular plane becomes a 20mm thick plate).   Details follow:-

A. if you draw a line 20mm vertical (Y), and

B. also draw a rectangular plate in 2D with several holes in it (this one is about X=290 by Y=200mm - not important)...
and you choose black for those holes ( because it will show as darker later)
then you select everything and group them (including the holes)
then make a plane of that group
then switch to 3D

C. select that group and Ctrl+Shift+X = extrude along the 20 mm line
Now if you click on the top surface of the plate, and/or drag the selection rubberbands around where a shape should be) you'll see outline of the circles/shapes there.

D. Use solid subtract at each of the hole locations - click the circle on the surface, and subtract from the plate.

E. Finally, click the surface, and change it to a lighter colour.  At this point in time, the inside faces of the holes are black - which helps to highlight them (compare shadow).

PS This is very similar to minstrel's cookie cutter youtube , but
1. I add the black lines, subsequently changed to a lighter colour on the flat plate surfaces, and
2. I don't bother to make the deleted bits "thicker" than the 20mm plate. 

In the first attachment, I show (from top left first row) the 20mm line,  the 2D drawing in black lines, and the black rectangle is what happens when you "MP" it ( make plane)
then the green solid is what you get when extruded along the vertical 20mm line,
the green plate with holes has the pieces subtracted (one by one)
and then the surface is changed to red.
 
Finally, if you look closely at the fourth attachment, you'll see the shapes just evident in the surface (since they've been selected collectively in that jpeg).  When you "Solid Subtract" them, you do so one at a time.    If nothing "deletes", then Ctrl+Z, and try again ( cos whatever you did, it wasn't heading in the right direction.)

Nothing fancy - I'm just surprised how easy it is.     At least on this occasion ( maybe I got lucky?)

PS. Incidentally, I have no idea why a black shape extruded along a line gives a green plate?  Probably something to do with lighting.   Sorry to ask basic questions, but what's the best lighting choice for "normal workshop drawings" anyway?

samdavo

#1
Then I pushed my luck, lol, and added two lines (refer the jpeg).   [ Actually there are a few ways to get this problem, but those 2 lines are enough to do it] ...

And all the shading went black for some reason(?).

What I would do is back-back (with Ctrl Z) and then get those colours again.  And hopefully somehow try some other way around the problem.  (edit - or powering on and ignoring it seems to work as well - i.e. colours (usually) seem to come back)  
But does anyone know why it would go black like that ( just adding those lines.?)

THe other strange thing is that it resembles the multiple regen probem in reverse (?)

i.e. with GA ON, (and view restored down, not maximised) you get all black, including the guilty extra lines.

but with GA OFF, (and view restored down as above), you get the proper colours ( on some plates anyway) , but the black lines and planes disappear.

PS (I was wondering it this might be something to do with z - fighting?  But I doubt it because there's no evidence of that - the holes are clean and stable, no hint of a skin across the top etc (?)

samdavo

ok, I find I can "power through it", that black effect - and come out the other side.

And I can't guarantee I can get those black lined holes.
But anyway, I've found how to do a "deck of cards" ( read plates on this occasion) - it all depends where you make handle for the first plate , and where you (accidentally lol) place the centre of the circular array.

I'll get back when I work out exactly what I just did lol.
cheers



samdavo

ok - having selected the object - and rotated it back about 30 degrees (or alternatively set your camera looking up I guess) ...

simply do the circular array forward of that original handle.  Which makes the plates rise as they rotate , i.e. because the squaw on hippopotamus is equal to the sum of the squaws on the other two hides (largest of which is about 850).   (2 cents)

samdavo

#4
IN the event that anyone opens that dcd back a couple of posts -  (and I've deleted the circular array to get back to thread topic) ... you'll note that I have extruded these into the page (small Z line)

instead of "extrude along a line".   And these are much better to demonstrate here.
This, for instance, is the way Minstrel demonstrates it in his youtubes, and much better for presentations. 

However, what I like about the extrude along a line, is that you can "convert" a 2D drawing ( plan above elevation) to a 3D shape very easily , just using shapes (from plan) and short lines (from elevation).
(2 cents)   

PS For some reason I've lost the black lining of the holes - but no biggie.  cheers.

Dr PR

My guess is that in your first post the "black" sides to the holes are just shadows. The light position was behind the object.

In "Options/Options/Light Source" I use one directional light with the "Move with eye" option selected. This makes the light work like the lamp on a miner's helmet if the horizontal and vertical angles are zero - the light will always shine on the side being viewed. Adjusting the angles will throw some details into relief. If you want to see shadows you must have angle offsets. I normally use small horizontal offsets and 20-40 degree vertical offsets.

I set all of the "Options/Options/Light Source" Intensity sliders to 100%. This allows the object materials to control the appearance of the object. However, occasionally it helps to play with the "Ambient" setting to get an effect.

You should also get into the habit of selecting the "Shading Options" Enable color material option. If this is off a 3D solid's color will be very limited, and will always be the same as the wireframe outline (the color shown in the Info Box color tile). If the material is "Steel" and the wireframe color is red the object will shade red. If the option is on the material color will be displayed - "Steel" will appear a bluish-gray.

Also, if Enable color material is checked and you have objects that have the "White" or "Black" material assigned you will get more intense whites and blacks with Phong shading. With Gouraud these will produce shades of gray.

****

The method you use to make the holes is extremely poor practice. You got lucky this time.

You should get in the habit of NEVER having common surfaces between the object to be subtracted from and the object to be subtracted with Solid Subtract. NEVER! DesignCAD often fails to subtract the common surface, leaving a zero thickness plane over the end of a hole. My guess is that this happens because both surfaces are zero thickness, and zero from zero leaves zero - a planar polygon. The object to be subtracted should ALWAYS extend beyond the surfaces of the object to be subtracted from.

With Solid Add you may sometimes get an internal surface if the two objects have a common surface. Internal surfaces will cause  problems with other solid Boolean operations, and objects with internal surfaces will not "print" correctly when converted to STL files for 3D printing. One object should penetrate into the other to be sure to avoid this problem.

Phil
DesignCAD user since 1987

samdavo

#6
Quote from: Dr PR on June 01, 2013, 12:27:15 AM
1. My guess is that in your first post the "black" sides to the holes are just shadows. The light position was behind the object.

2. I use one directional light with the "Move with eye" option selected... = lamp on a miner's helmet ...  I normally use small horizontal offsets and 20-40 degree vertical offsets.

3. ... occasionally it helps to play with the "Ambient" setting to get an effect.

4.  Enable color material option. - "Steel" will appear a bluish-gray.   ... "White" or "Black" material assigned you will get more intense whites and blacks with Phong shading.

****

The method you use to make the holes is extremely poor practice. You got lucky this time.
... object to be subtracted should ALWAYS extend beyond the surfaces of the object to be subtracted from.

(likewise) With Solid Add ... one object should penetrate into the other to be sure to avoid this problem.
Phil
Fantastic Phil, thanks.
Your comments on lighting make sense - great when it's summarised like that.

As for the removal of those holes - I suspected I might have been lucky.   Yep, what I plan to do is to write a macro that selects something, expands/"scales" it in one direction (only) - and that then is ready for subtracting.  Otherwise ... In the cookie-cutter youtube, Minstrel does it with the "enable resizing handles" set, and stretching them marginally normal to the circular surfaces of the cylinders (2 cents) .  Of course, those techniques only apply if the axis of the hole / shape is orthogonal ( which it invariably is in my case so no problem).

I still like the idea of extruding everything including the holes  
edit - just as easy to extrude the plate first, and the bolts second  along a longer line.  Either way ...

it permits another minor trick to (at least) remove all those holes in one fell swoop - suppose you want to remove 5 holes total.  You can move JUST THE PLATE to one side ( with a suitable handle to relocate it again, you are left with just the cylinders representing the holes.  Group them, maybe triple them in the axial direction, both up and down obviously; Solid Define the group; replace the plate, and do the subtraction ( once).  All pretty obvious. 
Cheers
sam

Dr PR

Sam,

It is best to define all of the items to be subtracted as a single solid with Solid Define and then subtract them with Solid Subtract.

If you subtract them one at a time you will quickly flush out a bug. You can do only a limited number of Solid Subtracts before the program crashes. Doing them all at once gets the job done much faster and without the crash.

Also, if you do a bunch of Solid Subtracts you can pretty much bet on getting a lot of bits and pieces on layer 0 (bug), and they will be changed to the "Aluminum" material (bug).

I don't know if having the solid scattered over multiple layers and multiple materials contributes to the crash.

Finally, I have found that there is just a limit to the number of things (holes) that can be subtracted at one time. I don't know the numbers, but you can't put very many holes in a single solid with Solid Subtract. I tried to make a grating with several dozen oval holes in it and before I was half done the program would crash with every attempt to subtract from the solid. Fortunately the grating was symmetrical so I made 1/4 of it then mirrored and mirrored again to get the whole thing.

Phil
DesignCAD user since 1987

samdavo

Thanks Phil,
Your experience is really helpful.
Meanwhile I continue to find DCAD extremely fast and easy for the sort of small A4 drawings I do. - now with an additional 3D shape (roughly as often as not). 
Cheers