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.

Aligning a 3D plate stack (Xand Z), and stretching (Y)

Started by samdavo, April 13, 2013, 10:04:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

#45
So - and I think the penny dropped
(hope I haven't made too many mistakes in these claims - go to the italics for what was confusing me - if you are interested of course)

1.  If I make a block as you say, - say I add a single solid pyramid  let's call this "original pyramid"
- at this stage selection filter says there are planes and grid surfaces, all good

2. Then solid define (optional) including naming said solid "pyramid1" (seriously optional) and then block define as "pyramid2" =block, and,  (essential to the point),  using "RETAIN" only.
- at this stage, I think selection filter STILL says there are planes and grid surfaces, and no mention of blocks
HOWEVER, as you both say, Block insert lets you add a block.
Let's call this "solid-in-infobox-which-is-also-a-block-in-memory", =  "PRIMARY pyramid" - Please correct me if this definition is incorrect

3.  then use block insert to add another pyramid.
- finally selection filter says there is a block there somewhere.
- also Infobox identified the second one as a block ( the first is still a solid).  (SECONDARY pyramid)

4. Heck you can even delete both of them at this stage (leaving blank screen), i.e.
and still insert a block (as you say, "retained" in memory .

5. Once there, (i.e. during one set of trial deletes and bring back etc)  I was able to bring them back (clicking Cntl+Y twice),  and again one was infoboxed as a block, and one as a solid. (not sure I could repeat the experiment, and a bit pushed for time to really check it)
   
PS What was confusing me a bit was that ...
after stage 1, brick 1 shows up as a Solid. (Infobox), 
and indeed, when you go to selection filter, there were no blocks showing
although there WAS a block in memory.
I'm sure there's a good reason for this (in fact Minstrel seems to be adamant on it - so I must watch his Cuckoo's Nest video again).
But it does require you to remember that you have saved a block, rather than find it anywhere on the drawing (2 cents).


UNTIL you also insert a block ( and that's probably another of Minstrel's points)
He goes on to have primary, secondary and tertiary (nested) versions.

Q1. I have to check if you change just the solid, does the secondary and tertiary change? - as I say, must watch that video again. 
Q2. And next question, is the intent that you leave all three versions in a drawing (?)  for easy changing of block?
or was that just for the purpose of the video to illustrate principles and understanding?
cheers
sorry done I na hurry E&OE.

samdavo

#46
Quote from: minstrel on April 16, 2013, 05:13:25 AM
... go with "Retain" when composing your design into blocks.  If you had done that all the original geometry would still be contained within the drawing and any missing blocks could then have been easily re-built.

......
***attached a redo of your file showing better how I arrange things....you are doing very nicely especially with the layers!  And I have no idea why 'purge unused blocks' failed when you used it...it's a mystery but again highlights the importance of 'retaining' all original geometry.
Minstrel
Firstly an aside, I finally realise what you meant by saying "store the original gemetry somewhere" you were referring to putting it on a hidden layer (doh).  I'll keep that up my sleeve (but I don't currently turn off layers).
BUT...

You also said (start of reply #36) that "after you explode and modify any block, simply re-select it and re-save, overwriting the original - or giving a new name etc"
(That statement scores a LIKE from me !!!

In summary,
a) I like this advice best, and therefore don't see the need to keep the original gemetry (except in exceptional circumstances not immediately obvious to me). If someone can tell me what's wrong with the "LIKE" statement, then I might be persuaded to look at "Retain" again...

b) I still think that the second method (save as "Convert to Block") is better.

PS But if you check, I'm sure you will find that "purge unused blocks" is pretty lethal if you only used "Retain" instead of "Convert".

PS
Also, FWIW,  I can now answer a lot of my own questions.
If Block was saved with "Retain", then
Change the original gemetry, you don't change any copies of the block, nor the block in memory  (pretty obvious I guess).    I just realise also ... The geometry (called a solid - which was used to make the block) is dangerous if you assume it remains unchaged as being the same as the block .  How can you tell it hasn't changed? - unless you're a good housekeeper -   ..
and I'm lousy there.


If saved as "Convert to Block" then change the geometry ( after explode) you change all copies of block.

There is a risk that if you use "purge all unused blocks", you might delete the block  with"Retain" -  but not with "Convert".

The whole idea of a block (if you don't mind me saying so - talk about a 2minute expert lol, but I think yuo'll agree, and I'm thinking aloud and happy to be corrected) is to have a copy in the drawing.  Until you do that , it is prone to being lost with "purge unused blocks".   

So my question becomes - rather than "retain then insert"  - and you HAVE to do both logically - why not just "convert"?

And how do you remember there's even a block on the drawing (if you used "Retain"), unless you copied/inserted the block somewhere ( negating the benefit of the Retain (imo)? or unless you check "block insert" and see what's there - PS you won't find it on selection filter (unless you INSERTED a block).

Is any of this a gamechanger?  heck no !! - the use of blocks sounds brilliant, and I plan to use them heaps.
Thanks again.

minstrel

#47
Nice to see the lights blinking ;)

First things first.

Quote from: samdavo on April 16, 2013, 08:49:01 PM
The whole idea of a block...is to have a copy in the drawing.

Um...not exactly, there's more.  Block usage drastically reduces file size (especially with multiple instances of like components), enhances redraw/refresh time, helps organize and maintain/modify components globally and best of all (I would go with using them for this one reason alone, namely:)  they faithfully assure that all 'control handles' remain in place.  I'm sure there are more advantages to their usage...others can feel free to add to the praise list.


Quote from: samdavo on April 16, 2013, 08:49:01 PM
So my question becomes - rather than "retain then insert"  - and you HAVE to do both logically - why not just "convert"?

Of course, you can go with "convert" if you prefer.  Yet there are other factors to consider before you can begin to appreciate the benefits of  using "retain".

You already know that a 'unused block/purge' event can permanently erase geometry.  Mistakes do happen and had you deleted the newly converted block with no other copies anywhere on screen or in hidden layers and then executed the 'purge' event...will, good bye Charlie...you would now need to start from scratch.

Let try this one and see if it fits.  You need 3 sets of blocks, each slightly different - either in shape, size or color.  If you proceed with using "convert" to block on the set 1 all your original geometry is gone.  You would then need to 'explode' that block (set 1), make modifications then block define it as set 2...and so on.
 
Now, you took these 3 sets and made 30 copies (of each set) in the drawling, in fact, you have added more components to each set and then 'nested' them.  Half way through the project you discover set 3 needed radical changes.  So you simply exploded the nested block made the changes and re-saved by overwriting the definition...oops...what's up with this?  The save failed, the blocks are gone (all of them since it's global) and at this point you become very frustrated and cry out "Why didn't I just listen to Minstrel? - Retain, retain, retain..."

That, of course, is an extreme example, but stranger things do happen when dancing within the realm of DCAD!  Truth is I really don't use 'retain' all the time either, especially when simply testing things out.  So the choice, of course, is yours.
"A word to the wise is sufficient".



Quote from: samdavo on April 16, 2013, 08:49:01 PM
[And how do you remember there's even a block on the drawing (if you used "Retain"), unless you copied/inserted the block somewhere ( negating the benefit of the Retain (imo)? or unless you check "block insert" and see what's there - PS you won't find it on selection filter (unless you INSERTED a block).

The approach here is to be sure you 'block insert' immediately after the 'block define' ....that would be the most natural work-flow to adhere to.   And good housekeeping is imperative when blocking, nested or otherwise.  So pickup a dust rag and start helping the 'little lady' around the house  - practice makes perfect!

Minstrel


edit - ps - be sure to study DrollTroll's 'retain' definition.  When you go with 'retain' what you see on the screen is NOT a block...therefore a 'purge' event will NOT affect/delete it.

samdavo

#48
Well Minstrel  (midnight and just back from a dinner out)...
You say to each his own - I will agree on that - and disagree on the retain option if that is ok.

HAVING SAID THAT ...
I will make this compromise deal with you...
You say you should keep original geometry on a hidden layer ?
Here's an example where I reckon you are 100% right ( and I hadn't worked out how to do it till I walked home from the station tonight lol)...

Suppose I draw a bolt by selecting the volume common to a swept shape and a hexagonally prismatic one, then , (I think I am right), 

Consider an M20x75 precision bolt, with threads at 2.5mm pitch, a 17.5mm nom minor diameter,  and a hex head with 30mm across the flats, 75mm long shank, of which 50mm is threaded ...

if you select "Solids Intersect" you have the result you want,  eg the volume common to a 20mm diam cylinder with a bulbous head,  and a hex prism 30mm across the flats.

But (please correct me if I'm wrong), once you do that, i.e. chose "Solids Intersect", you get the shape of the bolt all right, but you lose the "original geometry".   NOW, THAT is a case where I would love to have the original geometry stored somewhere, i.e. in case I wanted to change that to an M24 x100 bolt, or an M30x250 bolt, etc etc;   And , as you say, a hidden layer is the obvious place once you think about it.  Thanks for the tip,  even if I am using it in a different direction to where you intended it to go.

In fact, if you really want to know, I am aiming to have a spreadsheet -  eg I guess I have to use Excel (groan), although I know I could do it much faster with Lotus 123 ;  which exported all these coordinates for a bolt based on a few formulae.

and exported them to a csv file - which was then imported into designCAD as an XYZ file, - and presto you had your bolt ...  (ok , after you swept one shape, and extruded the other, and found the common volume as a third step - and if you  wanted to be real fussy, put a spiral thread on it rather than a thread with zero pitch - much easier obviously, and good enough to fool the eye according to some fancy CAD packages out there )

... ( and this is what I currently do ALBEIT only in 2D at the moment).   So, I am becoming very confident that I will be able to export a csv/XYZ file from Excel, (in 3D), and import it into DCAD;  and soon after that, I will be able to do stuff that really helps me at work  :)

cheers
sam

PS. Just for the record, the way I drew that gold piston back at the start of this thread was (likewise) to use "Solids Intersect" to choose what was common to a swept shape, and a prismatic one (2 cents).   
And that is how I plan to draw a bolt - one of these days lol.  I seem to recall there's a pretty good youtube or demo of some sort around here on the same subject.  I will check it out one day soon.  Right after I check out paperspace.

PS So far I'm having limited joy with Sketchup, but I will persevere - and in any case, I am having heaps of joy just doing 3D sketches ( eg the three-sided box), printing it as a pdf using CutePDF (great resolution), and sending it out for quotes and manufacture, suitably amended/stretched/re-radiused/extended in one direction, reduced in the other etcetc.   LOVE IT :)
Cheers, and thanks, sam.

samdavo

#49
PS Further to last post.
Here's that drawing of a bolt - well an M20 x 100 bolt anyway.
You will see that it is the common volume between an extruded hexagon, and a swept "cylindrical" shape plus head (ignoring the helical pitch - I would claim this is not necessary, most people will accept it as near enough imo)

Now all I have to do is hide all that basic grey geometry that is on layer 8, and it is stored for the next time.
(the purple bolt is on layer 6 I believe).

Dead simple I concede - just wanting to illustrate the sort of geometry that I imagine one could save on that hidden layer - which could be easily amended so that a new bolt design , eg with more thread, could be drawn in a hurry. (2 cents).
And Minstrel, before you mentioned storing geometry, I'd never thought about it :)

Cheers

samdavo

And you'll be pleased to know I finally got Sketchup to play ball - sorta. (some colours are a bit corrupted, but not too bad).

samdavo

#51
playing around with lighting  -

PS I won't include the dcd;  for some reason the file size went to 8MB (and up to 16MB !!) - and it's just a handful of bolts for cryssake lol.   In summary this lighting stuff is pretty hungry on memory.

MarkX

Because of the way DC stores geometry, your couple of bolts with swept threads may have as many facets as a model of the Eiffel tower.  Thus the file size increase.

Mark

samdavo

#53
Howdy Mark
ok - so I'm still learning lol.
thanks for that
the basic drawings with 2 bolts was a bit over 3MB.
Then I added the lighting it went to 7.5MB!.

Obviously I have to somehow select something with a lesser resolution (?)

PS Gotta feeling I will be using wireframe as my default lol.

samdavo

#54
well here's my first go at paperspace of that drawing of the three-sided box.
A ways to go I suspect. (2cents)

(font sizes all over the place for a start, and a bit of distortion in the "isometric" when I rotated it in the drawing)...  but hopefully half respectable.

minstrel

#55
Sam, you are 'blazing a trail' with this stuff!  Do you ever sleep? ;)   

