DuplicateToNewLayer

Short description

🧩 DuplicateToNewLayer and CloseParallelPolylines is an AutoCAD and Civil 3D DCL offset utility for creating left and right offsets from selected LINE LWPOLYLINE POLYLINE SPLINE and ARC geometry.
πŸŽ›οΈ The interface combines offset profiles independent left and right distances target layer controls optional source deletion parallel closing optional centerline generation Apply Undo OK and Cancel.
πŸ“š Built in profiles cover Profile_000 cable channel sizes and Profile_003 through Profile_003 duct bundle configurations.

Command:

Main command: DuplicateToNewLayer and CloseParallelPolylines

Description:

πŸ“ The current execution workflow asks the user to select one or more compatible curve objects and creates separate right and left offsets through the VLA Offset method.
πŸ“š The profile list automatically fills matched left and right distances for Profile_000 Profile_003 cable channel sizes and Profile_003 bundle presets.
πŸ—‚οΈ Place offsets on layer enables a filtered non Xref layer list and a Pick Layer From Drawing option.
🧬 When a target layer is enabled the current source moves the original object to that target layer before generating the offsets so the new offsets inherit the same layer.
πŸ—‘οΈ Delete original object can erase the selected source after offset generation.
πŸ”— Close Parallel Polylines joins one right and one left offset by calculating the shorter endpoint pairing adding two connector lines and using PEDIT Join.
βž— Create centerline polyline can generate a safe sampled centerline by averaging points on the first offset with closest points on the second offset.
πŸ“ The safe centerline currently samples forty intervals along the first offset curve.
↩️ Apply creates one processing pass and keeps the dialog workflow active while Undo reverses the previous Apply operation.
βœ… OK runs one processing pass when no Apply has yet been used then closes and commits the current undo group.
❌ Cancel reverses all Apply operations made during the current command session.

Helper function: (if any)​

DTNLCPP-OffsetResult-DTNLCPP->Enames converts VLA Offset results into AutoCAD entity names.
DTNLCPP-CreateCenterlineSafe-DTNLCPP samples the offset pair and creates an averaged lightweight polyline centerline.
DTNLCPP-CloseTwoParallelEntities-DTNLCPP adds endpoint connectors and joins the offset pair.
DTNLCPP-GetAllLayers-DTNLCPP returns non Xref drawing layers.
DTNLCPP-DoOffsetOnce-DTNLCPP performs the current object selection and left and right offset processing.

Functionalities:

βœ… Independent left and right offsets – allows different offset distances on each side.
βœ… Engineering profiles – provides preset Profile_000 cable channel and Profile_003 bundle dimensions.
βœ… Multiple object selection – accepts LINE LWPOLYLINE POLYLINE SPLINE and ARC geometry.
βœ… Filtered layer picker – filters non Xref layers by user entered name text.
βœ… Pick layer from drawing – reads the target layer from a selected drawing entity.
βœ… Optional source deletion – erases the original after offset generation when enabled.
βœ… Parallel closing – adds two endpoint connector lines and joins the new offset pair.
βœ… Automatic endpoint pairing – chooses the lower total endpoint connection distance.
βœ… Safe centerline – creates a sampled midpoint LWPOLYLINE between the two offsets.
βœ… Apply workflow – creates repeated processing passes without closing the tool.
βœ… Undo workflow – rolls back the most recent Apply operation.
βœ… Cancel rollback – reverses every Apply made during the current command session.
βœ… Persistent UI values – keeps profile offsets deletion layer filter selection mode and close options in global variables.

Result:

🎯 The result is a pair of left and right offset entities for every selected source curve.
πŸ”— In Close mode a valid one plus one offset pair is connected and joined into closed parallel geometry.
βž— When enabled an additional sampled centerline lightweight polyline is generated between the two offsets.

Images, animations etc.

Pixel

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="DuplicateToNewLayer&amp;CloseParallelPolylines">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: Command</Bold>
<LineBreak/>
<Bold>Version: 1.0 Date:</Bold>
<LineBreak/>
<LineBreak/>
<Hyperlink>N/A</Hyperlink>
<LineBreak/>
</TextBlock>

