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.

Can you assemble 3d items by hole centers?

Started by compman2, January 30, 2013, 06:16:56 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

compman2

I have two projects I am working on that require components to be aligned by matching their holes.  I am new to designCAD and 3d and I am having trouble accomplishing this.  I have attached one example below.  It is a hinge with a pin.  I am having trouble lining up the hinge pieces so the hole is perfectly aligned, and also inserting the pin in the hole.  I do know the head of the pin is off center but was having trouble getting the head lined up with the pin body on center as well.  I am sure there is a quick way to do this.

It appears that after the hole is cut through the material that the hole center is no longer available for a handle position, or am I missing something?

Thanks in advance for any help given, I know that it takes time to answer posts like this and I appreciate the help.

I have attached a jpg of the hinge and pin as well as the DC drawing.

MarkX

DC is kind of dumb this way. It doesn't understand the geometry of faces or cuts. Once a face has become a plane, solid, or hole, it doesn't know anything about its center.

This is why I try to keep the original circle around, and why I draw with circles rather than a circle made from lines. DC knows about the center of the circle, but it doesn't understand anything about the center of a cylinder face or the center of a hole is.

The other thing I do (when I remember) is to put a pointmark at the center of a circle (or other shape) before converting it to a plane or using it to extrude. 

If you zoom in on the hole, you'll see that its made of little edges. You can draw guide lines that intersect across the middle of the hole to find the center. When you've found the center, you might want to mark it with a pointmark. You can put the pointmark on a separate layer, and group it with the object. That way you can toggle the visibility of the pointmark as needed.

Once you have a pointmark for the pin and the hinge hole, you can use the move command to position them as you want.

Good luck!
Mark

Bob P

I typically create a hole centerline the thickness (and direction) of the extrusion before I do the plane-subtracts and the extrusion.  If there are multiple holes, I use parallel line for subsequent hole centers. Once the final plane extrusion is done, I make the whole assembly a single solid.

compman2

Could you elaborate on how you create a hole centerline the thickness of the extrusion.  Break it down a bit more for me.  Do you draw a centerpoint mark, then select line and snap to the centerpoint and use the point relative command to position the second point on the line?

I tried marking the hole centers before extruding and then grouping them together with the extruded part once I subtracted the holes.  The issue here is that this mark is on the top surface of the extrusion and I want to stack parts, so I need to be able to snap to the back side of the part.

It sounds like a centerline the thickness of the extrusion is what I need, then you could snap to either end (either side of the part)

MarkX

Quote from: compman2 on January 30, 2013, 10:40:46 AM
Could you elaborate on how you create a hole centerline the thickness of the extrusion.  Break it down a bit more for me.  Do you draw a centerpoint mark, then select line and snap to the centerpoint and use the point relative command to position the second point on the line?

I tried marking the hole centers before extruding and then grouping them together with the extruded part once I subtracted the holes.  The issue here is that this mark is on the top surface of the extrusion and I want to stack parts, so I need to be able to snap to the back side of the part.

It sounds like a centerline the thickness of the extrusion is what I need, then you could snap to either end (either side of the part)

If you are making a hole into a "board", or a pin the length of a hinge, then you can draw a line along any of your existing edges, snap to its end, and then move it to the center of the circle where you expect to extrude.

I've attached your hinge with a center line. Note that it is only down the center of one of your hinges (I hope) since the centers of the two hinges are not perfectly aligned.

HTH
Mark

JJG

#5
Quote from: MarkX on January 30, 2013, 07:53:43 AM
DC is kind of dumb this way. It doesn't understand the geometry of faces or cuts. Once a face has become a plane, solid, or hole, it doesn't know anything about its center.
...
Mark
That's precisely why I started this request :  http://forum.designcad.com/index.php?topic=4532.msg27415#msg27415
and  http://forum.designcad.com/index.php?topic=4533.0  (in connection with)

Dr PR

A quick and reliable way to find the center of a circular hole is to use the "Draw/Circle/Circle (3 point)" function. Just gravity snap the three points to positions around the end of the hole. The result is a true that has a snapable center point.

Holes in solids are not dynamic or changeable as with parametric CAD programs, so they do not have inherent characteristics like centerlines, etc. You have to create these reference lines for yourself.

I normally use ordinary lines on a separate layer to set up the geometry, such as center lines for holes or the intersection of central axes of cylinders, etc. I group and save the most important of these constructions on a "reference" layer, typically layer 1. The more difficult or time consuming it was to create the geometric construction the more important it is to save it for future reference. When they are no longer needed I erase all of these constructions to reduce file size - but I normally do this only after the drawing is finished.

Unlike parametric values, which are lost if the associated object is deleted, these reference lines remain to allow you to recreate the entire thing long after the objects themselves are gone.

Phil
DesignCAD user since 1987

JJG

Yes, Phil,

indeed, on my side too, to find the center of one of the bottom or the lid, I use the methode of the 3-points circle, in order to find then the center through gravity snap, OK, it is the the most secure method, undoubtedly.

But I think, it's just a waste of time, that could be avoided if the axis was represented, or materialized.
Especially when the solid of revolution is not oriented along X, Y or Z, it must be done 2 times (at each end), or else having recourse to the working plans, what is even more complex.
All this job would be avoided, if the axis would be present, and the comfort of working in DesignCAD would be even better.

Why does one find it in other CAD-softwares, otherwise because it is useful and indeed necessary : the axis of revolution of such a solid is still and anyway its main characteristic !

prl

#8
Quote from: JJG on January 30, 2013, 12:25:08 PM
All this job would be avoided, if the axis would be present, and the comfort of working in DesignCAD would be even better.

