Column Centerline Plugin Documentation
Overview The ColumnCenterlinePlugin is a C# Rhino plugin designed to automate the creation of centerline drawings for columns in a Rhino model. It processes curves or polylines representing columns on a user-specified layer, generates horizontal and vertical centerlines, labels them with alphabets (horizontal) and numbers (vertical), and adds dimensions between the centerlines. The plugin is intended to streamline the drafting process for architectural or structural drawings.
Features
- Layer Selection: Allows the user to input or select a layer containing column geometry (curves or polylines).
- Curve Processing: Automatically joins curves to form closed polylines, if possible.
- Centerline Generation: Creates horizontal and vertical centerlines based on the bounding box center of each closed polyline, extended by a user-defined length.
- Labeling: Assigns alphabetical labels (A, B, C, ...) to horizontal centerlines and numerical labels (1, 2, 3, ...) to vertical centerlines, displayed inside circles at the line ends.
- Linetype Styling: Applies a "Center" linetype (short-long-short dashes) to centerlines for clarity.
- Dimensioning: Adds linear dimensions between adjacent horizontal centerlines (above) and vertical centerlines (to the right).
- Output Layer: Places all generated geometry (centerlines, circles, text, and dimensions) in a new layer named
<InputLayerName>_Centerlines.
Requirements
- Rhino Version: Rhino 6 or later.
- Development Environment: Visual Studio with .NET Framework (compatible with Rhino's version, typically .NET 4.8).
- Dependencies: RhinoCommon SDK (included with Rhino).
Installation 1.Create a Rhino Plugin Project:
- Open Visual Studio and create a new Rhino C# Plug-in project.
- Ensure the RhinoCommon reference is added to the project.
- Add the Plugin Code:
- Copy the provided
ColumnCenterlinePlugin.cscode into the project, replacing the default command class.
- Copy the provided
- Build the Plugin:
- Build the solution in Visual Studio to generate the
.rhpfile.
- Build the solution in Visual Studio to generate the
- Load in Rhino:
- In Rhino, use the
PlugInManageror drag-and-drop the.rhpfile to load the plugin.
- In Rhino, use the
- Verify Command:
- The command
ColumnCenterlineshould be available in Rhino’s command line.
- The command
Usage
- Prepare the Model:
- Ensure all column geometry (curves or polylines) is on a single layer.
- Columns should ideally form closed shapes (e.g., rectangles or circles) or be joinable into closed polylines.
- Run the Command:
- Type
ColumnCenterlinein Rhino’s command line and press Enter.
- Type
- Input Layer Name:
- Enter the name of the layer containing the column geometry when prompted.
- Output:
- The plugin will:
- Join curves into closed polylines, if necessary.
- Create a new layer (
<InputLayerName>_Centerlines) for output. - Generate horizontal and vertical centerlines with a "Center" linetype.
- Add labeled circles (alphabets for horizontal, numbers for vertical) at the line ends.
- Place dimensions between centerlines.
- The Rhino viewport will redraw to display the results.
- The plugin will:
Limitations
- The plugin assumes columns are represented by curves or polylines that can be joined into closed shapes.
- Non-closed or non-joinable curves are ignored.
- Overlapping or invalid geometry may lead to unexpected results.
- The plugin uses fixed values for extension length, circle radius, and text height, which may need adjustment for different project scales.
- Dimensions are placed with a fixed offset, which may require tweaking for crowded drawings.
This plugin is provided as-is for use within Rhino. No warranty is implied. Users are responsible for validating the output for their specific needs.
For support or feedback, contact the plugin developer through the Rhino plugin community or relevant project channels.