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.

Duplicating boltholes - a different way

Started by samdavo, February 25, 2015, 01:16:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Suppose you have a drawing of a plate with 4 holes in it.  (drawn by subtracting cylinders from a solid plate - the normal way).
...  And you need to duplicate them to give 8 holes instead.
Obviously you could subtract 4 more holes the same way you did with the first 4.
Here's another way (the full story):-

A. the original green plate with 4 cylinders
B. after subtracting the cylinders from the plate
C. after stretching two of the holes to one side
D. after cutting the plate in two
E. and mirroring this horizontally
F. and solid adding the two halves together
(2 cents)

Would I normally do it this way?   Who knows, I just thought of it as I was driving home lol.

PS Likewise you can move those holes all over the plate with complete freedom.



samdavo

#1
ok, here's yet another question that I can't answer.

Is it possible to zoom in on one of those boltholes, and halve its diameter?
I'm guessing that "point select" would be involved, but I'm not very experienced with that particular mode.

... other than what Rob S mentioned in replies #226 and 230 here :-
http://forum.designcad.com/index.php?topic=5664.225
but that's mainly about moving a set of points, not scaling the perimeter of holes etc (and we need different scales in x, y and z directions, i.e. 
scale,x = 0.5,  scale,y = 0.5,  scale,z = 1.0)

prl

Quote from: samdavo on February 25, 2015, 02:10:12 AM
Is it possible to zoom in on one of those boltholes, and halve its diameter?

Possible yes.  Has prl done that already? No.

See mtpm.d3m for a beginning point for doing this. http://forum.designcad.com/index.php?topic=5354.msg35814#msg35814

samdavo

#3
prl
wow - works like a dream (with circles anyway). 
Herewith the result , including the first stage of halving the diameter of the circle at one end (the far end in this case),
then the second stage of halving the diameter at the other.

At first I thought I had to lay the plate over so that holes were vertical (i.e. horizontal circles);
but it works just as well with horizontal holes, i.e. vertical circles.

- whatever they are paying you, it's not enough!! :)
cheers
sam


samdavo

#4
One thing I find that is interesting, - that running your macro on a random planar shape ( eg an ellipse) ends up as a circle after the expansion or contraction.

Herewith the result of amending/expanding one end of an elliptical tube,  - factor of 3 from memory - and it becomes a circle.  Something like a trumpet on an exhaust pipe of a hotrod.
(2 cents)
cheers

samdavo

#5
Here's a gearshift "knob". 
There's an H shape that has been extruded vertically, and the bottom end has been tightened into a circle (using the macro above) and the rest is hopefully obvious (solid subtract from a hemisphere).

But in summary, this macro is arguably / possibly a lot easier than Surface Connect in this instance (imo)
cheers

Actually an alternative method that would presumably give a similar but slightly different green H-extrusion would be to vary the scale along the length of the extrusion.   But the beauty of the macro is that it will work on POINT SELECT mode on parts of a larger solid, much more difficult than this example. Nice.

prl

#6
Sam,

I can count on you to explore!  If you remember the "No middle ground" globe.  That routine sucked all the middle sphere points to 0, leaving only the poles.

samdavo


samdavo

#8
Question / observation ...
We have just established that, if you have a plate with some holes,  (eg predominantly in the xy plane, with holes in the z direction) ...
- with point select  mode, and the plate selected
- and you have "super-selected" (with solid blue dots in point-select mode) one circular end of a hole,
you can enlarge or reduce the size of that circle using a macro.

