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.

Cloud Revisions - a Better LineStyle than Semi

Started by samdavo, November 20, 2014, 03:15:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

We probably all know that "Semi" is the linestyle that converts a solid line to a cloud ( series of arcs/hops). 

One problem is that, when a solid line from A to B is converted to Semi (hops).
it ends up going from (A-S/2) to (B-S/2), where S is the scale.

Best way to correct that is to edit that linestyle as follows (basically a half-scale shift to the right).   (edit) Make that,  the best way, at least for orthogonal polygonal clouds - but maybe not for curves, where "Semi" is arguably best. See reply #4.

Go to Options\Custom Linestyle Editor, and set :-
Linestyle Name = Semi3
Base Linestyle = Semi
X Offset = 0.5  (instead of 0.0)
(leave the rest alone as per Semi)

click anywhere, and the sketch of the hops will change by a half-hop to the right (ie in the linestyle editor window).
click Save Linestyle List
as Default (yes)
click OK and save with drawing if that option is given.

You will be able to change a cloud line to start at the start of the line ( 2 cents).

Refer attached dcd and png  - the red "Semi" hops commence prematurely, the green "Semi3" hops commence at the start of the line.   The line is 500 long, the scale is 100, either way ( Semi or Semi3), you will get exactly 5 hops.

All four lines are the same length and are (believe it or not) left aligned (2 cents).

To my mind, Semi3 is much better than Semi.

PS - all this is based on the line being left - to -right

samdavo

Herewith a screensnap of the Linestyle Editor
(I have had to name the new linestyle "Cloud" on this occasion)

This screensnap is taken AFTER the sketch of the hops has moved to the right by a half-hop.

samdavo

Final comment, 
the right hand end of a line (second point of a straight vector) still has a potential problem, i.e. it will only match the end of a hop if the length of the line is an integral number of "scale-lengths". (doh).

The example enclosed shows what happens when Semi3 (scale 100) is used between two points 240 apart.
- the left hand end is good,
but now there's a problem at the right hand end.

However, if I change the scale to 80, I get 3 complete hops. (all pretty obvious, although most other linestyles such as centrelines etc don't have this problem).

magic

Hi Sam,

Attached is a cloud macro that I just recorded at 4 a.m.. Please try it out and adjust as you like.
It's a kind of magic!




samdavo

#4
Oops - I find that my claim that this is a better linestyle needs err qualification. :)
The enclosed jpeg shows
an orthogonal polygonal cloud in both Semi and Semi3 linestyles ( the latter is better)
a curved cloud in both Semi and Semi3 linestyles ( the former is better);
cheers

PS every line of the orthogonal polygonal shape is a multiple of 50, and the line-scale is 50  (2 cents)

samdavo

#5
Sorry magic, it wouldn't behave for me :)

Correction, I note your macro works fine - as long as you click one point after running the macro.
But (on the negative side), it is limited to a 4-hop x 3-hop rectangle.

Incidentally this is exactly what linestyle Semi3 would do, provided you make the sides of the rectangle (or hexagon whatever) an integral number of scale-lengths  (4 x 3 in this case).

The enclosed jpeg shows your 4x3 rectangle, (yellow, lower left).

also a single-line parallelogram using Semi3 (cyan, successful);

also a single-line hexagon (doh octagon), edge 10, using Semi3, scale 2  (red, unsuccessful);
also (forced to think laterally) - the same hexagon formed by one side drawn with Semi3, then circular array'ed  (green, successful).
cheers


samdavo

#6
Thinking even more laterally, and just to redefine the problem,  if you have a regular hexagon, (sometimes with 6 sides, and I notice lol sometimes with 8 ) - all with a side of 10 units, then you will find that Semi3 with a scale of 2 doesn't behave as you would expect, because the hops spin off at each corner (??)

Way to fix?
Change the scale from 2 to 2.0001;
The corners now join up nicely (and this is a single line regular hexagon, even if it has 8 sides :) )
cheers


samdavo

#7
Changing topic slightly - going back to curves (where Semi is better than Semi3 as per post #4) ...

When checking out an ellipse, I find that it wants to draw itself in an anticlockwise direction, and that means that the hops are inward.

Normally for a polygon, you can easily reverse the direction with the  red/blue two-directional arrow icon in Infobox.   However I find for ellipses, that is greyed out, (??) so that the option of reversing the direction that way is not available.

Hence I have had to mirror it to achieve the reversal, and hence the correct hops (2 cents) (edit) or else VC the curve instead - see below.

Incidentally, you will notice the length of the ellipse is 100, the linestyle is Semi, scale is 5, and hence 100/5 = 20 hops exactly.   And as above, the green ellipse is formed by mirroring the red ellipse.

(edit) - ok, I note another way to make ellipses behave in terms of reversing direction (and circles) - is to vector convert them first, after which the dual-arrows will reverse the direction no probs.

(edit) CIRCLES
For ellipses, the dual arrow icon is greyed out.
Now for circles, lol, it is not greyed out, but it doesn't work anyway (i.e. doesn't reverse the direction).  So again, mirroring or maybe, vector converting seems to be necessary (2 cents)

PS  V22.1

samdavo

Off topic, (these circular or elliptical vectors all use linestyle Semi);
but is this a braided rope? or 4 circular vectors superimposed?
(likewise the bracelet = 2 elliptical vectors)

prl

Quote from: samdavo on November 21, 2014, 02:03:50 PM
Change the scale from 2 to 2.0001;

Hi Sam,  I've been behind the curtain busy tilting at windmills.   Your investigations are interesting.  Typical DesignCAD buried numerical secrets.  2 versus 2.0001.  DesignCAD, a metaphor for life.  We are within .0001 of having everything work just perfectly . . . except we don't know the number. 


samdavo

Ahh the philosophical relevances
...  It's cloud's illusions I recall
I really don't know clouds ...  at all.