Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom linestyle - *Invalid* Too many segments in linetype definition.

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
john.gonzales2MCTF
1831 Views, 6 Replies

Custom linestyle - *Invalid* Too many segments in linetype definition.

Hello, I'm trying to create a util linestyle and get the above error message.

I want it to look like:  G - - - (D) - - - G --- (D) --- G

that is how I started it.  Text, 3 lines, Text, 3 lines.

Any help is appreciated.

6 REPLIES 6
Message 2 of 7

Can you provide you current code for your line?  I would say based on the error, you are trying to code too much

You can only have between 2 and 12 dash/dot specifications.  Text, 3 lines, text 3 lines, would be too many (each gap counts as well)


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2022 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 3 of 7

Hi,

I can't post it because it won't create it.  I believe your correct tho and wanted to confirm I can't.

Presenting it as:  --- G(D) ---, seems to work.

I wanted the G and (D) to be separate, but that seems to be too much.

Thank  you for your reply!

Message 4 of 7

Were you coding it or trying to create it from a drawing?  I went straight to coding it, which is what told me about the 2/12 requirement.  What about separating them by 1 dash so you would have dash g dash d dash dash as your definition.  The dash and g would not be able to be gapped that would cause the 12 count to be exceeded


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2022 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 5 of 7

I was using lines and txt in a file with the express tool MKLTYPE.

Yeah, I will play with it more and see what will work best.

--- G(D)--- seemed to work.

 

I'll try your suggestion too.

 

Thanks for your reply!

Message 6 of 7

no problem

as a note, --- g (d) --- as you have it written would have 6 dashes when drawn as the pattern repeats

 

--- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- --- g (d) --- 

is what you will see

as opposed to 

- g (d) -- - g (d) -- - g (d) -- - g (d) -- - g (d) -- - g (d) -- - g (d) -- - g (d) -- - g (d) --


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2022 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 7 of 7

Hi @john.gonzales2MCTF,

 

To add to the information provided by @chriscowgill7373, the following Autodesk Knowledge Network (AKN) articles cover linetypes as well as the limitations in a linetype definition. 

 

About Simple Custom Linetypes

MKLTYPE (Express Tool)

 

All the best, 

Cheryl Buck
Technical Support Specialist



Did a post answer your question or help resolve the issue? Please click the Accept Solution button.
If you find a response helpful, consider Liking the post.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

State of Sustainability Webinar


AutoCAD Inside the Factory