Paperspace still remains a challenge for me...as do your efforts in constructing components using formulas, Excel, csv imports and XYZ files.  That all seems very interesting on the one hand but extremely difficult on the other.   The learning curve necessary to pull this sort of stuff off must have been extremely demanding.  Obliviously, the good part is, it's conditioned you to be able to tackle DesignCad so vigorously. 

Hat off to ya!

Minstrel

samdavo

#56
Minstrel - well let's just say my posts are a damned site easier to submit than your youtubes must be :)

edit - and the other thing I'll say is that it is very rewarding.  i.e. you add a note in a youtube that shows me how to align objects in X and Z dirns.  I decide to try it on text in 2D, and it works like a dream.  but then the "peace doh resistance", prl adds his mtext.d3m macro (see parallel thread on how to reconstruct a textblock from random text).    How good is that macro!!!  We're on a roll here folks !! lol

dah DAH dah-dah-dah , dah DAH dah-dah dah, (x2),
DAH dah-dahhhh,  dah DAH

da-da DAHHHHH,  da-da-DAHHH
da-da-DAHHHHH,  da-da-da-da- DAHHHH etc
(sorry refer the youtube back there with the Clydesdale training to the Rocky theme lol)

Quote from: MarkX on April 18, 2013, 05:59:09 AM
Because of the way DC stores geometry, your couple of bolts with swept threads may have as many facets as a model of the Eiffel tower.  Thus the file size increase. Mark

