Short description
πͺ VportsPoly2Rectang is an AutoCAD and Civil 3D AutoLISP viewport shape conversion manager. π It detects rectangular and polygonal clipped viewports across layouts, supports filters and selection tools, and converts viewport clipping boundaries with undo-aware batch controls.
Command:
π Main command: VportsPoly2Rectang
β‘ Alias command: VportShapeConv
π§° Opens an enhanced DCL manager for detecting, filtering, locking, zooming, and converting rectangular and polygonal clipped viewports.
Description:
πͺ VportsPoly2Rectang is an SEO-friendly AutoCAD viewport clipping utility for managing rectangular and non-rectangular viewports in paper space layouts.
π The routine scans layout block table records using VLA iteration, which avoids unreliable ssget layout filtering when inactive layout tabs are involved.
π It identifies polygonal clipped viewports through DXF clip references and non-rectangular viewport flags, then supports converting viewport shape states.
π It includes lock/unlock status, viewport filtering, select all poly/rect viewport tools, zoom-to-selected, custom clip boundary options, and persisted settings.
π― This is useful for layout QA, clipped viewport cleanup, Civil 3D sheet production, and paper space viewport standardization.
Helper function: (if any)β
π§© VLA layout iteration scans each layout block table record reliably.
π§© DXF group 340 and DXF 90 bit checks detect non-rectangular clipped viewports.
π§© Registry helpers persist user settings between sessions.
π§© DCL builders create the two-panel layout and viewport interface.
π§© Undo helpers group batch conversion, lock, and unlock operations safely.
π§© Zoom helpers switch layouts and focus the selected viewport.
Functionalities:
β
πͺ List viewports by layout with rectangular/poly status.
β
π Filter visible viewports by All, Poly only, or Rect only.
β
π Show and modify viewport locked/unlocked state.
β
π Convert polygonal viewports to rectangular viewports.
β
βοΈ Convert rectangular viewports to custom polygonal clipping boundaries.
β
π±οΈ Select all poly viewports or all rectangular viewports quickly.
β
π Zoom to the selected viewport for visual checking.
β
πΎ Persist dialog options and clip boundary layer settings between sessions.
Result:
π― The result is a controlled viewport cleanup and conversion workflow for AutoCAD and Civil 3D sheet layouts.
πͺ Users can locate problematic polygonal viewports, lock or unlock viewport sets, convert clipping shapes, and standardize sheets more efficiently.
β
The tool improves paper space QA for drawings with many layouts and mixed viewport types.
Images, animations etc.
XAML code:
ο»Ώ<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
<src:RibbonToolTip x:Key="VportsPoly2Rectang">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: VportsPoly2Rectang / VportShapeConv</Bold>
<LineBreak/>
<Bold>Version: 1.1 Date: 20.06.2026 6:38:56PM</Bold>
<LineBreak/>
<Hyperlink>AI+https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/xline-to-polyline/td-p/5504511</Hyperlink>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">π Command Name</Run></Bold><LineBreak/>
<Run Foreground="White">π§© Type </Run><Bold><Run Foreground="Orange">VportsPoly2Rectang</Run></Bold><Run Foreground="White"> at the AutoCAD command line.</Run><LineBreak/>
<Run Foreground="White">π§© Type </Run><Bold><Run Foreground="Orange">VportShapeConv</Run></Bold><Run Foreground="White"> at the AutoCAD command line.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">π§ SEO Optimized Description</Run></Bold><LineBreak/>
<Run Foreground="White">πͺ VportsPoly2Rectang is an SEO-friendly AutoCAD viewport clipping utility for managing rectangular and non-rectangular viewports in paper space layouts.</Run><LineBreak/>
<Run Foreground="White">π The routine scans layout block table records using VLA iteration, which avoids unreliable ssget layout filtering when inactive layout tabs are involved.</Run><LineBreak/>
<Run Foreground="White">π It identifies polygonal clipped viewports through DXF clip references and non-rectangular viewport flags, then supports converting viewport shape states.</Run><LineBreak/>
<Run Foreground="White">π It includes lock/unlock status, viewport filtering, select all poly/rect viewport tools, zoom-to-selected, custom clip boundary options, and persisted settings.</Run><LineBreak/>
<Run Foreground="White">π― This is useful for layout QA, clipped viewport cleanup, Civil 3D sheet production, and paper space viewport standardization.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">π§° Main Workflow</Run></Bold><LineBreak/>
<Run Foreground="White">1οΈβ£ Run VportsPoly2Rectang or VportShapeConv.</Run><LineBreak/>
<Run Foreground="White">2οΈβ£ Select layouts and review detected rectangular or polygonal viewports.</Run><LineBreak/>
<Run Foreground="White">3οΈβ£ Filter the viewport list by All, Poly only, or Rect only.</Run><LineBreak/>
<Run Foreground="White">4οΈβ£ Convert clipping shapes, lock/unlock viewports, or zoom to selected viewports.</Run><LineBreak/>
<Run Foreground="White">5οΈβ£ Use undo-aware batch processing to review and roll back if needed.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">β
Functionalities</Run></Bold><LineBreak/>
<Run Foreground="White">β
πͺ List viewports by layout with rectangular/poly status.</Run><LineBreak/>
<Run Foreground="White">β
π Filter visible viewports by All, Poly only, or Rect only.</Run><LineBreak/>
<Run Foreground="White">β
π Show and modify viewport locked/unlocked state.</Run><LineBreak/>
<Run Foreground="White">β
π Convert polygonal viewports to rectangular viewports.</Run><LineBreak/>
<Run Foreground="White">β
βοΈ Convert rectangular viewports to custom polygonal clipping boundaries.</Run><LineBreak/>
<Run Foreground="White">β
π±οΈ Select all poly viewports or all rectangular viewports quickly.</Run><LineBreak/>
<Run Foreground="White">β
π Zoom to the selected viewport for visual checking.</Run><LineBreak/>
<Run Foreground="White">β
πΎ Persist dialog options and clip boundary layer settings between sessions.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">π§© Important Commands and Helper Functions</Run></Bold><LineBreak/>
<Run Foreground="White">π§© VLA layout iteration scans each layout block table record reliably.</Run><LineBreak/>
<Run Foreground="White">π§© DXF group 340 and DXF 90 bit checks detect non-rectangular clipped viewports.</Run><LineBreak/>
<Run Foreground="White">π§© Registry helpers persist user settings between sessions.</Run><LineBreak/>
<Run Foreground="White">π§© DCL builders create the two-panel layout and viewport interface.</Run><LineBreak/>
<Run Foreground="White">π§© Undo helpers group batch conversion, lock, and unlock operations safely.</Run><LineBreak/>
<Run Foreground="White">π§© Zoom helpers switch layouts and focus the selected viewport.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">π― Practical Result</Run></Bold><LineBreak/>
<Run Foreground="White">π― The result is a controlled viewport cleanup and conversion workflow for AutoCAD and Civil 3D sheet layouts.</Run><LineBreak/>
<Run Foreground="White">πͺ Users can locate problematic polygonal viewports, lock or unlock viewport sets, convert clipping shapes, and standardize sheets more efficiently.</Run><LineBreak/>
<Run Foreground="White">β
The tool improves paper space QA for drawings with many layouts and mixed viewport types.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DarkRed">β οΈ Important Notes</Run></Bold><LineBreak/>
<Run Foreground="White">β οΈ Viewport clipping changes can affect plotted sheet appearance; test on a copy or use undo after batch operations.</Run><LineBreak/>
<Run Foreground="White">β οΈ Custom Rect-to-Poly conversion requires a valid closed boundary object such as a polyline, circle, ellipse, or spline.</Run><LineBreak/>
<Run Foreground="White">β οΈ Locked viewport state should be reviewed after conversion to avoid accidental view movement.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="Yellow">π·οΈ Tags</Run></Bold><LineBreak/>
<Run Foreground="Yellow">π·οΈ AutoCAD, π·οΈ Civil 3D, π·οΈ AutoLISP, π·οΈ Visual LISP, π·οΈ Viewport, π·οΈ Viewport Clipping, π·οΈ Polygonal Viewport, π·οΈ Rectangular Viewport, π·οΈ Paper Space, π·οΈ Layouts, π·οΈ DXF 340, π·οΈ Viewport Lock, π·οΈ DCL Dialog, π·οΈ CAD Automation, π·οΈ Sheet QA</Run><LineBreak/>
</TextBlock>
<Grid>
<Image Source="PNG" Stretch="Uniform"/>
</Grid>
<Grid>
<MediaElement
Source="GIF"
Stretch="Uniform"
Visibility="Visible"/>
</Grid>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>

