creating a linetyp

creating a linetyp

Anonymous
Not applicable
976 Views
5 Replies
Message 1 of 6

creating a linetyp

Anonymous
Not applicable

hello everyone,

I would like to create a linetype consisting of a segment of arc and a segment of straight line which is being repeated three times at different angles and offsets.

How should I do this?

 

It would be great to hear from you.

Greetings

0 Likes
977 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant

AutoCAD's built-in BATTING linetype is very similar to that, with a half-circle arc portion.  If you really need it shaped more like your image, you can study the definition of that linetype, and the definition of the BAT shape in the LTYPESHP.shp file, which you may need to Search for [I don't think they supply it with AutoCAD any more, as they once did], but I think it's out there.  [EDIT: yes they do] in my Acad2019 here is in C:\Program Files\Autodesk\AutoCAD 2019\Support.  You could revise that shape definition, or better yet make a new one of your own and a new linetype definition, so that you retain the possibility of using BATTING in its original definition.

Kent Cooper, AIA
0 Likes
Message 3 of 6

Anonymous
Not applicable

I opened the ltypeshp. shx file

-both with notepad: didn't get what it could bring me..there is not "normal" writing on it, but symbols..

-and loaded from autocad: there is nothing on it, nor a line or a point, nothing

 

the batting linetype is similar to what I need, yeah, still need to rewrite it or create a new one.

if I just could find, where and how this linetype or patterns are written..

thanks

0 Likes
Message 4 of 6

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

I opened the ltypeshp. shx file....


 

That's the wrong one.  You need to get into the LTYPESHP.SHP file to make whatever alterations or additions you need, and when done, COMPILE it to create a new .SHX file.

Kent Cooper, AIA
0 Likes
Message 5 of 6

Sea-Haven
Mentor
Mentor

You can create it also as a pline 

 

it will end up like this (command "a" "ce" p3 "a" "-180" "l" p5 "a" "ce" p6 p7 "l" p8) repeated for each pattern shape.

0 Likes
Message 6 of 6

Kent1Cooper
Consultant
Consultant

@Sea-Haven wrote:

You can create it also as a pline ....


 

For a really sophisticated routine that does it that way, see InsulBattPoly.lsp, available >here<.  See the image attached to the first Comment.  That approach has advantages over a linetype, especially in relation to end conditions, but it does have the drawbacks of considerably higher memory consumption and that you can't alter the path except by just doing it over.

Kent Cooper, AIA
0 Likes