2011 Autodesk, Inc. All Rights Reserved. Except as otherwise permitted by Autodesk, Inc., this publication, or parts thereof, may not be
reproduced in any form, by any method, for any purpose.
Certain materials included in this publication are reprinted with the permission of the copyright holder.
Trademarks
The following are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries:
3DEC (design/logo), 3December, 3December.com, 3ds Max, Algor, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo),
ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface,
Autodesk, Autodesk Intent, Autodesk Inventor, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap, AutoSketch, AutoTrack, Backburner,
Backdraft, Beast, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale, Colour Warper, Combustion,
Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer's Toolkit,
DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWG Extreme, DWG TrueConvert,
DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare, Flint, FMDesktop, Freewheel,
GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, Illuminate Labs AB (design/logo), ImageModeler,
iMOUT, Incinerator, Inferno, Inventor, Inventor LT, Kynapse, Kynogon, LandXplorer, LiquidLight, LiquidLight (design/logo), Lustre, MatchMover,
Maya, Mechanical Desktop, Moldflow, Moldflow Plastics Advisers, MPI, Moldflow Plastics Insight, Moldflow Plastics Xpert, Moondust, MotionBuilder,
Movimento, MPA, MPA (design/logo), MPX, MPX (design/logo), Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, Opticore,
Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProMaterials, RasterDWG, RealDWG, Real-time Roto,
Recognize, Render Queue, Retimer, Reveal, Revit, RiverCAD, Robot, Showcase, Show Me, ShowMotion, SketchBook, Smoke, Softimage,
Softimage|XSI (design/logo), Sparks, SteeringWheels, Stitcher, Stone, StormNET, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, U-Vis,
ViewCube, Visual, Visual LISP, Volo, Vtour, WaterNetworks, Wire, Wiretap, WiretapCentral, XSI.
All other brand names, product names or trademarks belong to their respective holders.
Disclaimer
THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS.
Published by:
Autodesk, Inc.
111 McInnis Parkway
San Rafael, CA 94903, USA
Your dealer can offer you independently developed applications that can further tailor
AutoCAD LT to your needs.
Overview of Customization
AutoCAD LT can be customized in simple ways. For example, you can change
the directory structure or create a custom title block to use on a layout. If you
want to change the interface further, you can edit the CUIx file and use DIESEL
statements to create custom commands.
The list that follows is arranged from least to most complex:
■ Organize files. You can organize program, support, and drawing files. For
example, you can make a separate folder for each project that includes only
the support files that project needs.
■ Customize Tool Palettes. You can create a tool by dragging objects from
your drawing onto a tool palette. You can create a tool palette by
right-clicking on the Tool Palettes title bar and selecting New Palette. For
information about customizing tool palettes, see “Customize Tool Palettes”
in the User's Guide.
■ Create custom drawing templates (DWTs). You can create custom drawing
templates to use when creating a new drawing. Drawing templates are used
to store the layers, blocks, and styles that you might use across all your
drawings.
■ Create custom publishing templates. Use templates to define common
parameters when you publish a drawing using the Publish to Web wizard.
■ Define command aliases. You can define simple abbreviations, or aliases,
for frequently used commands from within AutoCAD LT by adding the
1
command to the PGP file acadlt.pgp. For example, you might want to start
the BLOCK command by entering b.
■ Create custom linetypes and hatch patterns. You can create linetypes and
hatch patterns that conform to your company standards and working
methods.
■ Customize the user interface. The CUIx file controls many aspects of the
user interface, including the behavior of your pointing device buttons and
the functionality and appearance of pull-down, tablet, and image tile
menus, toolbars, and accelerator keys. You can edit or create a CUIx file
to add commands or combine commands and assign them to a menu,
toolbar, or other location.
■ Customize the status line. You can use the DIESEL string expression
language and the MODEMACRO system variable to provide additional
information at the status line, such as the date and time or system variable
settings.
■ Automate repetitive tasks by writing scripts. A script is an ASCII text file
containing commands that are processed like a batch file when you run
the script. For example, if a set of drawings needs to be plotted a certain
way, you can write a script that opens each drawing, hides and displays
various layers, and issues PLOT commands.
You can use scripts with slides to create automated presentations like those
used at trade shows. A slide is a “snapshot” of the drawing area that cannot
be edited. Slides can also be used in image tile menus and dialog boxes.
See also:
■ “Organize Program and Support Files”
■ “Toolbars”
■ “Customize a Publish to Web Template”
■ “Create Command Aliases”
■ “Custom Linetypes”
■ “Custom Hatch Patterns”
■ “User Interface Customization”
■ “DIESEL”
■ “Customize the Status Line”
2 | Chapter 1 Basic Customization
■ “Slides and Command ScriptsCommand Scripts”
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
CUSTOMIZE
Customizes tool palettes and tool palette groups.
System Variables
TOOLTIPS
Controls the display of tooltips on the ribbon, toolbars, and other user
interface elements.
Organize Program and Support Files
You can change the default directory structure for the program and support
files to suit your needs.
Overview of File Organization
See also:
■ “Specify Search Paths and File Locations” in the User's Guide
AutoCAD LT uses support files for purposes such as storing customization
definitions, loading AutoLISP and ObjectARX applications, and describing
text fonts.
AutoCAD LT® uses support files for purposes such as storing customization
definitions and describing text fonts.
The default directory structure for the AutoCAD LT program and support files
is designed to efficiently organize those files into logical groups. If this
organization does not suit your needs, you can change it. However, some
applications look for certain files in specific locations, and you should verify
Organize Program and Support Files | 3
that your modifications do not conflict with the requirements of those
applications. Without the full path, including drive and directory, AutoCAD
LT can locate only those files that are found in the library search path.
NOTE The location of the support folder changed in AutoCAD 2004.
The location of local customizable files is stored in the LOCALROOTPREFIX
system variable. The location of roamable customizable files is stored in the
ROAMABLEROOTPREFIX system variable. If a network supports roaming,
customizable files in the user's roaming profile are available on the machine
the user is logged onto.
Library Search Path
The library search path specifies where the program searches for files when
you do not specify a full path name, as follows:
■ Current directory. (This is typically determined by the “Start In” setting
in your shortcut icon.)
■ Directory that contains the current drawing file.
■ Directories listed in the search path specified on the Files tab in OPTIONS.
(See Specify Search Paths and File Locations in the User's Guide.)
■ Directory that contains the AutoCAD LT program files.
Depending on the current environment, two or more directories may be the
same.
If a file is not in this search path, you must specify both its path name and
file name before AutoCAD LT can find it. For example, if you want to insert
the part5.dwg drawing into your current drawing and it is not in the library
search path, you must specify its full path name, as shown here:
Command: insert
Enter block name or [?]: /files2/olddwgs/part5
If the drawing exists in that location, AutoCAD LT prompts you to finish the
INSERT command in the usual manner.
Directory Structure
AutoCAD LT uses tree-structured directories and subdirectories. It is
recommended that you keep supplemental files (such as third-party
applications and customization files) separate from the AutoCAD LT program
4 | Chapter 1 Basic Customization
and support files. This makes it easier to track possible conflicts and to upgrade
each application without affecting the others.
You can create a new directory on the same level as the main AutoCAD LT
directory and store any customization files or third-party applications in
subdirectories on the next level.
If you want to store drawings by job, you can create a third directory on the
same level. Subdirectories for each job could contain drawing files and a
subdirectory for related support files.
Command Search Procedure
When you enter a command, AutoCAD LT goes through a series of steps to
evaluate the validity of the command name. A command can be a built-in
command or system variable or an alias defined in the acadlt.pgp file.
Commands can also be defined by a device driver command. You can enter
a command on the command prompt or choose a command from the
appropriate menu. Commands can also be entered from a script file.
The following list describes the search order AutoCAD LT uses to validate a
command name.
1 If the input is a null response (SPACEBAR or ENTER), AutoCAD LT uses
the name of the last command issued. HELP is the default.
2 AutoCAD LT checks the command name against the list of built-in
commands. If the command is in the list and is not preceded by a period
(.), AutoCAD LT then checks the command against a list of undefined
commands. If the command is undefined, the search continues.
Otherwise, the command is run, unless another reason prevents it from
doing so. Running it transparently or in Perspective mode might be
impossible.
3 AutoCAD LT checks the command name against the names of commands
defined by a device driver, and then by those defined by the display
driver.
4 AutoCAD LT checks the command name against the list of system
variables. If the command name is in the list, AutoCAD LT executes the
SETVAR command, using the input as the variable name.
5 If the command name corresponds to a command alias defined in the
program parameters file, AutoCAD LT uses the expanded command name
and continues the search, starting a new search against the list of built-in
commands.
Overview of File Organization | 5
6 If all the preceding steps fail, the search terminates with a warning
message about illegal command names.
Quick Reference
Commands
OPTIONS
Customizes the program settings.
System Variables
LOCALROOTPREFIX
Stores the full path to the root folder where local customizable files were
installed.
ROAMABLEROOTPREFIX
Stores the full path to the root folder where roamable customizable files were
installed.
Multiple Configurations
See also:
■ “Customize Startup” in the User's Guide
If you use more than one pointing device or use different plotters, you can
set up more than one configuration file to make it easy to switch between
devices.
When you configure AutoCAD LT for a pointing device and plotter drivers,
the information you supply is recorded in a configuration file.
Typically, only a single configuration is necessary, but you may need multiple
configurations. For example, if you use a mouse for most of your work but
occasionally require a large digitizing tablet, you can set up your system to
handle multiple configurations rather than reconfiguring each time you change
a device.
The configuration file stores the values of many AutoCAD LT system variables
and the configuration options defined in the Options dialog box. If you want
different settings for these system variables and operating parameters, you
6 | Chapter 1 Basic Customization
can save those values to different configuration files. For a list of the system
variables and where they are stored, see System Variables in the CommandReference.
To take advantage of multiple configurations, you must set up AutoCAD LT
to use different configuration files. Use the /c switch to specify alternative
configuration files at startup.
Quick Reference
Commands
OPTIONS
Customizes the program settings.
Multiple Drawing Folders
Keeping your drawing and other associated files in separate directories makes
it easier to perform basic file maintenance.
Keeping your drawing files and other associated files in separate directories
makes it easier to perform basic file maintenance. The scenario described in
this topic is based on the sample directory structure described in Overview of
File Organization on page 3, but you can expand or alter it to meet your
needs.
You can set up the /AcltJobs directory to contain your drawing subdirectories.
The drawing subdirectories can contain other subdirectories that hold related
support files for that particular drawing type or job. The /AcltJobs/Job1/Support
directory can contain blocks and other files specific to the drawing files in
/AcltJobs/Job1. Specifying support (with no path prefix) in the Support path
adds the support directory within the current directory to the Support path.
Notice that if you use the Options dialog box to specify a directory, AutoCAD
LT creates a hard-coded path to that directory. To use the relative naming
convention previously described, you must specify the Support path with the
/s switch on the command line. See “Customize Startup” in the User's Guide.
To make sure that the required drawing directory is the current directory when
you start AutoCAD LT, and that all files and subdirectories in that directory
are easily accessible, you can create a program icon or a Start menu item that
specifies the correct working directory for each job. This functionality works
only if you set the AutoCAD LT system variable REMEMBERFOLDERS to 0.
Multiple Drawing Folders | 7
You can use a batch program to create new job directories automatically. The
following batch program verifies that a specified directory exists, sets that
directory to be current, and then runs AutoCAD LT.
Using an ASCII text editor (such as Notepad), save the batch program to a file
named acadlt.bat. Be sure to change the drive and directory names to match
those on your system.
Place this file in a directory that is on your system search path (for example,
C:\winnt). You can run this batch program using the Run command on the
Start menu or by double-clicking the file in Explorer. If you saved the file as
acadlt.bat, use the following syntax:
acadlt jobname
where jobname is the name of the job directory to make current.
Quick Reference
Locate Customized Files
Beginning with AutoCAD 2004, the location of some of your customized files
has changed. The reasons for the file location changes include the following:
■ Limited user rights on a workstation. You can run AutoCAD LT as a limited
user. This means that you no longer need power user or Administrator
permissions to run AutoCAD LT once it is installed.
■ Local profiles. Local profiles are used to log on a computer and they store
settings and files that are not available when roaming. Some files, such as
materials and drawing templates are stored under your local profile because
of their size, they do not follow you from computer to computer.
8 | Chapter 1 Basic Customization
■ Roaming profiles. Roaming profiles allow you to log on to any computer
within a network and retain your user settings. Some files, such as your
personal settings and documents, follow you from computer to computer.
If roaming profiles are allowed on your network, your “roamable” files are
located in the \Application Data\Autodesk\<Product Version> folder, and
your “nonroamable” files are located in the \Local Settings\ApplicationData\Autodesk\<Product Version> folder.
NOTE In some operating systems, the folders that are located under your profile
are hidden by default. To display these files, you may need to change your display
settings. On the Start menu, click Control Panel ➤ Folder Options. In the Folder
Options dialog box, on the View tab, click Show Hidden Files and Folders.
Locate Plot Style Files
Beginning with the AutoCAD 2004, the default location of your plot style files
has changed. For information about the default location of these files, see
■ (Windows Vista) Click Start menu ➤ All Programs ➤ Autodesk ➤
<AutoCAD LT> ➤ <AutoCAD LT>.
2 Click application menu ➤ Options.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Printer Support File Path.
4 Click the plus sign (+) to the left of the Plot Style Table Search Path file.
5 Under Plot Style Table Search Path, click the path name to view the
location of your plot style files.
NOTE You can also locate your plot style files by entering stylesmanager on the
AutoCAD LT command line.
Locate Customized Files | 9
Locate Plotter Files
Beginning with AutoCAD 2004, the default location of your plotter files has
changed. For information about the default location of these files, see Locate
■ (Windows Vista) Click Start menu ➤ All Programs ➤ Autodesk ➤
<AutoCAD LT> ➤ <AutoCAD LT>.
10 | Chapter 1 Basic Customization
2 Click application menu ➤ Options.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Printer Support File Path.
4 Under Printer Description File Search Path, click the path name to view
the location of your PMP file.
Locate Support Files
Beginning with AutoCAD 2004, the default location for some of your support
files has changed. For information about the default location of these files,
see Locate Customized Files on page 8.
Support files include the following:
■ Customization file (acadlt.cuix)
■ Custom icon files
■ Help and miscellaneous files
■ Font mapping file (acadlt.fmp)
■ Alternate font file (simplex.shx)
■ Support path files (acadlt.dcl, acadlt.lin, acadlt.pat, acadlt.pgp, acadlt.psf,
acadlt.unt, acadltiso.lin, acadltiso.pat, gdt.shx, inches.pss, and mm.pss)
To find the default location of the customization files
■ (Windows Vista) Click Start menu ➤ All Programs ➤ Autodesk ➤
<AutoCAD LT> ➤ <AutoCAD LT>.
2 Click application menu ➤ Options.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Customization Files.
4 Click the plus sign (+) to the left of Main Customization File.
Locate Customized Files | 11
5 Under Main Customization File, click the path name to view the location
of your main customization file.
6 Click the plus sign (+) to the left of Enterprise Customization File.
7 Under Enterprise Customization File, click the path name to view the
location of your enterprise customization files.
NOTE By default, the path to an enterprise customization file is empty until
you define the file. For more information about defining a customization file,
see “Customize the User Interface” in the Customization Guide.
To find the default location of the custom icon files
■ (Windows Vista) Click Start menu ➤ All Programs ➤ Autodesk ➤
<AutoCAD LT> ➤ <AutoCAD LT>.
Locate Customized Files | 13
2 Click application menu ➤ Options.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Support File Search Path.
4 Under Support File Search Path, click a path name to view the location
of your support files.
Locate Drawing Template Files
Beginning with AutoCAD 2004, the default location of your drawing template
files has changed. For information about the default location of these files,
see Locate Customized Files on page 8.
■ (Windows Vista) Click Start menu ➤ All Programs ➤ Autodesk ➤
<AutoCAD LT> ➤ <AutoCAD LT>.
2 Click application menu ➤ Options.
3 In the Options dialog box, Files tab, click the plus sign (+) to the left of
Template Settings.
4 Under Template Settings, click the plus sign (+) to the left of Drawing
Template File Location.
5 Under Drawing Template File Location, click the path name to view the
location of your drawing template files.
Customize a Publish to Web Template
You can create customized templates to use in the Publish to Web wizard by
modifying one of the Publish to Web template (PWT) files provided. Use any
HTML editor or text editor.
To create a custom template, add or modify any of the following elements:
■ Images
14 | Chapter 1 Basic Customization
■ Text
■ Hyperlinks
■ Color
■ Title
■ Video, animation, and so on
There are four default Publish to Web templates that you can customize:
■ Array of Thumbnails. Creates a web page containing an array of thumbnail
images.
■ Array Plus Summary. Creates a web page containing an array of thumbnail
images and summary information about each image.
■ List of Drawings. Creates a web page containing a list of drawings and an
image frame.
■ List Plus Summary. Creates a web page containing a list of drawings, an
image frame, and summary information about a selected image.
NOTE You must be familiar with HTML syntax to customize the Publish to Web
templates.
You can make changes or additions to the look and feel of a template, but
you cannot change the arrangement of images within it. For example, in the
Array of Thumbnails template, the images are presented across the page in rows.
You cannot alter the presentation of the images, but you can wrap text and
graphics around the table of images.
WARNING To ensure that you do not overwrite the default Publish to Web
template files, back up those files before you make any changes to them.
To create quick access to the Publish to Web templates
1 Click Tools menu ➤ Options.
2 In the Options dialog box, Files tab, click the plus sign (+) next to
Template Settings. Then click the plus sign next to Drawing Template
File Location.
3 Move the cursor to the path name that is displayed and click inside it,
and press F2, and press CTRL+C to copy it.
Customize a Publish to Web Template | 15
4 Click OK or Cancel to close the Options dialog box.
5 Click File menu ➤ Open.
6 In the Select File dialog box, right-click an empty area in the vertical
panel on the left side, and click Add on the shortcut menu.
7 Enter a name in the Item name box (for example, Templates).
8 Press CTRL+V to paste the path into the Item Path box, and click OK.
You can now access the Template folders by clicking the button in the
left panel of the Select File dialog box.
To customize a Publish to Web template
1 Browse to the Publish to Web template folder, click File menu ➤Open.
See To create quick access to the Publish to Web templates on page 15.
2 Double-click the PTWTemplates folder to open it. The following folders
are displayed. Each contains a Publish to Web template and preview
images (BMP) that you see when you run the Publish to Web wizard.
■ Template1. Contains the Array of Thumbnails template and a preview
image
■ Template2. Contains the Array Plus Summary template, a preview image,
and HTML frames
■ Template3. Contains the List of Drawings template, a preview image,
and HTML frames
■ Template4. Contains the List Plus Summary template, a preview image,
and HTML frames
3 Right-click the folder you want to use, and click Copy.
4 Press ALT+2, right-click the PTWTemplates folder, and click Paste.
5 Reopen the PTWTemplates folder, and right-click the new folder and
rename it.
6 Right-click the new folder and click Open to display its contents.
7 Rename the Publish to Web template (PWT) file with an .htm or .html file
extension.
8 Open the template file in an HTML editor or a text editor.
16 | Chapter 1 Basic Customization
The template file contains comments that help you determine which
areas of the code you can modify to create your new web page.
9 Review the comments and make changes to the parts of the template
you want to customize.
10 Save the template with a .pwt file extension. Make sure you save the file
to the template folder you created in step 3.
NOTE Each template folder can contain only one PWT file. If you create a
new PWT file, make sure you delete any other PWT files that exist in the same
folder.
When you run the Publish to Web wizard, the new template is displayed
in the list of templates.
Quick Reference
Commands
PUBLISHTOWEB
Creates HTML pages that include images of selected drawings.
Create Command Aliases
A command alias is an abbreviation that you enter at the command prompt
instead of entering the entire command name.
For example, you can enter c instead of circle to start the CIRCLE command.
An alias is not the same as a keyboard shortcut, which is a combination of
keystrokes, such as CTRL+S for SAVE.
The acadlt.pgp file defines command aliases. You can change existing aliases
or add new ones by editing acadlt.pgp in an ASCII text editor (such as
Notepad). In addition to command aliases in acad.pgp, you will also find
comment lines which are preceded by a semicolon (;). Comment lines allow
you to add textual information to acad.pgp, such as when or who revised the
file last.
NOTE Before you edit acadlt.pgp, create a backup so that you can restore it later,
if necessary.
Create Command Aliases | 17
To define a command alias, add a line to the acadlt.pgp file using the following
syntax:
abbreviation,*command
where abbreviation is the command alias that you enter at the command
prompt and command is the command being abbreviated. You must enter an
asterisk (*) before the command name to identify the line as a command alias
definition.
If you can enter a command transparently, you can also enter its alias
transparently. When you enter the command alias, the full command name
is displayed at the command prompt and the command is executed.
You can create command aliases that include the special hyphen (-) prefix,
such as those listed here, that accesses the version of a command that displays
command prompts instead of a dialog box.
BH, *-BHATCH
BD, *-BOUNDARY
NOTE You cannot use command aliases in command scripts. Using command
aliases in menu files is not recommended.
If you edit acadlt.pgp while AutoCAD LT is running, enter reinit in order to
use the revised file. Restarting AutoCAD LT automatically reloads the file.
To open the program parameters file (acadlt.pgp)
■ Click Tools ➤ Customize ➤ Edit Program Parameters (acadlt.pgp)
Quick Reference
Commands
REINIT
Reinitializes the digitizer, digitizer input/output port, and program parameters
file.
System Variables
RE-INIT
Reinitializes the digitizer, digitizer port, and acad.pgp file.
18 | Chapter 1 Basic Customization
Custom Linetypes
2
AutoCAD LT® provides a library of standard linetypes in the acadlt.lin and acadltiso.lin files.
You can use the linetypes as they are, modify them, or create your own custom linetypes.
Overview of Linetype Definitions
Linetypes are defined in one or more linetype definition files that have a .lin
file extension.
The linetype name and definition determine the particular dash-dot sequence,
the relative lengths of dashes and blank spaces, and the characteristics of any
included text or shapes. You can use any of the standard linetypes that AutoCAD
LT provides, or you can create your own linetypes.
examples of linetypes
A LIN file can contain definitions of many simple and complex linetypes. You
can add new linetypes to an existing LIN file, or you can create your own LIN
file. To create or modify linetype definitions, edit the LIN file using a text editor
or word processor or use LINETYPE at the command prompt.
When you create a linetype, you must load the linetype before you can use it.
The LIN files included in AutoCAD LT are acadlt.lin and acadltiso.lin. You can
display or print these text files to better understand how to construct linetypes.
19
Quick Reference
Commands
LINETYPE
Loads, sets, and modifies linetypes.
System Variables
MEASUREINIT
Controls whether a drawing you start from scratch uses imperial or metric
default settings.
Simple Custom Linetypes
Each linetype is defined on two lines in a linetype definition file. The first
line contains the linetype name and an optional description. The second line
is the code that defines the actual linetype pattern.
The second line must begin with the letter A (alignment), followed by a list
of pattern descriptors that define pen-up lengths (spaces), pen-down lengths
(dashes), and dots. You can include comments in an LIN file by beginning
the line with a semicolon (;).
Linetype Definition Format
The format of the linetype definition is
*linetype_name,description
A,descriptor1,descriptor2, ...
For example, a linetype called DASHDOT is defined as
This indicates a repeating pattern starting with a dash 0.5 drawing units long,
a space 0.25 drawing units long, a dot, and another space 0.25 drawing units
long. This pattern continues for the length of the line, ending with a dash 0.5
drawing units long. The linetype would be displayed as shown below.
__ . __ . __ . __ . __ . __ . __ . __
LIN files must be saved in ASCII format and use an .lin file extension. Additional
information about each field in a linetype definition follows.
20 | Chapter 2 Custom Linetypes
Linetype Name
The linetype name field begins with an asterisk (*) and should provide a
unique, descriptive name for the linetype.
Description
The description of the linetype should help you visualize the linetype when
you edit the LIN file. The description is also displayed in the Linetype Manager
and in the Load or Reload Linetypes dialog box.
The description is optional and can include
■ A simple representation of the linetype pattern using ASCII text
■ An expanded description of the linetype
■ A comment such as "Use this linetype for hidden lines"
If you omit the description, do not insert a comma after the linetype name.
A description cannot exceed 47 characters.
Alignment Field (A)
The alignment field specifies the action for pattern alignment at the ends of
individual lines, circles, and arcs. Currently, AutoCAD LT supports only A-type
alignment, which guarantees that the endpoints of lines and arcs start and
stop with a dash.
For example, suppose you create a linetype called CENTRAL that displays the
repeating dash-dot sequence commonly used as a centerline. AutoCAD LT
adjusts the dash-dot sequence on an individual line so that dashes and line
endpoints coincide. The pattern fits the line so that at least half of the first
dash begins and ends the line. If necessary, the first and last dashes are
lengthened. If a line is too short to hold even one dash-dot sequence, AutoCAD
LT draws a continuous line between the endpoints. For arcs also, the pattern
is adjusted so that dashes are drawn at the endpoints. Circles do not have
endpoints, but AutoCAD LT adjusts the dash-dot sequence to provide a
reasonable display.
You must specify A-type alignment by entering a in the alignment field.
Simple Custom Linetypes | 21
Pattern Descriptors
Each pattern descriptor field specifies the length of segments making up the
linetype, separated by commas (no spaces are allowed):
■ A positive decimal number denotes a pen-down (dash) segment of that
length.
■ A negative decimal number denotes a pen-up (space) segment of that
length.
■ A dash length of 0 draws a dot.
You can enter up to 12 dash-length specifications per linetype, provided they
fit on one 80-character line in the LIN file. You need to include only one
complete repetition of the linetype pattern defined by pattern descriptors.
When the linetype is drawn, AutoCAD LT uses the first pattern descriptor for
the starting and ending dashes. Between the starting and ending dashes, the
pattern dash specifications are drawn sequentially, beginning with the second
dash specification and restarting the pattern with the first dash specification
when required.
A-type alignment requires that the first dash length be 0 or greater (a pen-down
segment). The second dash length should be less than 0 if you need a pen-up
segment and more than 0 if you are creating a continuous linetype. You must
have at least two dash specifications for A-type alignment.
To create a simple linetype from the Command prompt
1 At the command prompt, enter -linetype.
2 Enter c (Create).
3 Enter a name for the linetype and press Enter.
The linetype name can include up to 255 characters. Linetype names can
contain letters, digits, and the special characters dollar sign ($), hyphen
(-), and underscore (_). Linetype names cannot include blank spaces.
4 In the Create or Append Linetype File dialog box, select an LIN linetype
library file from the File Name box and click Save.
If you select an existing file, the new linetype name is added to the
linetype names in the file.
5 Enter text that describes the new linetype (optional).
22 | Chapter 2 Custom Linetypes
Loading...
+ 362 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.