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.

Cheapskate bolts

Started by samdavo, April 20, 2013, 09:55:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

#15
hey - that's a brilliant macro, thanks.
(worked first go for me).
cheers  sam

I assume you "zip it up again" with Ctrl + Z (by as many times as necessary)?

(PS I note, on reading the text of the macro that you can blow it up +25%, then compress it again -25% - to get back to the original - plenty of thought gone into that one :))   

Of course a pedant would say that blowing it up 25% would only require you to reduce it 20% lol.  cheers sam

Dempsey

You are right of course about the +25 and -25, but in this way I get to calculate how to reverse the +25 operation in the accuracy of DesignCAD. No, I don't use Ctrl-Z internally; it is all mathematics.

You can indeed manually reverse with repeated Ctrl-Z.

Yes, I spent many nights refining the macro and had a great time doing that.
Dempsey

samdavo

#17
Well I could post this on this thread
- or on the "zebra hatching" thread - where I worked out how to do it in tandem harness and with massive assist from Mark.

Firstly I address a trick of sorts I've woken up to (dead simple) but it is sometimes convenient to have the windows in 3D overlapping, so that activating them (even with Fit-To-All-Windows chosen) makes them much larger (trivial - ok)...

Next I enclose screen dumps of this drawing, each with a different window textured.  (no extra lighting used, dead simple).

The important thing (for this thread) is that the bolt has only been drawn as hex prism and a couple of cylinders - and the "thread" is just that striped jpeg ( posted earlier in this thread) BOX-wrapped.   (doh).

All as per Mark's assist - and also his warning that this doesn't necessarily stay with the drawing is relevant.  I doubt it would be "exported" to AutoCAD dwg file for instance.  (the earlier efforts didn't anyway).  - Let alone for the extra step of importing that in turn to Sketchup (Minstrel's trick).

So it's a victory of sorts - (good enough for screen dumps etc) - but arguably a hollow victory ( not good enough to be "export-quality").

samdavo

#18
Check - once converted to dwg, it doesn't want to show up ( in DWGTrueView anyway) -  I enclose a screen dump

Further to my first post
Size of files then were:-
1. Bolt proper.dcd = 976kB
2. Square thread.dcd = 592kB.
3. Stripes.dcd = 281kB


With this post, which I imagine will be (nearing) the conclusion of this thread,  I enclose

4. Bolt plus boxmap   81kB
5. Bolt with rings ( square thread) 544kB.

I also enclose those two bolts as imported into  DWG Trueview  (after exporting to dwg), and
(next post) I will show them both then imported into Sketchup.

Cheers
sam

samdavo

And in SketchUp - note powerful shadow effects ( all as per Minstrel's youtubes)
THe bolt in the background is the Boxmap (again without the texture mapping coming through the process of DCD >> DWG >>SKETCHUP)

I also include the data which Sketchup tells you as you import - serious trivial "file complexity /sizes" - no longer 4500 faces for a start (2 cents).

samdavo

#20
Quote from: Dempsey on April 24, 2013, 10:59:54 AM
... Yes, I spent many nights refining the macro and had a great time doing that.
Dempsey - thanks, it will come in real handy.  (I only mentioned the idea of a macro because Solidworks has such an "exploded view" feature (and costs an order of magnitude more!) - but there's something ... really gratifying lol,  doing it so simply  (and probably quicker with a macro like that).

You can of course choose more items in a secondary "pushapart" (after the first, say vertical explosion) - and then move those items sideways (yes?)...

And you can even manually move a few if you need to...

And (as for reversing it)  I find that either your -25% etc ( really -20% lol)  repeated twice with the two selections (arguably carefully chosen) OR repeated manual Ctrl+Z gets you back to the original, i.e. back through both runnings of the macro - great stuff.

Personally, I would probably use the manual Ctrl+Z.  (but first I would save the file, to stop Ctrl+Z's going back further than the start of the first pushapart ( 2 cents)

Congrats and thanks.