Giter VIP home page Giter VIP logo

distanceparallel's Introduction

DistanceParallel Rhino Command

icons_ DistanceParallel is a custom python command for Rhinoceros 3d CAD modeler that measures the distance between two parallel planar surfaces.

  • v0.5.1.1
  • Tested on Rhino V6 for Mac
  • Tested on Rhino V7-beta for Mac
  • Untested on Windows

Utilization

Start the command by typing DistanceParallel into the command line. Select two parallel planar surfaces to measure the distance between them. The distance will be reported in the command history panel. The measurement will also be added to your clipboard (untested on Windows).

animated gif

Command Line Options

  • Unlock layers and Objects - beta
    Temporarily unlock all visible objects and unlock layers to allow surface selection. Unlocked objects and layers will be relocked on completion of the command. This feature has not been thoroughly tested. If the script crashes it will leave layers and objects unlocked. Use with caution and test to your satisfaction on non critical work.
  • Results in Message Box
    Display result in a pop-up message box. The value of the measurement will be added to your clipboard (untested on Windows)

Caveats: If the selected surfaces are not planar or parallel within the document tolerance, the command will report and terminate.

Surfaces within blocks are not always selectable. Polysurfaces can be selected, extrusions cannot. Explode blocks if necessary.

Meshes are not currently selectable for measurement.

Installation

  1. Download and the dev folder and unzip if necessary.
  2. Create a folder called DistanceParallel{c92ade5c-25c3-4adf-be7c-f64c5609bff2} inside of the Rhino PythonPlugIns folder. Create the PythonPlugIns folder if it doesn't already exist.
  • Mac: ~/Library/Application Support/McNeel/Rhinoceros/6.0/Plug-ins/PythonPlugIns/DistanceParallel{c92ade5c-25c3-4adf-be7c-f64c5609bff2}
  • Win: C:/Users/<username>/AppData/McNeel/Rhinoceros/6.0/Plug-ins/PythonPlugIns/DistanceParallel{c92ade5c-25c3-4adf-be7c-f64c5609bff2}
  1. Put the dev folder and all of its contents into DistanceParallel{c92ade5c-25c3-4adf-be7c-f64c5609bff2}.
  2. Restart Rhinoceros
  3. Run the command by typing DistanceParallel in Rhino's command line.

Optional: Add the command to a tool palette

Add the DistanceParallel command to a tool palette by creating a custom button.

The icon for the command can be found in the command dev/icons folder.

  • Mac: Distance_Parallel_Icon.pdf
  • Windows: Distance_Parallel_Icon.png

Add "!_DistanceParallel" to the script/macro editor for your custom button.

For more information on creating custom tool bars/palettes:

Customize Tool Palettes (Mac en-us)

Customize Tool Palettes (Windows en-us)

Support Continued Development

If you find this plugin useful please donate to show your support for continued development.

Future enhancements
  • Test on Windows
  • Test in Rhino 8
  • Measure between planar meshes
  • Tolerance settings
  • Unit conversions
  • Rewrite in C#
  • Improve selection highlighting
  • Create Installer and or
  • Work with Rhino Package Manager
  • Add additional measurements

Donate $3, $7 or $11 to MonSalon

About

License

You can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation. https://www.gnu.org/licenses/

distanceparallel's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.