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.

Fill Holes in Solid

Started by ABiomedME, July 18, 2016, 08:29:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ABiomedME

Does anyone know if there is a way in Design CAD to fill holes in a solid?  I created some holes in a solid and a couple of them need to be moved.  Is there a way to fill a hole so I can create a new hole at a different location without starting over and re-creating the entire object?
Ernie

DrollTroll

Hi Ernie,

Unfortunately, no, there's no easy way to do this short of re-creating the object -- at least, not if you've saved the drawing in its current state.

If I'm about to do a complex operation that may or may not be correct, I save a version with the solid intact, and maybe with the solids-to-be-subtracted in their initial placement, before doing the Solid Subtract. This gives me something to go back to if I didn't get it quite right.

If you haven't saved the drawing yet, you should be able to use Undo to get back to the pre-subtraction stage.
25 years with DesignCAD

Lar

method a:
Make a copy of the solid off to the side somewhere for safety, then Solid Explode the original so you can edit each component surface individually. Select all the hole shafts you don't want and delete them. Select one of the surface with hole openings and in point select mode highlight all the points of the holes you don't want, press the space bar, type deletepoints and press enter. Do the same for the other surface(s) with hole openings. Select all the remaining surface components and Solid Define. <<note that the surfaces with the hole openings may have a few extra points than how many you can visually count. If you are interested in fixing this let me know and I'll explain>> If everything works out ok then you can delete the duplicate.

method b (Pros: will not leave extra points like above. Cons: only works for solids with a flat front and back, may be as much work as redoing the original):
Draw a Plane around (and bigger than) all the holes you don't want, avoiding the holes you want to keep. Extrude through (and much longer than) the original solid. Move the 2nd solid so its front and back are not touching the front and back of the original. Draw some lines to mark the location of the front and back of the original. Make the original a bit longer front to back (but still shorter than the 2nd solid. Solid Add the 2.  This will close up the holes but leave a protrusion sticking out the front and back. Using the lines that marked the front and back of the original, Slice away the front and back of the new solid. This will leave a clean front and back.

Lar

Dr PR

Point Select mode allows you to reshape existing objects. When working in Point Select mode (CRTL 1 toggles it on and off) you can see all of the points in a selected object. When you move the cursor over a point it changes to a cross hair target cursor.

If you then press CTRL+SHIFT the cursor changes to an arrow with a "-" in it. If you press the left mouse button the point will be deleted. It is not necessary to press the Spacebar and type deletepoints.

You can also add points to an object. When the arrow cursor passes over a line or edge a "+" appear inside the arrow. Left clicking will then add a new point to the object. This new point will follow the cursor until you left click again, and then the new point will be placed.

****

Another way to delete holes is to explode the solid as Lar suggested, using "Solid Explode." Then in Point Select mode select a surface that has a hole in it. This will cause all of the points in the surface to appear.

Now start the" Plane" function (P) and draw a new plane around the outside of the surface. Finish it by pressing Enter. Now delete the original perforated plane. Repeat this for all surfaces that need to be modified. Also, select and delete all inner surfaces around the hole. When all elements of the hole have been deleted, select all of the parts of the solid and use "Solid Define" to reassemble them into a solid.

It is often quicker to just draw a new plane than trying to delete a bunch of points in an existing plane.

Phil
DesignCAD user since 1987

Lar

Quote from: Dr PR on July 19, 2016, 12:04:14 PM
It is not necessary to press the Spacebar and type deletepoints.
Using Ctrl+Shift+mouse to delete points can only delete them one at a time. With deletepoints you can highlight many points at once (along with Shift+drag to add more points) and delete them all at once. I find ctrl+shift+mouse too tedious to delete one point, imagine deleting what can be hundreds of points.

I myself have deletepoints in a macro on a custom button so I actually don't have to press the spacebar and type, I just highlight the points and click the button.

Deleting the unwanted points this way is much less work than redrawing the surface with the needed holes, unless it's a few rectangular holes or something similar. Round holes have tons of points.

Lar

Dr PR

Lar,

Thanks. It would be a much faster and tedious way to delete a lot of points.

Phil
DesignCAD user since 1987

