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.

DC 17.2 confusion about sweep and solid subtract

Started by vexed, December 22, 2012, 09:59:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vexed

Continuing my quest to become competent with DC, I'm trying to create an object with a threaded hole through it..... what you would get if you drilled and tapped a hole in something.

What I'm getting is an object that clearly has a spiral through its center, but you can't "see" though the hole.  It's still got a solid center.   I'm sure I'm doing something wrong. 

Here's what I did:

To make my "tap", I first drew a plane object.... a rectangle with a pointed end.

Then, using sweep, I spiraled this through 10 revolutions to make a threaded object, to  which I also did a "solid define".   Not sure if solid define was necessary, but I thought I had read that it was.

I placed this "tap" inside a rectangular block and then subtracted the "tap" from the block.   

The result looks like this:



You can clearly  see that the gold block is still solid.  I don't know why.   Am I not understanding what to expect from sweep and solid subtract?   Is there another step  I need to take to produce a threaded hole?

Expiring minds want to know.....

Jim

MarkX

I have similar results in v22.

The reason is, I think, that the way you are making the thread ends up creating an overlapping grid throughout the object. The way that you make threads in the tutorials is to either make a single tooth, sweep it, and add it to a solid cylinder or to make a single inward tooth and sweep it around a cylinder to form a groove after subtracting.

HTH
Mark

vexed

Mark, thanks for responding.  It's interesting that V22 does the same thing.

Are you saying that I should make the point of my plane point inward when I sweep it?  I can see how doing that would create the threaded hole..... or rather create a tube with a "threaded" inner wall.

Jim

MarkX

Quote from: vexed on December 22, 2012, 02:32:00 PM
Mark, thanks for responding.  It's interesting that V22 does the same thing.

Are you saying that I should make the point of my plane point inward when I sweep it?  I can see how doing that would create the threaded hole..... or rather create a tube with a "threaded" inner wall.

Jim
Hi Jim,

Not quite. The problem is that you are using a "house" shape as your profile. When you sweep it, DC creates inner walls inside the "bolt" that it then doesn't know how to use in subtraction. What you want to do is just sweep the little triangle "tooth" at the top of your current profile. Either sweep it around a cylinder and then add it to the cylinder, or sweep it with the tooth side inwards around a cylinder and subtract it to make a thread in the cylinder.

Here's one way to do it:

  http://www.jqoc.com/soft/DesignCAD-Tutorial/20071121/503.html

There's a whole discussion about this technique starting at this point in a forum thread:

  http://forum.designcad.com/index.php?topic=4562.msg27705#msg27705

HTH!
Mark

Dr PR

Jim,

Sweeping in a helical pattern is tricky. To get the solid screw that you are trying to make the "Vertical Offset" must be exactly correct. If the offset is a bit too large you will actually get a helical solid - with gaps between the spiral loops. If you then subtract this from another solid you create a helical hole that will not be open, something like what you show in the picture.

If the offset is too small you get a bunch of internal "surfaces" like Mark described - think of these as fractures in the structure. These can also confuse the "Solid Subtract" operation.

****

There is a simple trick to get rid of internal surfaces. Off to the side create a simple solid like a cylinder - be sure it does not overlap the thread solid. Now use "Solid Subtract" to subtract the cylinder from the thread. Since the two solids do not overlap nothing will be subtracted. But this procedure causes DesignCAD to examine the thread solid, and in the process it will clean up all of the unnecessary internal surfaces. This cleanup feature was added in the later versions of the program, V19 or V20. Earlier versions do not have it.

You could also make a cylinder that fits inside the helical screw solid and extends beyond both ends. Then use "Solid Add" to add the cylinder to the threads. This will also cause the program to clean up unnecessary internal surfaces.

CAUTION: DesignCAD has a bug that causes the solid Boolean operations to scatter some facets of complex solids - like the screw thread - to other layers - usually layer zero. Furthermore, these wayward facets will be assigned a different material - typically "Aluminum." The wayward facets are still part of the solid.

This doesn't happen every time the solid Boolean operations are used, but it does occasionally happen. When it happens, if the layer containing the wayward facets is locked or invisible you will not be able to select the resulting solid. If you shade the solid it will have missing facets or holes that look odd. To solve this problem open the Layers dialog and click "Unlock All." Then select the solid, open the Info Box, and reassign the layer that you want the solid to be on. Also reassign the desired material.

Phil
DesignCAD user since 1987

vexed

Mark, Phil,

Thanks for the pointers and tips.   I read through the procedure for making the SAE bolt and read the other forum thread about 3D drawing.   I followed your procedure and made a crude tap by combining a cylinder and a thread that I swept through 10 revolutions.  I can now "see" through the threaded hole:



While I understand the explanation about why what I was initially trying to do didn't work, the fact that it didn't work is still counter intuitive.  Inverting that statement, it is completely intuitive that I should be able to make a thread tap using the sweep command and then employ that tap to thread a hole..... and not have to take any extra measures to make it work.   

