Function Syntax: MultiOffsetBothSidesWithLayerExtra / MOBSWLE / OLPredefinedProfiles / OLDebug Version: 1 Date: 07.11.2025 Version: 2 Date: 23.06.2026 7:15:55PM Version: 3 Date: 03.07.2026 4:21:35PM AI Description This AutoLISP program allows the user to offset multiple lines on both sides simultaneously with customizable distances, profiles, and target layers. It includes interactive dialogs for configuration and layer selection, enhancing workflow efficiency when creating symmetrical line offsets in AutoCAD drawings. Main Function: • Command name: c:MultiOffsetBothSidesWithLayer • The user is prompted to select one or more LINE objects. • The program displays a custom dialog box for offset settings. • It then performs offsets on both sides of each selected line using specified distances and optionally places results on a chosen layer. Program FlowStep 1: User selects lines to offset using (ssget ":L" '((0 . "*LINE"))) — multiple passes allowed until Enter is pressed.Step 2: The program opens a dialog for offset configuration — controlled by OL-ShowMainDialog.Step 3: User can choose a predefined profile (e.g., "Schutzrohr.DN 110", "KK Gr. II i.F_400X275") to automatically set left and right offset distances.Step 4: Option to delete the original line after offsetting.Step 5: Option to assign new offsets to a specific layer via OL-ChooseLayer dialog, which filters and lists non-XREF layers.Step 6: Executes offset operation using AutoCAD command _.offset in “Source” mode.Step 7: For each selected line:   – If a target layer is set, it changes the line’s DXF layer (group 8).   – Performs right and left offsets with the chosen distances.   – Optionally deletes the original entity using (vla-erase). Global Variables Initializedol-profiles — predefined offset profiles with left/right distances.ol-offL, ol-offR — default offset distances (left/right).ol-delorig — whether to delete the original line (1 = yes).ol-use-layer — whether to place offset lines on a chosen layer.ol-layer — stores chosen layer name. Dialog System Features • Offset distances editable manually. • Dynamic profile selection updates offsets automatically using OL-Profile-Change. • Checkbox toggles for “Delete Original” and “Place on Layer.” • Layer filter system allows partial name search and layer selection via DCL interface. • Option to pick a layer from an existing object directly from the drawing. Key FunctionsOL-CollectLines — gathers all selected line entities.OL-GetAllLayers — retrieves non-XREF layer names.OL-ChooseLayer — opens dialog for filtering and choosing layers.OL-Profile-Change — updates offset distances based on selected profile.OL-ShowMainDialog — main interface for user input. Special Notes • Uses AutoLISP and(vl-load-com) for full ActiveX and DCL dialog support. • Offsets are performed through (vla-offset) ensuring proper layer inheritance. • Original entity removal is handled through (vla-erase). • Temporary DCL files are created dynamically using (vl-filename-mktemp) and deleted after use. Result The final outcome is a set of new offset lines created on both sides of the originals, with customizable spacing and layering — ideal for ducting, piping, or structural linework drafting workflows in AutoCAD.