News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Revision Cloud Macro

Started by samdavo, March 30, 2013, 12:52:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I found an old thread (more than 6 months "stagnant"), including the following post by Accuratesteel.   When I started to answer there, I was encouraged to post to a newer thread.  Hence this post.
Quote from: accuratesteel on August 27, 2012, 01:48:23 PM
This is the macro that I use. It scales the cloud so it looks correct at different scales. I use text size of .15 at a 1" to 12 scale. It is easy to modify. You do have to put the points of the cloud in a clockwise order.
accuratesteel
Hi accuratesteel,
I really liked your macro (reply #12) on that old thread.
Definitely one for the custom toolbox.
It is so much better than drawing a stack of individual semicircles or quarter circles .
You delete it by selecting one line, and delete;

PPS (Late Extra)
Please go straight to reply #4, #7, #8, and #9 at which stage I finally have my "mental ducks in a row", 
#4 for a cloud around a curve (forced to be a suitable length)
#7 the corrected macro (albeit optional, compared to setting line type and scale)
#8 the general case of orthogonal shaped clouds, incl library symbol(s)
#9 the corrected linear cloud, including notes (in the drawing) on how to stretch, or how to scale up or down


You should use it to draw curves - which gives better results than standard line "Semi" used in straight lines - incl better joins/continuity at corners etc.

I have taken the liberty of developing it to include a scaling roo-hop measurement.
The default is 100 (units, eg mm) between the bounces of the kangaroo :)
better suited to metric - but hey, feel free to stick to your inches etc.  USA is going metric inch by inch as they say.

and the macro attached gives you two bites at the cherry. i.e. it invites you to draw a second cloud line to a different scale, and delete the one you don't like.

I call it "cloud plus scale - 2 bites.d3m"
cheers
sam

I realise (now) that "Semi" is a standard line.  But this is still easier imo.

Anyway with your macro, it is dead simple to draw a random curve around the revision.  Thanks.

'program to draw a cloud by drawing a curve,
'the scale is the distance between the kangaroo bounces, with 100(mm) at the default
'you get two chances - just delete the one you don't like

Message "Clockwise!! PS if you don't like it, you get a second chance"

Input "Current Roo-hop size = 100 each. Accept with Enter or OK, or advise new preference:", ksemi$
ksemi= 100
If ksemi$ <> "" Then
  ksemi = Val(ksemi$)
  End If

>Curve
{
  <LineStyle 39,[ksemi],0.0000
  <Type 0
  }

Input  "Happy? Just press OK/Enter to accept, or advise new preference:", ksemi$
If Sys(999) Then
   End
End If

If ksemi$ <> "" Then
  ksemi = Val(ksemi$)

>Curve
{
  <LineStyle 39,[ksemi],0.0000
  <Type 0
  }
End If

sys(4)=0

samdavo

This is what it looks like of course...
Always assuming Picasso used a computer.
Pablo Picasso.The Absinthe Drinker. 1901. Oil on canvas

samdavo

And once you are happy with the scale of the cloud outline, you can ignore the macro, simply draw curves (clockwise), and then (with new line highlighted) use the "same as" finger in InfoBox to set the style of the new line to match the cloud line done with the macro.

That way clouds are consistent across the drawing.
Also you can select a stack of lines, and change the scale for all,  (heck even change the line between "solid" and "semi" - which of course implies you could have drawn them without the macro if you wished) 

I include a couple of concentric curves, the second one drawn using Shift+F2, which was then changed to a cloud as well. 

samdavo

#3
And for the those with fussy clients who want the ends of the cloud to look neat.
I indicate a method of twigging the points around the curve to achieve this.

PS Sorry, the next post is a much better way to achieve this "neat join". 

The first png screendump shows a cloud formed by 4 points (visible if you look hard).
There is an overlap of roo-hops (100mm default in this case) on the top left corner, because the perimeter is not a multiple of 100's.  You will see that I have selected one point, and am about to change its position using point-move (asterisk) to change the perimeter.

