Styles: Create Multileader Style
mleaderstyle_createCreates an AutoCAD multileader style from a preset, applying optional overrides for arrow size, landing gap, text style, and height. Validates inputs before writing.
Instructions
Create a multileader style: preset values first, then overrides.
Headless it lands on doc.mleader_styles; live it is added through the
ACAD_MLEADERSTYLE dictionary (AddObject(name, "AcDbMLeaderStyle"))
and the object's properties are written. Refuses, before any write: an
unknown preset; an override key outside the four; arrow_size /
text_height <= 0, landing_gap < 0; a name that exists; a text_style
that is neither present nor a bundled preset (ISOCP, ISOCPEUR, ARIAL,
ROMANS — those are created on both engines, textstyle_created; live, a
preset whose font file the seat lacks is refused, nothing written).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New multileader style name | |
| preset | Yes | iso (2.5 mm arrow, 1.0 landing, ISOCP 2.5) | ansi (3.0, 1.5, ROMANS 3.0) | |
| overrides | No | arrow_size | landing_gap | text_style | text_height on top of the preset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||