CogoPoints2Structures

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="CogoPoints2Structures">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: CogoPoints2Structures</Bold>
<LineBreak/>
<Bold>Version: 1 Date: 04.12.2025</Bold>
<LineBreak/>
<LineBreak/>
<Hyperlink>AI</Hyperlink>
<LineBreak/>
<Bold>Description</Bold><LineBreak/>
This program allows the user to automatically create copies of a template Civil 3D Structure and place them at the locations of selected COGO Points, matching each structure’s Rim Elevation to the point’s Elevation.<LineBreak/><LineBreak/>

<Bold>Main Functionalities</Bold><LineBreak/>

β€’ The user is prompted to select a template structure (<Bold><Run Foreground="DarkRed">AeccDbStructure</Run></Bold>).<LineBreak/>

β€’ The routine validates that the selected object truly is an <Bold><Run Foreground="DarkRed">AeccDbStructure</Run></Bold>.<LineBreak/>

β€’ The user then selects multiple COGO Points (<Bold><Run Foreground="DarkRed">AeccDbCogoPoint</Run></Bold>) to define where new structures will be placed.<LineBreak/>

β€’ For each COGO Point, the routine performs the following actions:<LineBreak/>
   β€’ Creates a copy of the template structure using <Bold><Run Foreground="Red">vla-Copy</Run></Bold>.<LineBreak/>
   β€’ Retrieves the point's Location and Elevation using <Bold><Run Foreground="Red">vlax-get</Run></Bold>.<LineBreak/>
   β€’ Moves the copied structure to the COGO Point using <Bold><Run Foreground="Red">SetLocation</Run></Bold>.<LineBreak/>
   β€’ Sets the structure's RimElevation equal to the COGO Point's Elevation with <Bold><Run Foreground="Red">vlax-put</Run></Bold>.<LineBreak/>

β€’ When complete, the routine reports the number of structures created.<LineBreak/><LineBreak/>

<Bold>Important Implementation Details</Bold><LineBreak/>

β€’ COM is loaded using <Bold><Run Foreground="Red">vl-load-com</Run></Bold>.<LineBreak/>

β€’ <Bold><Run Foreground="DarkRed">CMDECHO</Run></Bold> is temporarily disabled to keep the command line clean.<LineBreak/>

β€’ A custom error handler restores settings and avoids abnormal termination.<LineBreak/>

β€’ Only AeccDbStructure objects are accepted as templates.<LineBreak/>

β€’ Only AECC_COGO_POINT objects are accepted for placement locations.<LineBreak/><LineBreak/>

<Bold>Workflow Summary</Bold><LineBreak/>

β€’ User selects a template structure.<LineBreak/>
β€’ User selects a set of COGO Points.<LineBreak/>
β€’ The routine loops through all selected points.<LineBreak/>
β€’ For each point:<LineBreak/>
   β€’ Template is copied.<LineBreak/>
   β€’ Copy is moved to point location.<LineBreak/>
   β€’ Rim elevation is synchronized with COGO Point elevation.<LineBreak/>
β€’ Confirmation message displays how many structures were created.<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>



Page Tag: 🏷️ C3D_tools

  • CogoPoints2Structures

    β€”

    by

    XAML code: Expand Code ↓ Select Code Copy 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="CogoPoints2Structures"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Left"> <Bold>Function Syntax: CogoPoints2Structures</Bold> <LineBreak/> <Bold>Version: 1 Date: 04.12.2025</Bold> <LineBreak/> <LineBreak/> <Hyperlink>AI</Hyperlink> <LineBreak/> <Bold>Description</Bold><LineBreak/> This program allows the user to automatically create copies of a template Civil 3D Structure and place them at the locations of…

  • MHPipes2SurfacesProfilesElevationTool_vs.00

    β€”

    by

    Short description Comming soon … Command: Comming soon … Description: Comming soon … Helper function: (if any)​ Comming soon … Functionalities: Comming soon … Result: Comming soon … Images, animations etc. Lisp code: Expand Code ⬇ Select Code Copy Code Comming soon … Additional info: Based on / Source code: Open Website Share this page:

  • Pipes2SurfacesProfilesElevationTool_vs.01

    β€”

    by

    Short description Sort / Purpose: Civil 3D utility to set pipe invert elevations from selected TIN Surfaces and/or Profiles, using separate elevation offsets for each source and a scrollable, filterable UI for many pipes. β€’ Scope: Works with AeccDbPipe (model), pipe profile-views, TIN Surfaces and Profiles, using wildcard filters and β€œApply” inside the dialog so…

  • Pipes2SurfacesProfilesElevationTool

    β€”

    by

    XAML code: Expand Code ↓ Select Code Copy 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="Pipes2SurfacesProfilesElevationTool"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Left"> <Bold>Function Syntax: Command</Bold> <LineBreak/> <Bold>Version: 1 Date: 14.11.2025</Bold> <LineBreak/> <LineBreak/> <Hyperlink>WEB</Hyperlink> <LineBreak/> <Bold>Description</Bold><LineBreak/> This AutoLISP program provides an advanced interface for adjusting Civil 3D pipe elevations based on TIN Surfaces and Profiles. It allows the…

  • MH2SurfacesProfilesElevationTool

    β€”

    by

    XAML code: Expand Code ↓ Select Code Copy 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="MH2SurfacesProfilesElevationTool"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="MH2SurfacesProfilesElevationTool"> <Bold>Function Syntax: MH2SurfacesProfilesElevationTool</Bold> <LineBreak/> <Bold>Version: 1 Date: 14.11.2025</Bold> <LineBreak/> <LineBreak/> <Hyperlink>WEB</Hyperlink> <LineBreak/> <div class="bgc-Sort-Description"> <span class="txt-bold">Short description</span><span class="LineBreak"></span> This LISP adjusts Civil 3D manhole structures to match selected TIN surfaces and or profiles using elevation…

  • MH2SurfacesProfilesElevationTool_vs.01

    β€”

    by

    Short description Sort / Purpose: Civil 3D utility to set structure (manhole) elevations based on TIN Surfaces and/or Profiles, using a scrollable dialog with filters. β€’ Scope: Works with AeccDbStructure and profile-view network parts, using profiles or surfaces as elevation sources, with separate offsets. β€’ Priority: For each manhole, it tries Profiles first; if no…

  • MHPipes2SurfacesProfilesElevationTool_vs.01

    β€”

    by

    Short description Sort / Purpose: A pipe-only shortcut command that still launches the same full UI. User may ignore manhole lists if not needed. Type: Shortcut alias to the master interface Scope: Provides access to all pipe-related elevations Goal: Simpler entry for users working only with pipes Sort / Purpose: A pipe-only shortcut command that…

  • MH2SurfacesProfilesElevationTool_vs.00

    β€”

    by

    Short description Short description This LISP adjusts Civil 3D manhole structures so their rim elevations follow selected TIN surfaces or profiles, with elevation offsets, batch selection and a dialog that supports live Apply preview and final confirmation. Command: Main command β€’ MHPipes2SurfacesProfilesElevationTool – opens the manhole elevation adjustment dialog and runs the tool. Description: What…