CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3450 

CAD tip CAD tip # 7481:

Question CAD 
 %  platform  category 
Q - question

Dotted and arrow linetypes.

A - answer Besides the standard dashed linetypes and complex linetypes using shapes, AutoCAD allows to create custom linetypes using texts. These texts don't need to be neccessarily only letters and numbers - you can also use symbols.

Symbols are contained in most fonts and you can access them through Unicode codes. But you need to use a "rich" font containing the requested symbol. The Truetype font Arial (Arial.ttf) is one of such fonts - and Arial is the defualt font used in the predefined style "Standard" in newer versions of AutoCAD. So we can avoid referring a specific style in the linetype definition, and first of all avoid creating the specific style in all drawings which should use the newly defined linetype.

Examples of such symbol linetypes are these dotted (spotted) and arrow-type linetypes:

Text/symbol linetypes

The definitions of the displayed linetypes follow (metric units):
*DOTS,Dots .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  
A,.000001,-3,["\U+25CF",Standard,S=3,R=0,X=-1.25,Y=-1.25],-3
*DOTS1,Dots1 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
A,.000001,-3,["\U+2022",Standard,S=3,R=0,X=-1.44,Y=-1.44],-1.7
*ARROW,Arrow1  >  >  >  >  >  >  >  
A,.000001,-3,["\U+25BA",Standard,S=3,R=0,X=-1.35,Y=-1.35],.000001,-4

You can also download it HERE

You can add these definitions to your ACADISO.LIN (or ACAD.LIN) file, or you can save them to a separate LIN file. You can load a .LIN file into an AutoCAD DWG drawing with the LINETYPE command.

The spacing between symbols is controlled by the negative values in the definition. The symbol size is controlled by the linetype scale property. The small dots between symbols are neccessary as the linetype definition must start with a full line segment.

We recommend to use the "Linetype generation" property for polylines (PLINEGEN=1).

ACADLT
100% *  CAD 
28.7.2010    32599×  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 11788:Invalid number or bad continuation - when creating a linetype.
Tip 11751:toMulti converts polylines to multi-lines driven by a definition table.
Tip 11564:Avoid name collisions between AutoCAD font- and symbol files (SHX).
Tip 11448:Numbered linetypes for line grids.
Tip 11160:Dynamic display of layer/block/text style/linetype properties.


Back   All CAD Tips All CAD tips&tricks

How to add words to the AutoCAD spelling dictionary. « | » Error in Photofly: An error occured with the Web Service (Error:0)

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist