Repository navigation
LINETYPE Command
Opens the Linetype Manager, where you create, edit, load and set the drawing's linetypes.
| Command | -LINETYPE |
| Aliases |
DDLTYPE · LT
|
| Web app | Available |
| Since | 0.1.3 |
LINETYPE opens the Linetype Manager. On the left is every linetype in the drawing with the number of objects, layers and styles using it. On the right are a preview and three tabs.
| Tab | What it does |
|---|---|
| Pattern | The description and the elements: dashes, gaps and dots, added, removed and reordered. |
| Scale |
LTSCALE, CELTSCALE, MSLTSCALE and PSLTSCALE. |
| Library | Exports linetypes to a file, saves one to your own library, or reloads your library. Not in the web version. |
The toolbar has New, Copy, Delete, Import (loads a .lin file), Set Current and Apply. Double-click a name to rename it, and use the Up and Down arrow keys to move through the list. Nothing changes in the drawing until Apply, and closing the window without it drops your changes.
ByLayer, ByBlock, Continuous and linetypes from an external reference are locked, but can be made current or copied. A linetype with text or shapes can be copied, renamed and deleted, but its pattern cannot be edited here yet.
Type an option after the command, or use -LINETYPE for the full command-line form. In a script, a bare LINETYPE asks for these at the prompt instead of opening the window.
| Option | What it does |
|---|---|
List (LIST) |
Lists the linetypes in the drawing with their descriptions. |
Set (SET) |
Makes a linetype current for new objects. Type a linetype name, ByLayer or ByBlock. |
Load (LOAD) |
Opens a file dialog. Pick a linetype file, and all its linetypes are added to the drawing. |
- You can type the option on one line, for example
LINETYPE SET DASHEDorLINETYPE LIST. - Set loads a linetype from the built-in catalog the first time you use it. A name that is neither loaded nor in the catalog is refused.
- To give a layer a linetype, use
-LAYERwith the Ltype option, or the Layer Manager.
-LINETYPE asks for an option and then each value, so it suits scripts. It offers everything above, plus:
| Option | What it does |
|---|---|
Create (CREATE) |
Adds a linetype to the drawing from a name, an optional description and a pattern. |
Rename (RENAME) |
Renames a linetype. Everything that uses it follows the new name. |
Delete (DELETE) |
Removes a linetype nothing uses. |
Export (EXPORT) |
Writes linetypes to a .lin file. Give names separated by commas, wildcards such as F*, or * for all. |
Save (SAVE) |
Adds a linetype to your own library, or replaces your earlier copy, so it is offered in every drawing. |
Reload (RELOAD) |
Reads your linetype folders again, so a .lin file you added needs no restart. |
The whole command can go on one line. Put a name or description that has spaces in double quotes:
-LINETYPE CREATE "My Fence" "Fence line" 1.5,-0.25,0,-0.75
-LINETYPE RENAME "My Fence" FENCE2
-LINETYPE EXPORT "FENCE*,HIDDEN" "/Users/me/My Linetypes.lin"
-LINETYPE SAVE FENCE2
-LINETYPE RELOAD
-LINETYPE DELETE FENCE2
A pattern is a comma-separated list of 2 to 12 lengths: a positive number is a dash, a negative number is a gap and 0 is a dot. It must start with a dash or a dot and have at least one gap.
- A name cannot be one the built-in catalog already uses, such as
DASHED. Use Set to load that linetype instead. -
ByLayer,ByBlock,Continuousand linetypes from an external reference cannot be renamed or deleted. -
Delete refuses a linetype that is current or still used by an object, layer, block, style or saved layer state.
PURGEremoves the ones nothing uses. -
Export and Save skip a linetype a
.linfile cannot hold, and say which and why. Text containing a double quote or a square bracket is one example. - Text in an exported linetype needs a text style of the same name in the drawing that loads it, or only the dashes load.
- A definition past the limits some other programs apply (a description over 47 characters, a pattern line over 80 characters, more than 12 elements) is written in full, with a warning.
- A drawing keeps the linetypes it already holds when a library changes.
- For a file path with spaces, use the one-line form with the path in double quotes. An answer at a prompt ends at the first space.
- Export, Save and Reload are not available in the web version.
LAYER · PROPERTIES · SETBYLAYER · PURGE
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference