AutoOpenCurried Module
This module provides curried F# functions for easy use with pipeline operator |> This module is automatically opened when Rhino.Scripting.FSharp namespace is opened.
Functions and values
Function or value |
Description
|
Full Usage:
x |>! f
Parameters:
'a
f : 'a -> 'b
Returns: 'a
Modifiers: inline Type parameters: 'a, 'b |
Apply function, like |> , but ignore result. Return original input. let inline (|>!) x f = f x |> ignore ; x Be aware of correct indenting see: https://stackoverflow.com/questions/64784154/indentation-change-after-if-else-expression-not-taken-into-account
|
Type extensions
Type extension |
Description
|
Full Usage:
RhinoScriptSyntax.addArrows arrowStyle curveId
Parameters:
int
-
(int) The style of annotation arrow to be displayed.
0 = no arrows
1 = display arrow at start of Curve
2 = display arrow at end of Curve
3 = display arrow at both start and end of Curve
curveId : Guid
-
(Guid) Identifier of a Curve
|
Enables or disables a Curve object's annotation arrows. The size of the arrow cannot be changed. For an adjustable arrow size use a dimension leader object. Same as RhinoScriptSyntax.CurveArrows(curveId,arrowStyle)
Extended Type:
|
Full Usage:
RhinoScriptSyntax.appendUserText key value objectId
Parameters:
string
-
(string) The key name to set
value : string
-
(string) The string value to append. Cannot be empty string. Use RhinoScriptSyntax.DeleteUserText to delete keys
objectId : Guid
-
(Guid) The identifier of the object
|
Append a string to a possibly already existing user-text value.
Extended Type:
|
|
Returns the color of an object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.getLayer objectId
Parameters:
Guid
-
(Guid) The identifier of the object
Returns: string
(string) The object's current layer.
|
Returns the full layer-name of an object.
Parent layers are separated by
Extended Type:
|
Full Usage:
RhinoScriptSyntax.getLayerShort objectId
Parameters:
Guid
-
(Guid) The identifier of the object
Returns: string
(string) The object's current layer.
|
Returns the short layer name of an object. Without Parent Layers.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.getName objectId
Parameters:
Guid
-
(Guid) Id of object
Returns: string
(string) The current object name, empty string if no name given.
|
Returns the name of an object or "" if none given.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.getUserText key objectId
Parameters:
string
-
(string) The key name
objectId : Guid
-
(Guid) The object's identifier
Returns: string
(string) If key is specified, the associated value, fails if non-existing.
|
Returns user text stored on an object, fails if non-existing.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.hasUserText key objectId
Parameters:
string
-
(string) The key name
objectId : Guid
-
(Guid) The object's identifier
Returns: bool
(bool) If key exists, true.
|
Checks if a User Text key is stored on an object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.isUserTextValue key valueToMatch objectId
Parameters:
string
-
(string) The key name
valueToMatch : string
-
(string) The value to check for equality with
objectId : Guid
-
(Guid) The object's identifier
Returns: bool
(bool) If key exists and matches, true.
|
Checks if the user text stored on an object matches a given string, fails if non-existing.
Extended Type:
|
|
Matches all properties( layer, name, user text, ....) from a source object to a target object by duplicating attributes. and copying user strings on geometry. .
Extended Type:
|
|
Copies all user text keys and values from one object to another from both Geometry and Object.Attributes. Existing values are overwritten.
Extended Type:
|
|
Puts target object on the same Layer as a source object .
Extended Type:
|
|
Copies the object name from a source object to a target object.
Extended Type:
|
|
Copies the value for a given user text key from a source object to a target object.
Extended Type:
|
|
Moves a single object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveGeo translation geo
Parameters:
Vector3d
-
(Vector3d) Vector3d
geo : GeometryBase
-
(GeometryBase) The Geometry to move
|
Moves a Geometry.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveGeoX translationX geo
Parameters:
float
-
(float) movement in X direction
geo : GeometryBase
-
(GeometryBase) The Geometry to move
|
Moves a Geometry in X Direction.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveGeoY translationY geo
Parameters:
float
-
(float) movement in Y direction
geo : GeometryBase
-
(GeometryBase) The Geometry to move
|
Moves a Geometry in Y Direction.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveGeoZ translationZ geo
Parameters:
float
-
(float) movement in Z direction
geo : GeometryBase
-
(GeometryBase) The Geometry to move
|
Moves a Geometry in Z Direction.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveX translationX objectId
Parameters:
float
-
(float) movement in X direction
objectId : Guid
-
(Guid) The identifier of an object to move
|
Moves a single object in X Direction.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveY translationY objectId
Parameters:
float
-
(float) movement in Y direction
objectId : Guid
-
(Guid) The identifier of an object to move
|
Moves a single object in Y Direction.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.moveZ translationZ objectId
Parameters:
float
-
(float) movement in Z direction
objectId : Guid
-
(Guid) The identifier of an object to move
|
Moves a single object in Z Direction.
Extended Type:
|
|
Scales a single object. Uniform scale transformation. Scaling is based on the WorldXY Plane.
Extended Type:
|
|
Sets the color of an object.
Extended Type:
|
|
Sets the color of several objects.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setLayer layer objectId
Parameters:
string
-
(string) Name of layer or empty string for current layer
objectId : Guid
-
(Guid) The identifier of the object
|
Modifies the layer of an object, creates layer if it does not yet exist.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setLayerIndex layerIndex objectId
Parameters:
int
-
(int) Index of layer in layer table
objectId : Guid
-
(Guid) The identifier of the object
|
Modifies the layer of an object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setLayers layer objectIds
Parameters:
string
-
(string) Name of layer or empty string for current layer
objectIds : Guid seq
-
(Guid seq) The identifiers of several objects
|
Modifies the layer of several objects, creates layer if it does not yet exist.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setLayersIndex layerIndex objectIds
Parameters:
int
-
(int) Index of layer in layer table
objectIds : Guid seq
-
(Guid seq) The identifiers of several objects
|
Modifies the layer of several objects.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setName name objectId
Parameters:
string
-
(string) The new object name.
objectId : Guid
-
(Guid)Id of object
|
Sets the name of an object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setNames name objectIds
Parameters:
string
-
(string) The new object name.
objectIds : Guid seq
-
(Guid seq)Ids of several objects
|
Sets the name of several objects.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setUserText key value objectId
Parameters:
string
-
(string) The key name to set
value : string
-
(string) The string value to set. Cannot be empty string. Use RhinoScriptSyntax.DeleteUserText to delete keys
objectId : Guid
-
(Guid) The object's identifier
|
Sets a user text stored on an object.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.setUserTexts key value objectIds
Parameters:
string
-
(string) The key name to set
value : string
-
(string) The string value to set. Cannot be empty string. Use RhinoScriptSyntax.DeleteUserText to delete keys
objectIds : Guid seq
-
(Guid seq) The identifiers of several objects
|
Sets a user text stored on several objects.
Extended Type:
|
|
Moves, scales, or rotates an object given a 4x4 transformation matrix. The matrix acts on the left.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.transformGeo matrix geo
Parameters:
Transform
-
(Transform) The transformation matrix (4x4 array of numbers)
geo : GeometryBase
-
(GeometryBase) Any Geometry derived from GeometryBase
|
Moves, scales, or rotates a geometry given a 4x4 transformation matrix. The matrix acts on the left.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.tryGetUserText key objectId
Parameters:
string
-
(string) The key name
objectId : Guid
-
(Guid) The object's identifier
Returns: string option
(string option) If key is specified, Some(value) else None.
|
Returns user text stored on an object, returns Option.None if non-existing.
Extended Type:
|