<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="Block2CogoPoints">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: BLock2Civilpoint</Bold>
<LineBreak/>
<Bold>Version: 1.1 Date: 28.04.2026 8:34:11AM</Bold>
<LineBreak/>
<Hyperlink>http://www.cad-huebner.de/download/UHBLock2Civilpoint.LSP</Hyperlink>
<Hyperlink>http://www.cad-huebner.de/download/UHBLock2Civilpoint.LSP</Hyperlink>
<LineBreak/>
<Bold>Description</Bold><LineBreak/>
This AutoCAD Civil 3D AutoLISP program converts selected block references into Civil 3D COGO points.<LineBreak/>
The user runs the command <Bold><Run Foreground="DarkRed">BLock2Civilpoint</Run></Bold> and uses a DCL dialog to select block references from the drawing.<LineBreak/>
The tool reads each selected <Bold><Run Foreground="DarkRed">INSERT</Run></Bold> entity and creates a Civil 3D point at the block insertion point.<LineBreak/>
The program is designed for Civil 3D users who need to convert existing block symbols into editable Civil 3D point objects.<LineBreak/>
<Bold>Main Command</Bold><LineBreak/>
โข <Bold><Run Foreground="DarkRed">BLock2Civilpoint</Run></Bold> starts the block-to-Civil-point conversion workflow.<LineBreak/>
<Bold>User Workflow</Bold><LineBreak/>
โข The user loads the file <Bold><Run Foreground="DarkRed">Block2CogoPoints.LSP</Run></Bold> in Civil 3D.<LineBreak/>
โข The user runs <Bold><Run Foreground="DarkRed">BLock2Civilpoint</Run></Bold> from the command line.<LineBreak/>
โข The program opens a dialog named <Bold><Run Foreground="DarkRed">Block to Civil Points</Run></Bold>.<LineBreak/>
โข The user clicks <Bold><Run Foreground="DarkRed">Pick block references...</Run></Bold> and selects block references in the drawing.<LineBreak/>
โข The dialog shows the number of selected blocks, the minimum Z value, and the maximum Z value from the selected block insertion points.<LineBreak/>
โข The user chooses whether to keep or delete the original blocks using <Bold><Run Foreground="DarkRed">Delete initial blocks</Run></Bold>.<LineBreak/>
โข After pressing OK, the program connects to the Civil 3D application object and creates COGO points.<LineBreak/>
<Bold>Functionalities</Bold><LineBreak/>
โข <Bold>๐ Block selection</Bold> โ the program requires the user to select AutoCAD block references, filtered as <Run Foreground="DarkRed">INSERT</Run> objects.<LineBreak/>
โข <Bold>๐ Civil point creation</Bold> โ each selected block is converted into a Civil 3D point at the block insertion location.<LineBreak/>
โข <Bold>๐ Attribute reading</Bold> โ the program reads block attributes and prefers the attribute tag <Run Foreground="DarkRed">NR</Run>.<LineBreak/>
โข <Bold>๐ท๏ธ Point description transfer</Bold> โ the value from the <Run Foreground="DarkRed">NR</Run> attribute is used as the Civil 3D point description when available.<LineBreak/>
โข <Bold>๐ Fallback attribute logic</Bold> โ if the <Run Foreground="DarkRed">NR</Run> attribute does not exist, the first available block attribute value is used instead.<LineBreak/>
โข <Bold>๐ Z range preview</Bold> โ the dialog displays Z min and Z max values from selected block insertion points before conversion.<LineBreak/>
โข <Bold>๐งน Optional cleanup</Bold> โ the user can delete the original block references after the Civil 3D points are created.<LineBreak/>
โข <Bold>๐ Civil 3D connection check</Bold> โ the program attempts to connect to the correct Civil 3D COM interface before processing the blocks.<LineBreak/>
โข <Bold>๐ง Version detection</Bold> โ the code contains logic for older Civil 3D versions and also attempts to detect newer installed Civil 3D versions through the registry.<LineBreak/>
โข <Bold>๐ช Temporary DCL interface</Bold> โ the dialog is generated dynamically from the LISP code and does not require a separate permanent DCL file.<LineBreak/>
<Bold>Important Code Notes</Bold><LineBreak/>
โข <Run Foreground="Red">This routine requires Civil 3D, not plain AutoCAD only.</Run><LineBreak/>
โข <Run Foreground="Red">The command creates Civil 3D points, but the visible code sets the point description only. It does not explicitly set the Civil 3D point number or point name.</Run><LineBreak/>
โข <Run Foreground="Red">The original block references are deleted by default unless the user disables Delete initial blocks.</Run><LineBreak/>
โข <Run Foreground="Red">The selected objects must be block references. Lines, polylines, text, circles, and other object types are not selected by this routine.</Run><LineBreak/>
<Bold>Final Result</Bold><LineBreak/>
The result is a faster Civil 3D workflow for converting existing AutoCAD block symbols into Civil 3D COGO points.<LineBreak/>
This helps users automate point creation, reduce manual coordinate entry, reuse block insertion elevations, transfer attribute information into point descriptions, and clean up the drawing by optionally removing the original blocks.<LineBreak/>
</TextBlock>
<Grid>
<Image Source="Image_000.png" Stretch="Uniform"/>
</Grid>
<Grid>
<Image Source="Image_001.png" Stretch="Uniform"/>
</Grid>
<Grid>
<Image Source="Image_002.jpg" Stretch="Uniform"/>
</Grid>
<!-- Use MediaElement for GIF (static first frame) and Image as fallback -->
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>
Leave a Reply
You must be logged in to post a comment.