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.

How to draw a thick linestyle (that will work in 3D)

Started by samdavo, July 11, 2014, 07:51:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

This request involves using DCLinestyle.sys. 

As I understand it, it in not possible  easy to draw a wide/thick line in 3D
So I tried using line style Xs.

And I tried to define a line called XEs, which
a) has X's at twice the density (half the spacing), and
b) also has E's superimposed.

Here's what I found when I opened DCLstyle.sys with Notebook editor :-

QuoteXs
1
[S(6) P(-2,-4) ; LETTER_X], 4
;


samdavo

So I tried another linestyle XXs
suggest ignore this post - the next one achieves the line style I was after - but it is still pretty hopeless

And (whilst it doesn't do what I want to do), it gives an offset which is conveniently midway between the other X's ...

and if you superimpose a line drawn as linestyle Xs and another with linestyle XXs, you get the denser version below.

I colour these red and green to highlight what's going on.

However, I still need to achiev that directly in one linestyle. 
preferably amend XXs to what was intended.
and better still, add some E's as well :)
Thanks for any help.

Quote
Xs
1
[S(6) P(-2,-4) ; LETTER_X], 4
;


XXs
1
[S(6) P(-4,-4) ; LETTER_X], 4
[S(6) P(-3,-4) ; LETTER_X], 4
[S(6) P(-2,-4) ; LETTER_X], 4
[S(6) P(-1,-4) ; LETTER_X], 4

;
Note the above has been edited, since I didn;t have a clue what I was doing last week when I did this :)
i.e. the second line of that format gives the number of elements in the linestyle - hence either use 1 and cross off the rest,  or change the 1 to 4, and follow it by 4 elements - which may have worked - something to try later

samdavo

Ahhh, I think I've nutted it out :)

This achieves dense X's at least.
QuoteXXs
1
[S(6) P(-2,-4) ; LETTER_X], .5
;

However I notice a problem where you lose the "XXs linestyle" effect in 3D if you just zoom in a bit ,  mmm.  Might be a dead end this one. :(

Edit
Same / similar effect with I's (rather than Xs)

samdavo

Think I prefer prl's piped edged (which are a snack to apply, just draw a small hexagon with handle in the centre, strictly should be a plane, and use Ctrl+Shift+X = extrude along lines).

Sorry, I used "Looking for Help" thread,  but, unless someone can improve on these I believe I have figured it out myself.
cheers

samdavo


PS lol, As further evidence that the XX's line style is pretty tricky in 3D - I also post what happens when you try to draw a circle on that tube.

But it appears to be a quick way to draw a knurled flat surface  i.e. a circle drawn in 2D with XXs line style (on the left), or I's on the right.  i.e. You automatically get Text Arc   (2 cents) 

samdavo

and here's a closeup of a spiral drawn with XXs linestyle  (1.5 cents) - just for fun ok.

Looks like we've found a way to draw those ribbons that gymnasts dance around with anyways :)
cheers

samdavo

Actually looking back at reply #1, that line called "both" would work if you wanted to simulate a red liquid mixing with a blue one, and you end up with a tartan scarf ( 2 cents)   PS arguably best in 2D however.  - or rather, care required in 3D.

Quote
Xs
1
[S(6) P(-2,-4) ; LETTER_X], 4
;

XXs
1
[S(6) P(-4,-4) ; LETTER_X], 4
;
Linestyle Xs is a standard in DCAD
Linestyle XXs is similar but slightly x-shifted
Both lines (were they drawn as solid for instance) would start and end at the same places, i.e. same endpoints - but the "X's" are slightly x-shifted (backwards) in the second one.

prl

Quote from: samdavo on July 11, 2014, 10:13:58 PM
Looks like we've found a way to draw those ribbons that gymnasts dance around with anyways :)

Sam, you're creating some really nice graphics!