Back when I wrote assembly language code, there was the DWIM mnemonic.  It stood for "Do What I Mean".  Well, this is an example of when I would be tempted to invoke the DWIM instruction.

In any event, I don't want to sound ungrateful for the help.  I'm not.  It's just taking me longer to learn DC-speak than I would prefer.

Jim

MarkX

Hi Jim,

If you take your original house profile and make your threaded bolt, you will notice that the wire mesh goes all the way down to the core. DC doesn't know how to make two faces touching each other disappear, so they're still in there. When it goes to do the subtract, it apparently sees these touching faces as creating hollows, so they don't subtract away from the original material.

Phil suggested that DC would clean these up if you subtracted a cylinder set off a ways, but it didn't work on my quick try in v22.

Good luck,
Mark


vexed

Hi Mark,

QuoteIf you take your original house profile and make your threaded bolt, you will notice that the wire mesh goes all the way down to the core. DC doesn't know how to make two faces touching each other disappear, so they're still in there. When it goes to do the subtract, it apparently sees these touching faces as creating hollows, so they don't subtract away from the original material.

Ding, ding, ding...... the light bulb just turned on.  This makes sense.


QuotePhil suggested that DC would clean these up if you subtracted a cylinder set off a ways, but it didn't work on my quick try in v22.

Strangely enough, it did almost, sort of, kind of work in 17.2.  I can "see" through the resulting tapped hole made by a tap created in this way, but there are a couple of artifacts in the hole.  So, it's not a technique I can use with 17.2, even though it was an interesting experiment.

Jim

Dr PR

Jim,

Believe me I understand your consternation. But what does it mean when a user creates two solids side by side with coplanar surfaces? They really don't overlap, so if you subtract one from the other there should be no change to the "subtractee."

This is a problem you can create with "Sweep." If your thread width matches the thread pitch, what you are really creating is a tightly wound helical solid with coplanar faces between turns - something like a spring that is compressed so each turn touches the next.

When the program subtracts the helix from the outer solid it process each surface one at a time and generates the resulting new surface. It works its way around the helix creating new surfaces everywhere the surface of the helix resides inside the outer solid - so you get two new coplanar spiral surfaces between the turns. It isn't perfect.

However, DesignCAD allows you to create all sorts of impossible things that don't exist in the real world - like zero thickness planes. I guess you could call this one of the program's "features." Actually, you couldn't work with planes or surfaces if zero thickness objects weren't allowed.

So, if you were programming the solid subtract function, how would you subtract the compressed helix from the surrounding solid? Since zero thickness planes are allowed what is wrong with allowing the zero thickness surfaces between adjacent turns of the helix to remain after the subtract? Maybe that is what the user wants.

How is the program supposed to know "what you mean?" This is one of the reasons other posts recommend creating the spiral thread and adding it to a central cylinder - there isn't any ambiguity about "what you mean."

This has been a problem ever since 3D was added to DesignCAD back in the early 90s. I found it amusing that the internal surface clean-up was added in the last few years to rectify the problem. I had been doing this clean up manually for years by exploding solids, deleting the internal surfaces, and then redefining the result to be a solid. I am very happy that it now does this for me automatically - most of the time.

Phil
DesignCAD user since 1987

wisoak

Vexed,

To take your experiment another step you can use the tape & die you just made to cut threads on a pipe. I use this in some of my illustrations for parts & service manuals.

For the attached picture, I pointed a directional light up the hollow cylinder to cast some light on the inside surface.
V24.0

vexed

Mark and Phil,

I  do pretty much "get it" about how sweep works now.  In any event, I've fully embraced the procedure to add a solid cylinder within the "threads" to make a tap.

However, I've just stumbled over a new oddity regarding swept solids and solid subtract.  I'd be grateful if you can figure out what I did that DC didn't like.

Overview:

I want to take a common 3/8-24x3/4 bolt and rework it.  The rework is simple.  I can do it in my shop without a drawing.  However, as an academic exercise, I decided to do a 3D drawing of the modification.   All of the alterations to the poor defenseless bolt involve creating holes in it.

My sequence of steps was like this:

1. Draw a hex head bolt

2. Tap the head 1/4-28 to a depth of about .3

3. Drill an .062 thru hole the length of the bolt

4. Drill a .200 hole to a depth of .5 in the threaded end

Very simple.

When I finished step 3, you could "see" all the way through the bolt.  But, after step 4, you can NOT "see" through the bolt.  What did I do wrong?

Here is the whole thing in pictures:







Looking into the .200 hole, you can see that the hole has been closed off.  Drilling chips, perhaps?  Maybe a quick shot of compressed air will clear the hole.

OK, more seriously, what happened here?

As always, thanks for  the help.

Jim

MarkX

This is why its helpful to include your actual drawing.

