Function Syntax: ViewportMatchOrientation Version: 1.1 Date: 20.06.2026 6:38:56PM WEB 🚀 Command Name 🧩 Type ViewportMatchOrientation at the AutoCAD command line. 🧭 SEO Optimized Description 🧭 ViewportMatchOrientation is an SEO-friendly AutoCAD viewport rotation utility for paper space layout coordination. 🔄 The command switches to paper space, prompts for a source viewport, reads its AcDbViewport TwistAngle, then applies that angle to a second selected viewport. 📐 This helps match north orientation, rotated plan views, layout sheet viewports, and Civil 3D plan production view directions. 🎯 The routine is useful when multiple layouts or detail viewports must share the same rotation without manually entering viewport twist values. 🧰 Main Workflow 1️⃣ Run ViewportMatchOrientation from a layout. 2️⃣ Select the source viewport that already has the correct rotation. 3️⃣ Select the target viewport that must match that orientation. 4️⃣ The target viewport receives the same TwistAngle. ✅ Functionalities ✅ 🧭 Read viewport orientation from a selected source viewport. ✅ 🔄 Apply the same TwistAngle to another selected viewport. ✅ 📐 Standardize rotated plan views between layouts. ✅ 🖱️ Use simple two-click viewport selection. ✅ 🧰 Work directly in paper space for layout production tasks. 🧩 Important Commands and Helper Functions 🧩 ssget with Viewport filter selects exactly the source and target viewports. 🧩 vlax-ename->vla-object converts selected viewports to ActiveX objects. 🧩 vla-get-objectname verifies that the selected object is an AcDbViewport. 🧩 vlax-get reads the source TwistAngle property. 🧩 vlax-put-property writes the TwistAngle to the target viewport. 🎯 Practical Result 🎯 The result is a faster way to match viewport orientation in AutoCAD and Civil 3D drawings. 📐 Layout viewports can be aligned to the same rotated view direction without manual angle calculations. ✅ The command improves sheet consistency for plans, profiles, details, and north-oriented viewports. ⚠️ Important Notes ⚠️ The routine expects valid paper space viewport selections. ⚠️ It changes the target viewport TwistAngle but does not copy scale, layer overrides, or viewport lock state. ⚠️ Save or test before applying orientation changes to production sheets. 🏷️ Tags 🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ Viewport, 🏷️ Paper Space, 🏷️ Viewport Rotation, 🏷️ TwistAngle, 🏷️ Layout Viewports, 🏷️ Match Orientation, 🏷️ Plan Rotation, 🏷️ CAD Automation, 🏷️ Viewport Tools