Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Creating Custom Linetypes

carrielester
Observer

Creating Custom Linetypes

carrielester
Observer
Observer

Hello,

I am trying to create a new line type to represent an instrument air supply line, which is a solid line with forward slashes as shown in the attached word document.  I have not been able to find any information on how to create a solid line for creating a custom line type.  Any guidance is greatly appreciated.

Thank you!

 

0 Me gusta
Responder
1.264 Vistas
9 Respuestas
Respuestas (9)

ed57gmc
Mentor
Mentor

Have you tried the Express Tools MKLTYPE command? Just draw it and run the command, select the line work.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Me gusta

carrielester
Observer
Observer

Hello Ed.Jobe,  yes I have tried that and then when I try to test it by drawing a line and changing the line type to the new line type created it looks as shown in word document (top line is test line and bottom line is what I'm trying to make it look like).

0 Me gusta

ed57gmc
Mentor
Mentor

Attached is a linteype file. Linetypes can only be dashes and dots, so I used a "\" to represent the slanted lines. You can adjust the scale of the elements as you see fit. Here is a link to the linetype specification. Also, it is preferred if you can post jpg or png rather than docx. Paste the screen capture into Paint and then save as png.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Me gusta

Kent1Cooper
Consultant
Consultant

In this particular case, since there is really no need for gaps in the "main" line [as one typically uses around Text elements in custom linetypes], you could simplify that to use just a single Text element, containing both backslashes together [untested]:

*AIR_SUPPLY,Air Supply
A,2,["\\",STANDARD,S=1,R=0.0,X=0.0,Y=-0.5],2

 

The possible drawback is that the spacing between the two in each pair will then be a function of the font definition, over which you have no control -- if you want a particular spacing, the one with two single-backslash text elements gives you that control.

Kent Cooper, AIA
0 Me gusta

ed57gmc
Mentor
Mentor

Hi Kent, the linetype spec requires at least two segments, which means you have to include a small gap between them. You can't just have two continuous segments.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Me gusta

Kent1Cooper
Consultant
Consultant

@ed57gmc wrote:

.... the linetype spec requires at least two segments, which means you have to include a small gap between them. You can't just have two continuous segments.


 

Not true.  It may require at least two segments, but it doesn't  require that any be pen-up [negative-number] ones.  I have  now tested that, and it works fine -- here's what I get:
LinetypeDblBackslash.PNG

[I changed the font assigned to STANDARD Style to TXT.shx the way it used to be years ago, which gives a result a lot more like the OP's original image, with the hash-marks of the same line character as the "path" part.  The effect is markedly different when it's using a .ttf font as has been the default for STANDARD for a while, though it works equally well, and some may prefer the way it looks.]

Kent Cooper, AIA
0 Me gusta

ed57gmc
Mentor
Mentor

Odd, when I tried it similar to yours, I got a bad linetype definition error when loading it. It went away when I added a small gap.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Me gusta

Kent1Cooper
Consultant
Consultant

@ed57gmc wrote:

Odd, when I tried it similar to yours, I got a bad linetype definition error when loading it. It went away when I added a small gap.


[There must have been something else going on....  When I tried yours with the pen-up element simply removed, it worked fine.]

Kent Cooper, AIA

ed57gmc
Mentor
Mentor

Well, that's good to know.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Me gusta