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

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 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    17953x  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 9553:Complete thorough PURGE on a single click.
Tip 9265:RENAME on steroids - complex renaming of AutoCAD objects.
Tip 7433:New alignment code for complex linetypes in AutoCAD 2011.
Tip 7341:How to scan all DWG drawings for missing SHX files?
Tip 7273:How to create custom line styles for GIS maps?


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:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


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