DrollTroll

If your holes go through flat planes (i.e. front and back flat faces, or top and bottom flat faces), AND you're not using the Solid Surfaces option, you can explode the solid, delete the planes with holes, then create new planes by gravity-snapping about the open perimeters. The select all the pieces and use Solid/Solid Define to create a new solid.
25 years with DesignCAD

ABiomedME

Thanks guys for all the suggestions.  You have given me some options to try.  Unfortunately, Droll, I didn't save a version before doing the solid subtract of the holes.  Later I got smart and did what you suggest for some other solid subtract operations.  I'm sure you've heard the expression "too soon we get old and too late we get smart."  That's me.
Ernie

samdavo

AB, further to Phil's post (#3), yep you can reshape a plate, eg by moving the holes around (again assuming flat and parallel faces front and back.  Try here, which plays around with the topic, filling in a rainy day :)   

In summary,  if you have a plate with a hole is in the wrong place, then in Point Select mode, you can slide the hole around on the surface to the correct location, and no need to delete the incorrect one (2 cents).
Cheers

http://forum.designcad.com/index.php?topic=6117.0#new

Dr PR

Sam,

Thanks. That's a good point. It is sort of a semi-parametric way of making changes.

However, I must add the caution that if you move points around in Point Select mode YOU MUST BE VERY CAREFUL THAT YOU DO NOT MOVE POINTS OUT OF PLANE!

All points in a plane MUST be in the same geometric plane or you will have problems - especially if you are planning to do 3D printing or machining from the files. However, DesignCAD will let you move points out of the geometric plane without giving you any warning.

So, if you are going to move hole points as Sam suggests, BE VERY CAREFUL!!!!

It is a good idea to set a user working plane congruent with the surface of the solid before moving the hole points.

If the hole passes through non-parallel surfaces of a solid, moving the hole can be VERY tricky. Think it through carefully and move the points in each plane separately in order to keep all points in their appropriate geometrical planes.

Phil
DesignCAD user since 1987

samdavo

#10
Thanks Phil,  So to be more specific, I add a few screen snaps.
Stage 1 is to draw a solid (box) plate ( eg 100x200x10 mm) - also a cylinder (eg 16 diam) which extends both higher and lower than the plate.

Stage 2 is subtract the cylinder from the plate , which gives the hole.  Now for sake of argument, suppose you wanted that hole central in the plate and it is 25mm to one side - then you can slide it across as follows :-

Stage 3 is
a) to draw the line from the centre of the hole to where it should be (there are other ways, but this is easiest imo)
b) go to Point Select Mode, select the plate (incl the hole) with left-click
c) use Shift-left click to add the line (i.e. to the selected entities) - you should now have a stack of dots which have black centres, (which are all the points of the sectected entities)
d) drag the selection box around the dots that define the hole AND one end of the line that signifies the shift
e) move the cursor to the end of the line - it will change to a cross
f) left click - which will lock the cursor to that point, and
g) drag the cursor to the other end of the line.   

Stage 4. The hole should be moved to the centre of the plate. (2 cents) 

ABiomedME

Hi Sam,

Thanks for the suggestion about using Point Select Mode to move the holes.  I tried your example on my part and I couldn't get it to work the way you describe.  I did get the hole selected and was able to move it, but I have the problem Phil described, of the hole moving out of plane.  I can't get it to move to the desired plane and location.  Does the technique you describe force the hole to move "in plane?' 

I have the out of plane problem when I make a tool to solid subtract, and spend a lot of time getting the tool properly positioned in 3 dimensions.  What techniques do you use to move an object to the desired location in 3 dimensions?

Thanks for your help!

Ernie

Dr PR

Ernie,

I use a lot of temporary reference lines (not the same as DesignCAD "construction lines").

For example, to move the points of a hole I would select one point on the hole and draw a line from there to the place where I want to move that point.

1. First I start the "line" command (V). Then I set the first point of the line on the desired point on the hole by gravity snapping (right mouse button) to the point on the hole. Then I use the "Point Relative" function to se the second point of the line at the position I want to move the point on the hole - then press "Enter" to end the Line function.