Question.  How hard would it be for DCAD programmers to amend   "Selection Scale"  - i.e. with different scales in different dirns,   eg
scale,x = 2 ,
scale,y = 1 and
scale,z = 1
to work on the same superselected circle?  At the moment, Selection Scale only works on the entire plate - assuming I am doing it right (PS and haven't missed some of the fine print) (??)

PS Just for fun (and off topic to this post) ...herewith what happens if you enlarge the holes using the macro to be larger than the plate perimeter.   One hole tapers from 15x    to   20x;  the other from 20x    to    15x (2 cents).
All similar to the jpeg on reply #3.


samdavo

#9
Possibly more practical would be a slotted hole (see horizontal slotted hole) - dead simple with point select, especially if there is a horizontal line around the circle. (i.e. one of the elements of the circle - which is effectively stretched)

What I'm personally not capable of doing is to then rotate that slotted hole - other than to rotate the entire solid it is housed in (2 cents)

PS You can effectively get rotated slotted holes (various angles) in the same plate as follows :-
A. the "modular block" that contains the slotted hole is duplicated, and then rotated as a unit,
B. then solid joined to the first
C. then the slotted hole slid across the surface using point select, 
and you can even slide the slotted hole off the plate so you have a plug of the same dimensions as the slotted hole - of if you prefer to use slang oxycutting terminology, the "dump" that is left on the floor. (although I had to tidy up one of the planes that joined it to the "mainland" of the rest of the plate). 

PS Clearly you can then tidy up the outline of that plate to be rectangular. (2 cents)

Dr PR

Sam,

I think you have answered this question already, but I wanted to check.

If you select the points around a hole and use the "Scale" function - what happens? Is the entire drawing scaled, just the selected object, or just the selected points?

I can imagine a problem with this last option - what would be the reference for scaling the coordinates of the selected points?

I can't answer for myself right now. Last Monday they sliced me open and chopped out my guts, and I am recuperating at a friend's house. I've been in total computer withdrawal for several days! To make matters worse she has an Apple laptop so I am having to translate everything through "Apple speak!"

Phil
DesignCAD user since 1987

samdavo

#11
Quote from: Dr PR on February 28, 2015, 09:35:49 AM
Sam,
I think you have answered this question already, but I wanted to check.

If you select the points around a hole and use the "Scale" function - what happens? Is the entire drawing scaled, just the selected object, or just the selected points?

I can imagine a problem with this last option - what would be the reference for scaling the coordinates of the selected points?

I can't answer for myself right now. Last Monday they sliced me open and chopped out my guts, and I am recuperating at a friend's house. I've been in total computer withdrawal for several days! To make matters worse she has an Apple laptop so I am having to translate everything through "Apple speak!"

Phil
Phil
Firstly, make sure you get well soon.  Maybe you should resort to that old policy, "With a bucket full of apples, you can have a ton of fun with the doctor's wife."

I find that the following happens with "Selection Scale" in Point Select mode (and you will be aware of most of this) - suppose
1. you are in pointselect mode,
2. you have selected a solid - say a rectangular box (so that the "Selection" becomes a set of small round blue circles - in this case 8 corners of the box) 
3. you then select 4 points on the top face of the box  (I referred to this as "Super-select", and
4. you go to Selection Scale - choose x = 2, y= 1, z = 2  (i.e. aiming to get a hopper) ...

I find you get a paver rather than a hopper,  i.e. it works on the Selection, not the "Superselection".
(of course you can MOVE the four points one by one, by clicking on that point,  clicking on its new location).
...............................................................

HOWEVER,  and here we come back to prl's macro ... and indeed get another insight into how it works - because a rectangle has four points equidistant from the centre,  the macro treats it as a circle  (i.e. that doesn't get distorted when it is enlarged) .   And then asks you for a new radius ( I have chosen one about 80 % bigger) and you get the hopper in one fell swoop. - see the green hopper which was drawn with one run of the macro!

cheers
sam

PS It would be nice if Selection zoom had the option of
Superselection zoom.

And that goes for Selection Rotate, nice if it had the option of
Superselection rotate.

Having said that, I have added a workaround above, - for the plate with a hole or two - where you can scale and rotate the plate (or a copy of the plate) - amend the holes there ( together with its plate) - and then slide the amended holes back to the original plate.

samdavo

#12
Quote from: samdavo on February 28, 2015, 03:00:16 PM
- and then slide the amended holes back to the original plate.
Of course the next step would be to have a symbol (make that a simple drawing) which is like an artist's pallette, except that instead of painting oils, you had :-

holes of various diameters and shapes, (slotted etc)
and tapped holes, and blind and through,
and counterbores, and countersunk,
and  ...

And all you need do is load that pallette into your drawing, attach it to your plate using Ctrl+J Solid Add,  slide off the holes you want onto your plate, and then chop off the pallette. (2 cents)

(edit) PS One way to cut off the pallette as the end of the day is to go to 2D, and use Section Trim  (one of prl's many tricks that works like a dream).   For the orientation of the pallete and plate shown, you might have to set the 2D working plane to XZ first, Q\general\working plane in 2D ,  i.e. that way you will get Top View in 2D, and you can easily trim the green "ear" off.

Dempsey

Phil, I wish you a speedy recovery.

Sam, stop doing that to me  ;D ;D ;D You caused me to play with a "holed" solid creating an unreal solid by moving the whole hole beside the square solid.

Only shading in OpenGL shows what I was hoping for. In GDI and hidden line (with hidden line showing) there are parts missing and/or strange side effects.
Dempsey

samdavo

#14
QuoteC. then the slotted hole slid across the surface using point select, 
and you can even slide the slotted hole off the plate so you have a plug of the same dimensions as the slotted hole - of if you prefer to use slang oxycutting terminology, the "dump" that is left on the floor. (although I had to tidy up one of the planes that joined it to the "mainland" of the rest of the plate). 
Dempsey
yes I have now coloured that footnote in red.
i.e. when it comes to sliding the "dump" off the plate entirely, (which is strictly off thread to the main point I was trying to make - what's new   :) ) there are some cleanup tricks required, like exploding the solid, and trimming the shape of any surfaces of the plate that are accidentally stretched.
cheers

Quote from: Dempsey on February 28, 2015, 04:48:30 PM
... In GDI and hidden line (with hidden line showing) there are parts missing and/or strange side effects.
Maybe we should call these strange "slide effects" ? :)