Custom line pattern

Custom line pattern

dm0144
Advocate Advocate
488 Views
3 Replies
Message 1 of 4

Custom line pattern

dm0144
Advocate
Advocate

Hello

 

I have an issue creating a custom line pattern.

 

When asked to select the first and end point of the line type, I get the message "Invalid, that is continuous line type".

 

Can you help me create the line type as in the example bellow?

 

Thanks

0 Likes
489 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

This has come up before, for example >here<, and >this<, and I think there are others, probably some in the regular AutoCAD Forum and some in the Customization Forum.  It can't be done with an ordinary linetype definition, but needs to be either a MultiLine definition, or three Polylines [continuous for the edges, dashed with width for the middle], or using Shapes that must necessarily be segmented on curves, or something.

 

The second link above gives you a Shape-based linetype, with this kind of result:

Kent1Cooper_0-1674133248716.png

which looks like this close-up:

Kent1Cooper_0-1674134013350.png

with overlap to minimize gaps at the outer edge of tighter curves:

Kent1Cooper_1-1674134141570.png

With sufficient lineweight [whether viewed or only when plotted] to fill it in solid:

Kent1Cooper_0-1674501235084.png

But see the comments at the link.

Kent Cooper, AIA
Message 3 of 4

Sea-Haven
Mentor
Mentor

Way easier we used this for road drainage but its not a single line drew 2 outside lines then just use a pline using linetype "equal" ie .lin is 1x1 then set width of pline to suit, very easy to code a convert single line to linetype.

 

A extra to this was a custom lisp that would handle the ends not being square.

*EQUAL1000,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,0.30,-0.30
*EQUAL200,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,1.50,-1.50
*EQUAL100,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,3.00,-3.00
0 Likes
Message 4 of 4

SoaresASBCAD
Collaborator
Collaborator
0 Likes