Rhino.Scripting.Fsharp 0.8.1

dotnet add package Rhino.Scripting.Fsharp --version 0.8.1                
NuGet\Install-Package Rhino.Scripting.Fsharp -Version 0.8.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rhino.Scripting.Fsharp" Version="0.8.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rhino.Scripting.Fsharp --version 0.8.1                
#r "nuget: Rhino.Scripting.Fsharp, 0.8.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rhino.Scripting.Fsharp as a Cake Addin
#addin nuget:?package=Rhino.Scripting.Fsharp&version=0.8.1

// Install Rhino.Scripting.Fsharp as a Cake Tool
#tool nuget:?package=Rhino.Scripting.Fsharp&version=0.8.1                

Rhino.Scripting.Fsharp

code size license

logo

What is Rhino.Scripting.Fsharp?

Rhino.Scripting.Fsharp is a set of useful extensions to the Rhino.Scripting library. This includes type extension for pretty printing of Rhino objects as well as implementations of commonly used functions in curried form for use with F#.

This library allows you to compose RhinoScript functions with pipelines:

Get started by opening the Rhino.Scripting namespaces:

open Rhino.Scripting
open Rhino.Scripting.Fsharp // opening this will extend RhinoScriptSyntax and some Rhino.Geometry types with additional static and member functions.
type rs = RhinoScriptSyntax
rs.AddPoint( 1. , 2.,  3.)
|>! rs.setLayer "my points"
|>! rs.setUserText "id" "point123"
|>  rs.setName "123"

instead of

let guid = rs.AddPoint( 1. , 2.,  3.)
rs.ObjectLayer (guid, "my points")
rs.SetUserText (guid, "id", "point123")
rs.ObjectName (guid, "123")

The |>! operator is part of Rhino.Scripting via the FsEx library. It passes it's input on as output. See definition.

License

MIT

Change Log

0.8.1

  • align Plane API with Euclid library

0.8.0

  • align Line, Point3d and Vector3d API with Euclid library
  • referencing Rhino.Scripting 0.8.0

0.5.0

  • first public release
  • referencing Rhino.Scripting 0.5.0
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.8.1 113 10/6/2024
0.8.0 98 10/6/2024

- align Plane API with Euclid library