Mark et al, I'll throw this out there, and hope someone can shed some light.
In some CAD packages, they solve the size of the file that a bolt-thread adds by simply choosing the length of thread (the machined cylindrical part) - and "simulating a thread" by :-
a) leave it as cylindrical,  and
b) change the appearance to a zebra pattern (well strictly one with bands that fade/merge  between black and white - where presumably the black is meant to look like a shadow.

Would such a "zebra" appearance be possible in DCAD?
(I suppose you could cut it up into black and white salami slices? - anything better?)



MarkX

Quote from: samdavo on April 18, 2013, 02:44:11 PM
Mark et al, I'll throw this out there, and hope someone can shed some light.
In some CAD packages, they solve the size of the file that a bolt-thread adds by simply choosing the length of thread (the machined cylindrical part) - and "simulating a thread" by :-
a) leave it as cylindrical,  and
b) change the appearance to a zebra pattern (well strictly one with bands that fade/merge  between black and white - where presumably the black is meant to look like a shadow.

Would such a "zebra" appearance be possible in DCAD?
(I suppose you could cut it up into black and white salami slices? - anything better?)
I've used the XYZ import to create a spiral. It wasn't too difficult -- which is good because DC has no spiral tool.

I believe you could achieve the "zebra" by wrapping a photo (this is called "texture mapping" in DC) around a cylinder. Haven't tried it, but imagine its possible. Unfortunately, its probably only possible in the Phong render mode. How things wrap depends on what render mode you're in.

Phil is the wrap expert, as I recall.

You could also create a pseudo thread which doesn't actually spiral around the bolt. I think the simpler geometry would require fewer facets.

One you've created one bolt, it shouldn't add that much space to your diagram to insert bolts as blocks. But I couldn't image building a sky-scraper and using actual bolts with threads everywhere.

Mark

samdavo

thanks Mark - what with your photo idea, hopefully a contribution from chief-(w)rapper Phil,  and Minstrels blocks...

it's starting to sound viable.

PS Is it possible to wrap a hatch pattern ?

samdavo

PS Here's my second go at paperspace (happens to be a job for work) - I have resized the windows , basically to make the text look more consistent.  In the process I have lost the scaling (well plans and elavtaions are still to scale, but what is it?)

More discussion "later" - maybe over the weekend.
PS any suggestions on how to control the scale of each view would be appreciated.

And also, going back to that first attempt, was it possibe to make all text look the same.  Clearly, because different views were at different scales, then 20mm 3D text was going to look "variable"