The second shows what happens when you twig that point a fraction.  Might not be perfect, but... blind man galloping horse, probably good enough yes?


samdavo

#4
Finally, It is easy to force a curve to be a certain length.
I again enclose two clouds, set by 4 points ( well 5 if you include both ends) - with roo-hops at 100mm centres -  one with a perim or 2450 (the same as the smooth red curve incidentally),

the other slightly expanded, after this cloud curve (only) is forced to be 2500mm using the InfoBox, i.e typing 2500 into that cell.  You will note that there is now a neat join at top left (because the perim in an integral number of 100mm roo-hops), and also that it has moved off the red curve, and "concentric" with it in the course of being lengthened.

Now the roo-hops are "perfect"
PS the red curve is just there for info to see what happens when the perim is increased/modified.
2 cents.

samdavo

#5
Final (planned) post :-

Sure, things get a bit "approximate" when a curve has high curvature.
Frequently a revision might be a single line of text, or a line maybe.  Hence a "linear cloud" is preferable.

I enclose a drawing (both dcd and png) of how to construct a perfect linear cloud.
  PS WRONG! - see reply #9 for a much better one, because it is a single entity/line
When drawn as straight lines, it is somewhat counterintuitive.  (and I have used the InfoBox and the SameAs arrow to convert to linetype "Semi" alias cloud. (whereas the top left "Semi" lines were drawn with the macro).

PPS.  You can also skip the macro if you wish, and just use InfoBox to set the "Linetype" and "Scale" of the lines  to "Semi" and "100".  Note that scale is the distance between hops.

At the end of the day,  once constructed and saved to symbol library, you don't have to construct this again.

I also indicate how to stretch it to required length.  For some reason I had to use 602mm to get 6 more "roo-hops", because 600 didn't work properly.

PPS I have used zero width for the "linear cloud" line itself  - easily amended in InfoBox of course.   But you are stuck with one "hop" in the vertical direction.   To get a smaller cloud, you have to "Selection Zoom" it all down.  FWIW,  I have used a hop of 100mm, which becomes the effective vertical height of the cloud, and the included text happens to be height=28mm;  but height = 50 would also be ok.   

2 cents

samdavo

#6
Just stating the hopefully obvious, but you can stretch right hand side of the cloud by  eg 2502mm, so that the overall length of the cloud is 3102 , although the effective length is more like 3000.

PS  Make sure you choose your points 1, 2, 3, 4 (see jpeg) around the cloud so that you capture the end lines, which are further out (north and south) than you can see.  - refer the version of the cloud I have added, but with the line-type converted back from Semi to Solid

PS AN UNNECESSARY WARNING when you draw the "box" correctly - refer reply #9 for a much better one,

I find there is a second step I should have mentioned when you Selection-Zoom that cloud (eg to 50%).  And that is to change the scale of the line from 100 to 50, because SelectionZoom doesn't affect Linescale = distance between hops in this case;  so that the ends no longer "work".    (PS Although SelectionZoom does scale down text size).

I enclose the png and also the drawing.
Cheers.
sam

samdavo

Minor error in that macro - corrected below.
If you pressed "esc" on the "second chance" (instead of enter), you were destined to draw clouds forever instead of solid lines :)
That's it, I'm outa here to soak up some vitamin D.

PS The day will come when we post clouds like this on "the cloud"  :)

samdavo

#8
More thoughts walking the dog.

Easy way to do an orthogonal shape with neat corners :-
a) all corners are 100mm apart or multiples thereof
b) there is a 50mm gap at the start of each line, when drawn clockwise

PS Forget the previous suggestion - the following is the best.  Whether curve or rectangular or orthogal shape, a single line is best

EASIEST WAY
a) all corners are 100mm apart or multiples thereof
b) a 50mm gap required at the start of the first line
c) all other lines joined to the first (using Combine Lines).
d) with this option, only the first line has to be drawn clockwise - the others will take their lead from it.  (and the first gap should be 50% of the linescale).

