Anuncios

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

Custom linetype

Anonymous

Custom linetype

Anonymous
No aplicable

I switched from Autocad 2013 (windows) to Autocad 2015 MAC.

Because it is in a new company, I want to reprogram my linetypes.

Since I standard use annotation, I first defined a dedicated textstyle for these linetypes: TSLIJN. That works well, so I started writing my linetypes in a new .LIN.


*HOT_WATER_SUPPLY,Hot water supply ---- HW ---- HW ---- HW ----
A,20,-5,[“HW”,TSLIJN,S=2,U=0.0,X=-0.1,Y=-.5],-5

*GAS_LINE,Gas line ----GAS----GAS----GAS----GAS----GAS----GAS--
A,20,-5,[“GAS”,TSLIJN,S=2,U=0.0,X=-0.1,Y=-.5],-10

 

When I then want to load them in my new DWT-file (template), Autocad always says: Bad definition.

 

I really can't find the clue why he won't load these linetypes, since the textstyle is loaded well...

0 Me gusta
Responder
Soluciones aceptadas (2)
951 Vistas
5 Respuestas
Respuestas (5)

maxim_k
Consultant
Consultant
Welcome to Autodesk Forums!

Hi,

You can receive this message if there is not a hard return, or <enter>, placed at the end of the file that you have created.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Me gusta

Anonymous
No aplicable

The so needed hard return is there, in fact even two hard returns at the end.

The textstyle is written correct: TSLIJN, same as in the template. I really can't find the reason of that bad definition.

0 Me gusta

maxim_k
Consultant
Consultant
Solución aceptada

Try this version:

*HOT_WATER_SUPPLY,Hot water supply ---- HW ---- HW ---- HW ----
A,20.0,-5,["HW",TSLIJN,S=2,R=0,X=0.1,Y=-0.5],-5.0
*GAS_LINE,Gas line ----GAS----GAS----GAS----GAS----GAS----GAS--
A,20.0,-5,["GAS",TSLIJN,S=2,R=0,X=-0.1,Y=-0.5],-10.0

 

which works on my side.

 

I substituted U for R and changed quotes to quotation marks (ANSI 34 char)

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

wei503
Community Manager
Community Manager
Solución aceptada

If you are using TextEdit app on Mac to edit the file, please be cautious, as the TextEdit app use smart quotes by default. You can turn it off from the TextEdit Preferences dialog. 

 

Another global settings about using smart quotes is available in the System Preferences dialog > Keyboard > Text page.






Wei Ma
AutoCAD QA Manager

Anonymous
No aplicable

Thank you for this solution. The problem was indeed inside Text editor.

I din't think about the quotes and used fonttype or so.

After changing the preferences in Text editor, and converting the text to simpletext, everything works now. Thanks!

0 Me gusta