# CAD Line Tools - Full User Guide
⭐ Description (CAD Line Tools)
CAD Line Tools is a precision MAXScript toolkit for drawing, trimming, attaching, and dimensioning CAD-style line work directly inside 3ds Max. It provides continuous line creation, smart trimming, automatic welding, organized layer generation, and dynamic length/angle editing. With built‑in dimension and angle displays, customizable colors, and advanced tools like Fillet, Chamfer, Offset, Close, and Undo Line, this utility delivers a fast, accurate, and production‑ready workflow for technical modeling, drafting, and mechanical design.
## 1. Installation & Tool Setup
1. Macro Installation: Drag & Drop the MacroScript (MCR) file directly into the 3ds Max viewport.
2. Toolbar Setup: Go to Customize > Customize User Interface. In the Toolbar tab, set the Category dropdown to "Mechanical Script" and drag the "CAD Line Tools" tool to your custom toolbar.
## 2. Main CAD Controls
1. Line Button: Activates continuous line drawing in the viewport (hold Shift to lock axis horizontally/vertically). Right-click to finish drawing.
2. Trim Button: Cuts overlapping or intersecting line segments.
3. Attach Button: Joins and welds all separate drawn lines into a single shape object.
4. Launch Button: Turns green and opens a folder naming prompt. Upon entering a name, organized layers (_Lines, Dimensions, Angles) are automatically created and the tool window closes.
5. Length & Angle Spinners: Dynamically edit the selected line's length or adjust its angle relative to the previous segment.
## 3. Display & Dimensions
1. Line Color (cp_lineColor): Sets the main wirecolor of the lines in the workspace.
2. Dimensions (chk_showDim / spn_dimSize): Toggles length numbers on lines and adjusts text size (clicking the "Dimension" label also toggles this checkbox).
3. Angles (chk_showAngle / spn_angSize): Displays angles between lines with an arc guide and text/angle size controls.
## 4. Advanced Editing Tools (Fillet, Chamfer & Offset)
1. Fillet: Rounds the corner between two connected lines using a specified radius (Rad) with an arc.
2. Chamfer: Cuts the corner between two connected lines with a straight flat edge using a specified distance (Dist).
3. Offset: Creates parallel lines from selected lines with smart corner intersection calculations based on a custom distance (Dist).
4. Close: Connects the first and last points of the drawn line set to form a closed shape.
5. Undo Line: Removes the last drawn line segment along with its dependent nodes to quickly fix mistakes.