Function Syntax: MAKELT2 Version: 1.0 Date: 20.06.2026 6:38:50PM AI+https://www.theswamp.org/index.php?topic=47058.0 Function Syntax: LinetypeWithCharacters2 Version: 1.0 🧵 SEO Friendly Description 🧵 LinetypeWithCharacters2 is an AutoCAD AutoLISP utility for creating custom linetypes with embedded text characters directly from a DCL dialog. 🔤 It is useful for CAD standards, Civil 3D drafting, utility linework, cable routes, drainage lines, fence lines, signal routes, and annotation-based linetype production. 🎨 The tool also creates or updates layers with color, lineweight, transparency, CELTSCALE, THICKNESS, and current-layer settings. 📂 The final linetype can be applied to one target layer or multiple selected layers from a filtered layer list. 🚀 Main Command 🪟 Run MAKELT2 in the AutoCAD command line to open the Make Linetype With Embedded Characters dialog. 🧵 The helper function makelt2 calls the same command workflow. 🧰 Dialog Workflow 🏷️ Enter a new layer name or update an existing layer. 🎨 Define layer color using ACI, RGB, or Color Book values. 🖱️ Use Pick... to select a color from the AutoCAD TrueColor or Color Index dialog. 📏 Select lineweight, transparency, linetype scale, and thickness for the target layer workflow. 📌 Enable Set as current layer when the created or updated layer should become the active drawing layer. 🧵 Linetype Options 🔤 Define the linetype name, linetype description, embedded text string, dash length, text height, and text gap. ↕️ Choose the text vertical offset to control how the embedded text sits inside the linetype pattern. 🖊️ Select the AutoCAD text style used by the embedded linetype text segment. 📐 Select the dash type used to generate the dash pattern around the text. ✨ Use the Funky Chars dropdown to insert special characters into the linetype text string. ⚙️ Functionalities 🚀 Create text-based linetypes - generates AutoCAD linetypes with embedded characters and readable labels. 🔄 Redefine existing linetypes - updates an existing linetype name when the same definition already exists. 🧹 Sanitize linetype names - removes invalid characters before the LIN definition is created. 📂 Apply to multiple layers - assigns the generated linetype to selected layers from the filtered layer list. 🔍 Layer filtering - filters layer names and supports long names with horizontal scroll logic. 🎨 Advanced layer properties - supports ACI, RGB, Color Book, lineweight, transparency, CELTSCALE, and THICKNESS. 💾 Registry memory - stores reusable defaults for faster repeated linetype creation. 🧩 Temporary DCL and LIN generation - writes temporary support files, loads the linetype, then cleans up automatically. 📘 Helper Functions 🪟 MK2:_writeDCL creates the embedded dialog dynamically. 🧹 MK2:_sanitize_ltname cleans invalid linetype characters. 👁️ MK2:_showlt builds the linetype preview message. 📏 rjp-txtwdth measures text width for correct embedded-text placement. 🎨 MK2:_pickColorTC handles AutoCAD TrueColor and Color Index selection. 🏷️ MK2:_create_layer_core creates or updates layer records and layer properties. ✅ Result ✅ The result is a production-ready AutoCAD linetype containing embedded text characters, loaded into the drawing and assigned to the chosen layer or layers. ✅ The tool reduces manual LIN file editing and improves CAD productivity when creating repeated Civil 3D, utility, cable, fence, drainage, signal, and annotation linetypes. ⚠️ Important Notes ⚠️ The routine creates a temporary LIN file and loads it using the AutoCAD -LINETYPE command workflow. ⚠️ Existing linetype names can be redefined, so verify the linetype name before applying it to project layers. 🔒 Layer linetype selection is intentionally handled by the linetype workflow, not by a separate layer linetype field.