I agree the problem of grabbing center axis based solids is a pain. I use the embedded line trick.

I don't think DesignCAD will ever have the ability to know where the axis of anything is though. Once DesignCAD makes a solid, it is a dumb solid meaning only a collection of planar regions (faces), nothing more.

For working in 3d what I feel is needed is a center of gravity plane (COGP) snap.  The current 3d mode COG snap is for solids, nice but I never need it.  The COGP snap would when used highlight the individual faces of a solid as one moves around (like in point select mode but one face at a time depending on what you are nearest to) and then set a point at the centroid of the user selected face.  That would handle most revolution/sweep/point symmetrical  based solids like cylinders, tubes, posts, screws, bolts, etc.


JJG

Prl,

100 % agreed with !

But, as you say it, since a DesignCAD's solid is just and only a dumb collection of planar regions (faces), nothing more, it would not cost anymore to add in it a line, which would materialise the axis. Not agreed ?

Because, indded, nothing is more explicit and intuitive than to be abble to see the materialization of the axis of revolution.


prl

Quote from: JJG on January 31, 2013, 09:19:45 AM
But, as you say it, since a DesignCAD's solid is just and only a dumb collection of planar regions (faces), nothing more, it would not cost anymore to add in it a line, which would materialise the axis. Not agreed ?

Agreed, just not sure what type of entity the axis should be.  If it is a type 1 line (which is what I do), then it creates an improper solid.  OK for me typically, but I'm not sure if this will cause problems in general (shading, adding/subtracting etc.).

Dr PR

#11
Lets think this through. See the attached image. Suppose regular shapes like cylinders had a central axis line, and that line remained after the cylinder was subtracted from a solid (A). Since the cylinder it no longer present, what would the line be associated with (if anything)? The remaining solid? If so, how would you get rid of it when you no longer wanted it? Would it show up in rendered images? What if you didn't want it to?

Now let's suppose that we created another cylinder, larger in diameter than the first, parallel to but slightly off center from the first cylinder (B). Now subtract it from the solid. Now the solid will have two lines, one that is the center axis of the hole and one very close by that is not. That is guaranteed to cause problems - which is the real center line and which is not?

OK, so you say the original line should be subtracted from the solid when the second cylinder is subtracted. But what if the second cylinder was not parallel to the first but was actually perpendicular to it (C). Now what do you do when you subtract? Do you remove the part of the first line that was crossed by the second cylinder? That would break the first line into two parts.

If you are happy with that, what would you do if the two cylinders were at about 45 degree angles to each other, but their axes didn't actually cross, and both exited the original solid at about the same place (D). The result will be a solid with two cylindrical holes that exit one face at about the same place. But if you subtract from the first hole axis when the second hole is created you lose the point on the face at the center of the first hole.

****

I have a real objection to what you are proposing. I have drawings with as many as 250,000 cylindrical parts, and some solids that have had hundreds of holes created by subtracting cylinders from them. If these were all created as you are proposing the file size would be much larger, it would take much longer to render, and there would be garbage lines all over the place.

I have a better idea. Take another look at the attached image. I created all of the lines you see as guides for the cylinders - there were essentialy necessary to get the cylinders into the correct positions. It is a trivial task to delete these lines after the cylinders are created, or to move them to a separate layer that can be disabled so they don't apprear in renderings. What you are proposing is totally unnecessary. If you want the cylinder center lines just draw them!

Phil
DesignCAD user since 1987

MarkX

Quote from: prl on January 31, 2013, 04:54:00 AM
For working in 3d what I feel is needed is a center of gravity plane (COGP) snap.  The current 3d mode COG snap is for solids, nice but I never need it.  The COGP snap would when used highlight the individual faces of a solid as one moves around (like in point select mode but one face at a time depending on what you are nearest to) and then set a point at the centroid of the user selected face.  That would handle most revolution/sweep/point symmetrical  based solids like cylinders, tubes, posts, screws, bolts, etc.
That seems like a great idea that fits with the DC way, whatever that is.

Mark

Lar

Quote from: MarkX on January 30, 2013, 07:53:43 AM
DC is kind of dumb this way. It doesn't understand the geometry of faces or cuts. Once a face has become a plane, solid, or hole, it doesn't know anything about its center.

This is not exactly so.

For solids, which can have any shape, you can use the 'center of gravity' snap to find its geometrical center.

For cylinders (which we normally need the center line for) created with the cylinder command, sticky handles 0 is automatically generated at the center of the starting end (the one where you set the first point of the command). The sticky handles normally stay in place, relative to the object, until the user relocates them somehow (sticky handles are activated via 'Options dialog> General tab. You would have to select the object to see the sticky handles).

All primitives generate sticky handles in their logical locations when created (eg, center for circular stuff, corners for cubed stuff), even if 'sticky handles' is not active when the primitive is created (and before the user sets them elsewhere for a particular object). Just activate 'sticky handles' then select the primitive, then you can click on the handle-0 to move it, or start something like the line command and gravity snap at handle-0 to create a guide line.

Lar




prl

Just to expound a little on the "embedded line" trick in case someone isn't familiar with what I'm saying.  Basically I use a macro to  create a cylinder (or whatever) along a line and then the line which is now inside the solid volume is "solid defined" to the cylinder or cone or whatever.  This creates an improper solid (planes, grid, and a line).

When I punch holes or do add/subtract operations, DesignCAD  "eats" the embedded line, so it seems to be OK for what I do.  Never pushed it much so I'm not sure if their are consequences. 

Also it is very easy to cycle the drawing database to remove a line with a solid id so clean-up is easy if needed.