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

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    43670×  
Prices - CAD eShop:
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 12475:Mysterious text rotation when editing.
Tip 11967:How to apply a changed drawing template (DWT) to existing drawings?
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).


Back   All CAD Tips All CAD tips&tricks



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:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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