Load Linetype
linetype_loadLoad a single linetype safely, avoiding deadlocks from file-picker dialogs and -LINETYPE prompts, by automatically selecting the appropriate .lin file based on measurement system.
Instructions
Load a single linetype safely.
Use this instead of system_run_command('_-LINETYPE _LOAD ...') — that
raw form can deadlock on the FILEDIA file-picker dialog and on the
-LINETYPE option-menu prompt. This tool sets FILEDIA=0 around the call,
picks the right .lin file from MEASUREMENT, and verifies the linetype
actually loaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional .lin file. Defaults to acadiso.lin (metric) or acad.lin (imperial), chosen from MEASUREMENT. Ignored by ezdxf backend. | |
| name | Yes | Linetype name to load (e.g. 'CENTER', 'DASHED', 'HIDDEN') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||