<Bold><Run Foreground="DodgerBlue">Description</Run></Bold><LineBreak/>
<Run Foreground="White">🧩 DuplicateToNewLayer and CloseParallelPolylines is an AutoCAD and Civil 3D DCL offset utility for creating left and right offsets from selected LINE LWPOLYLINE POLYLINE SPLINE and ARC geometry.</Run><LineBreak/>
<Run Foreground="White">πŸŽ›οΈ The interface combines offset profiles independent left and right distances target layer controls optional source deletion parallel closing optional centerline generation Apply Undo OK and Cancel.</Run><LineBreak/>
<Run Foreground="White">πŸ“š Built in profiles cover Schutzrohr cable channel sizes and DN300 through DN1000 duct bundle configurations.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Function Syntax</Run></Bold><LineBreak/>
<Run Foreground="White">Main command: </Run><Bold><Run Foreground="Orange">DuplicateToNewLayer and CloseParallelPolylines</Run></Bold><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">SEO Optimized Overview</Run></Bold><LineBreak/>
<Run Foreground="White">πŸ“ The current execution workflow asks the user to select one or more compatible curve objects and creates separate right and left offsets through the VLA Offset method.</Run><LineBreak/>
<Run Foreground="White">πŸ“š The profile list automatically fills matched left and right distances for Schutzrohr DN110 cable channel sizes and DN bundle presets.</Run><LineBreak/>
<Run Foreground="White">πŸ—‚οΈ Place offsets on layer enables a filtered non Xref layer list and a Pick Layer From Drawing option.</Run><LineBreak/>
<Run Foreground="White">🧬 When a target layer is enabled the current source moves the original object to that target layer before generating the offsets so the new offsets inherit the same layer.</Run><LineBreak/>
<Run Foreground="White">πŸ—‘οΈ Delete original object can erase the selected source after offset generation.</Run><LineBreak/>
<Run Foreground="White">πŸ”— Close Parallel Polylines joins one right and one left offset by calculating the shorter endpoint pairing adding two connector lines and using PEDIT Join.</Run><LineBreak/>
<Run Foreground="White">βž— Create centerline polyline can generate a safe sampled centerline by averaging points on the first offset with closest points on the second offset.</Run><LineBreak/>
<Run Foreground="White">πŸ“ The safe centerline currently samples forty intervals along the first offset curve.</Run><LineBreak/>
<Run Foreground="White">↩️ Apply creates one processing pass and keeps the dialog workflow active while Undo reverses the previous Apply operation.</Run><LineBreak/>
<Run Foreground="White">βœ… OK runs one processing pass when no Apply has yet been used then closes and commits the current undo group.</Run><LineBreak/>
<Run Foreground="White">❌ Cancel reverses all Apply operations made during the current command session.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Primary Workflow</Run></Bold><LineBreak/>
<Run Foreground="White">β€’ Run DuplicateToNewLayer and CloseParallelPolylines.</Run><LineBreak/>
<Run Foreground="White">β€’ Select or edit an offset profile or enter independent Left and Right distances.</Run><LineBreak/>
<Run Foreground="White">β€’ Optionally enable target layer assignment and choose a layer through filter list or drawing pick.</Run><LineBreak/>
<Run Foreground="White">β€’ Choose whether the original object should be deleted.</Run><LineBreak/>
<Run Foreground="White">β€’ Choose Close Parallel Polylines or leave the generated offsets unclosed.</Run><LineBreak/>
<Run Foreground="White">β€’ Choose whether a centerline polyline should be generated when closing.</Run><LineBreak/>
<Run Foreground="White">β€’ Use Apply and then select one or more LINE LWPOLYLINE POLYLINE SPLINE or ARC objects.</Run><LineBreak/>
<Run Foreground="White">β€’ Use Undo to reverse the previous Apply operation.</Run><LineBreak/>
<Run Foreground="White">β€’ Use OK to perform a first pass when required and close the dialog.</Run><LineBreak/>
<Run Foreground="White">β€’ Use Cancel to roll back Apply operations from the current command.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Functionalities</Run></Bold><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Independent left and right offsets</Run></Bold><Run Foreground="White"> - allows different offset distances on each side.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Engineering profiles</Run></Bold><Run Foreground="White"> - provides preset Schutzrohr cable channel and DN bundle dimensions.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Multiple object selection</Run></Bold><Run Foreground="White"> - accepts LINE LWPOLYLINE POLYLINE SPLINE and ARC geometry.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Filtered layer picker</Run></Bold><Run Foreground="White"> - filters non Xref layers by user entered name text.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Pick layer from drawing</Run></Bold><Run Foreground="White"> - reads the target layer from a selected drawing entity.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Optional source deletion</Run></Bold><Run Foreground="White"> - erases the original after offset generation when enabled.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Parallel closing</Run></Bold><Run Foreground="White"> - adds two endpoint connector lines and joins the new offset pair.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Automatic endpoint pairing</Run></Bold><Run Foreground="White"> - chooses the lower total endpoint connection distance.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Safe centerline</Run></Bold><Run Foreground="White"> - creates a sampled midpoint LWPOLYLINE between the two offsets.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Apply workflow</Run></Bold><Run Foreground="White"> - creates repeated processing passes without closing the tool.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Undo workflow</Run></Bold><Run Foreground="White"> - rolls back the most recent Apply operation.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Cancel rollback</Run></Bold><Run Foreground="White"> - reverses every Apply made during the current command session.</Run><LineBreak/>
<Run Foreground="White">βœ… </Run><Bold><Run Foreground="LimeGreen">Persistent UI values</Run></Bold><Run Foreground="White"> - keeps profile offsets deletion layer filter selection mode and close options in global variables.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Important Commands and Aspects</Run></Bold><LineBreak/>
<Run Foreground="White">🧩 DTNLCPP-OffsetResult-DTNLCPP->Enames converts VLA Offset results into AutoCAD entity names.</Run><LineBreak/>
<Run Foreground="White">🧩 DTNLCPP-CreateCenterlineSafe-DTNLCPP samples the offset pair and creates an averaged lightweight polyline centerline.</Run><LineBreak/>
<Run Foreground="White">🧩 DTNLCPP-CloseTwoParallelEntities-DTNLCPP adds endpoint connectors and joins the offset pair.</Run><LineBreak/>
<Run Foreground="White">🧩 DTNLCPP-GetAllLayers-DTNLCPP returns non Xref drawing layers.</Run><LineBreak/>
<Run Foreground="White">🧩 DTNLCPP-DoOffsetOnce-DTNLCPP performs the current object selection and left and right offset processing.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Result</Run></Bold><LineBreak/>
<Run Foreground="White">🎯 The result is a pair of left and right offset entities for every selected source curve.</Run><LineBreak/>
<Run Foreground="White">πŸ”— In Close mode a valid one plus one offset pair is connected and joined into closed parallel geometry.</Run><LineBreak/>
<Run Foreground="White">βž— When enabled an additional sampled centerline lightweight polyline is generated between the two offsets.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DarkRed">Important Notes</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">The dialog displays a 2 Points selection mode but the current DTNLCPP-DoOffsetOnce-DTNLCPP execution path always calls the multi object selection routine and does not implement a distinct two point processing path.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">The Unclose Parallel Polylines radio option currently prevents the close action and leaves newly created offsets open rather than actively opening previously closed geometry.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">When Place offsets on layer is enabled the current implementation changes the source object layer before creating the offsets.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">Close mode requires exactly one right and one left entity from the VLA Offset result for the selected source object.</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ </Run><Bold><Run Foreground="DarkRed">The current centerline is an approximation based on forty sample intervals and closest point averaging.</Run></Bold><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="Yellow">SEO Keywords</Run></Bold><LineBreak/>
<Run Foreground="Yellow">🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Multiple offset, 🏷️ Parallel polylines, 🏷️ Close parallel polylines, 🏷️ Centerline, 🏷️ Schutzrohr, 🏷️ Cable channel, 🏷️ DN bundle, 🏷️ Layer assignment, 🏷️ VLA Offset, 🏷️ PEDIT Join, 🏷️ DCL, 🏷️ CAD automation</Run><LineBreak/>



          
<Grid>
<Image Source="PNG" Stretch="Uniform"/>
</Grid>
<Grid>
<MediaElement
 Source="GIF"
 Stretch="Uniform"
 Visibility="Visible"/>
 </Grid>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ Cable channel

  • DuplicateToNewLayer

    β€”

    by

    Short description🧩 DuplicateToNewLayer and CloseParallelPolylines is an AutoCAD and Civil 3D DCL offset utility for creating left and right offsets from selected LINE LWPOLYLINE POLYLINE SPLINE and ARC geometry. πŸŽ›οΈ The interface combines offset profiles independent left and right distances target layer controls optional source deletion parallel closing optional centerline generation Apply Undo OK and…

  • MultiOffsetBothSidesWithLayer

    β€”

    by

    Short description🧩 MultiOffsetBothSidesWithLayer is the M_07 C# AutoCAD and Civil 3D offset project for generating structured left and right parallel geometry from selected centerline objects. πŸŽ›οΈ The current project uses a modeless WinForms interface with profiles pipe counts left and right offsets extra ducts target layers closing centerline source handling live preview Apply and Undo…