Note that the shapes are given twice - because they can be rotated, but they can't be mirrored.  (I draw an E that was mirrored - shown grey colour - the semis become inverted.)

Those shapes can also be stretched this way, and that way etc,  but you should use multiples of 100mm (because the scale is 100mm, as I have said a few times now).   Feel free to scale everything to suit yourselves, including the Line-Scale. (and the first gap should be 50% of the line-scale, eg 50 vs 100).
Cheers
sam

samdavo

SUMMARY of the Linear Cloud.
The name of the enclosure(s) says it all - doh.
Both dcd and png. 
Clearly better to have one continuous line (using Combine Lines) - as I did in the previous post ( refer EASIEST WAY).  Easier to move, copy etc etc as a unit ( not a collection of lines).

There are also notes in the dcd (repeated) on how to stretch (use multiples of 100mm) or scale it all down  (just remember to scale down both ZoomSelection and also LineScale).

In case it's not obvious, most of these posts have been a progression from relative ignorance on this subject to where I finally know what I'm talking about (I think lol).   A guilty conscience has required me to add a note at the very first post suggesting jumping some of the intermediate posts.  Apologies as necessary.  (But I expect a few viewers might get some use out of this - I will anyway :) )

magic

Hi Sam,

Warning: Sometimes revision clouds are misinterpreted.
It's a kind of magic!




samdavo

#11
Magic,   lol
yep that's a beaut cartoon.
- but of course if could be for real ?  difficult to cut square holes, yes ;)

But seriously, I recently submitted drawings on a project, checked by "a big consultant" who can remain nameless.  I (normally) use a triangle to highlight revisions, and add the letter of the revision in said triangle.  Dead simple, and extremely quick.  And read in conjunction with the Revision Box History (including reason for said change, and date), you get the full history of all changes Rev A to Rev D for instance.

The principal complaint they had with my drawings was that "the method used of indicate revisions was not in accordance with (Australian) industry/drafting standards".    They drew a cloud (an orthogonal cloud no less) around each and every one of my triangles lol.   When I checked, no Australian standard specified a standard "revision" format ;)   (Perhaps I should have said "nor does your method", lol)

Still rather than argue, I will add the orthogonal clouds as they request. - and I will use the enclosed "symbol" as a starting template - hence this exercise will not have been in vain :)


PS Sorry, refer two replies hence - a single line is best

PS I noted that, in an earlier thread ( 7 or 8 months ago), you were keen to make these clouds neat.  (And you're undoubtedly right).  You more than anyone set me the challenge to draw the enclosed attachment mate.   
Cheers
sam     

PS Does anyone know of a drafting standard that specifies a method of indicating revisions?

PS (for the case of Rev D or F or H etc),  I only plan to show "clouds" showing the LATEST changes/revisions.   Any more would be too damned clumsy.  Hence, I would argue that my triangles were much better  (some with an A inside, some with a B, etc etc );  because the full story is recorded, not just the last change. - 2 cents

samdavo

#12
PS If you open that last dcd file, and don't like the background, I enclose two macros which I use all the time - I call them  "nite" and "day" - for obvious reasons.

Here's another joke, lol  (you just have to watch the first 30 seconds)
http://www.youtube.com/watch?v=EQ1HKCYJM5U

PS If you click that link and it doesn't work, - i.e. maybe the screen freezes over ... -  then just copy and paste that email address into the top address line of Windows Explorer (2 cents)

samdavo

#13
Sheesh, this is the dcd I intended to attach back a couple of replies - called "orthogonal shapes ONELINE only - doh".   PS It includes notes on how to scale down (or up) - including the requirement to change the linescale.

It was updated (after I realised that you had to use ONE LINE with "Combine Lines" rather than the earlier draft of several).  Maybe I should draw a "cloud" around everything.