Without the drawing, I can't confirm that your 0.062 hole goes all the way through. I do notice that in step 3 it appears that your internal taps have disappeared. Maybe something already happened?

Also, when you say you "drilled" out the holes, what technique are you using? Subtraction? I would want to try that for myself to confirm. How are you making the subtracted cylinders/holes?

Good luck!
Mark

Dr PR

Jim,

It looks as if both the 0.062 hole bottom and the 0.2 hole bottom are both closed off. It is hard to see what happened just from the images, but here is my guess.

As Mark said, the method you used to make the "drill" solids that were subtracted to leave the holes may have something to do with it.

If you create the solid by rotating a "J" shaped line 360 degrees you will get a "valid" solid that should work OK with "Solid Subtract." As the line sweeps around the axis it creates a surface all the way around the solid. When this solid is subtracted from another solid you will get a result with a suitable hole.

If you rotate a "U" shaped line 360 degrees you will get a "bogus" solid - each surface will exist twice. This is because each side of the "U" is swept 360 degrees, creating two surfaces. When it is subtracted only one of the surfaces will be subtracted from the other solid, leaving the second surface within the resulting solid. This is guaranteed to cause trouble!

In your example the second surface will block the hole.

It is always a better idea to build up a cylindrical solid with a pointed end by first creating a cylinder (Cylinder tool) and then adding a conical solid (Cone tool) to the end with "Solid Add" (be sure to use the same number of facets around the cylinder and cone). You will always get a true solid with no internal surfaces this way.

Phil
DesignCAD user since 1987

vexed

QuoteThis is why its helpful to include your actual drawing.

Point taken, Mark, I've included the drawing with this posting.  The modified bolt is on layer 3.  Layer 6 contains some intermediate solids that I used in making the bolt.

Edit:  For reasons I don't understand, my drawing is 7MB, which exceeds the allowable size of 4MB and won't upload. I'll see what I can do to get the file size down below the limit and make another posting.

QuoteWithout the drawing, I can't confirm that your 0.062 hole goes all the way through. I do notice that in step 3 it appears that your internal taps have disappeared. Maybe something already happened?

Also, when you say you "drilled" out the holes, what technique are you using? Subtraction? I would want to try that for myself to confirm. How are you making the subtracted cylinders/holes?

Prior to enlarging the hole in the end of the bolt to .200, the .062 hole did go all the way through.  I made it by creating a cylinder that was longer than the overall bolt length and subtracting it from the bolt. 

The internal threads are present.  It is just the POV that makes them hard to see.
Quote
It looks as if both the 0.062 hole bottom and the 0.2 hole bottom are both closed off.

That's true Phil.  The closing of the hole happened when I subtracted the solid I used to make the .200 x .5 opening.

QuoteIf you create the solid by rotating a "J" shaped line 360 degrees you will get a "valid" solid that should work OK with "Solid Subtract." As the line sweeps around the axis it creates a surface all the way around the solid. When this solid is subtracted from another solid you will get a result with a suitable hole.

If you rotate a "U" shaped line 360 degrees you will get a "bogus" solid - each surface will exist twice. This is because each side of the "U" is swept 360 degrees, creating two surfaces. When it is subtracted only one of the surfaces will be subtracted from the other solid, leaving the second surface within the resulting solid. This is guaranteed to cause trouble!

Not enough coffee this morning, apparently.  I'm not following you.

QuoteIt is always a better idea to build up a cylindrical solid with a pointed end by first creating a cylinder (Cylinder tool) and then adding a conical solid (Cone tool) to the end with "Solid Add" (be sure to use the same number of facets around the cylinder and cone). You will always get a true solid with no internal surfaces this way.

Hmmmmm, well this is different from how I formed the solid for the .200 x .5 opening.   I made a suitably large solid cylinder and then subtracted material from one end to form the pointed end.    Assuming my technique for forming the pointed end was proper, shouldn't this have worked just as well as adding a pointed end?

Anyway, the drawing is attached.  If you can figure out what I've done wrong, I'll be very grateful.   I'm sure I can "fix" my drawing by changing the order of the steps:  Make .200  x .5 opening first, then drilling the .062 hole.  But it seems to me that the order of the steps shouldn't have mattered..... like they would not matter if I were forming this modified bolt with my physical drill press.

As always, thanks for the help and the suggestions.

Jim

MarkX

Quote from: vexed on January 06, 2013, 05:40:03 AM
QuoteThis is why its helpful to include your actual drawing.

Point taken, Mark, I've included the drawing with this posting.  The modified bolt is on layer 3.  Layer 6 contains some intermediate solids that I used in making the bolt.

Edit:  For reasons I don't understand, my drawing is 7MB, which exceeds the allowable size of 4MB and won't upload. I'll see what I can do to get the file size down below the limit and make another posting.

You know, a simple bolt made the DC way may have more facets than a model of the Eiffel tower.

Have you tried compressing the file (zip) and loading it up?

Mark