2. Then, working in Point Select mode (CTRL 1 toggles this mode on/off) I select the solid with the hole in it. All of the points in the object will appear.

3. Next I drag a selection rectangle around the points of the hole by positioning the cursor to one side of the hole, left clicking and then dragging the selection area to enclose the points of the hole. Releasing the left mouse button then causes the points of the hole to be selected - the little squares will become solid black.

4. Then I move the cursor over the point on the hole and click the right mouse button - this gravity snaps the cursor to the point and  selects that point as the handle for moving all of the selected points.

5. Now I drag the point to the opposite end of the reference line and gravity snap again to move the selected points to the new position.

6. Now I delete the reference line.

You can use this method to move any point or group of points precisely to a new position.

****

Note: You can do away with the reference line by skipping step 1 and just use "Point Relative" in step 5. This works if the move is simple, but it doesn't allow you to check the geometry of the move before actually modifying the solid. However, in many cases I need to do a more complex geometric construction to determine the exact position to move the point to. In this case I first draw the necessary reference lines as in step 1.

****

Sometimes the move is complex because the surface with the hole in it is inclined at an unknown angle to the three axes. You can spend time making a complex geometric construction to determine where the move should be made

OR

you can redefine the working plane to be the surface pf the solid with the hole in it by using "View/Working Plane/Set Working Plane." After this the move will be much easier. Just don't forget to use "View/Working Plane/Reset Working Plane" after you are finished to restore the normal up/down left/right front/back for the drawing.

Phil
DesignCAD user since 1987

samdavo

#13
Hi AB,
(Oops - I note that Phil has posted in the meantime.   He says the same similar stuff, only better :)  )
Point Select mode has a multi-stage selection process,
1. firstly you select the object or objects that contain points to be move AND/OR points to act as the handle position for the move before and after, (I select these in my steps b and c), (PS I suggest an alternative method to my step c) below); and
2. secondly you select some of these points that you want to change (they become blue dots rather than small black dots with a blue margin).   

ok the movement of these chosen point will be from one end of the movement line to the other - provided you choose these carefully.  And sure (as Phil says), you have to make sure that this line is parallel to the plane you want. 

Here's a possibly easier method.
Stage 1 - no change
Stage 2 - no change,

Stage 3, a) b) and c)  - delete, and use the following instead.
a') you want to move the hole 25mm horizontally right?  I mean left, lol.  Then draw a line anywhere 25mm long horizontal and in the correct direction.
b') Turn Point Select off (Ctrl+1 toggles it on and off), select the plate AND this line in one go (or you can still use Shift+click to add increments to a selection, i..e select the first, then the other)  - now make these a group, using  Tolls\Groups\Group Define - or the Main Toobox if you prefer.
c') go to point select mode, (Ctrl+1 again), select the group

Stage 3 d) e) f) and g) are unchanged
so too Stage 4.

You can read more about point select mode under "Help" - or on this forum (where I have to admit I learnt most of what I now know).
cheers


PS You would have to explode the group - eg select, then use Tools \Groups\Group Explode - in order to delete the construction line ( 2 cents) 

Dr PR

One thing you want to be very careful about when moving points with Point Select, especially when you move a point to the position of another point - you still have two points, but they are in the same position.

If you draw a simple two point line and then move one end point to the position of the other, it looks like the line disappears, but it doesn't! It just has zero length with both end points in the same position. You have created an invisible object.

If you know this invisible object is there you can gravity snap to it to select it, and then delete it. But if you don't know it is there garbage will accumulate in your drawing.

The danger is that you may be moving points in a reference line while moving other points, such as the points in the hole. Then you have extraneous points at the same position of valid points. This makes the extra garbage hard to find and delete. In some cases when you try to select something else by gravity snap or dragging you will instead select the zero length line. This can result in command failure and user confusion.

When I do use a reference line and select a point on it along with other points in other objects, I am careful not to move the selected point on the line to the other end point. In fact, I rarely create a two-point reference line - I put an extra third point off to the side out of the way. Then after moving all of the points I use this extra end of the reference line to select the line and then delete it. This avoids the problem of creating zero length lines.

Phil
DesignCAD user since 1987