GH_Format
public sealed class GH_Format
Provides standard Grasshopper formatting functions.
Methods
DefaultCulture
#FormatAngularDimension
#FormatAnnotationValidity
#If the annotation is invalid, return a string describing why.
public static string FormatAnnotationValidity()
val,
Value to format.
identifier = "Annotation"
Name used to refer to the value in the format.
Returns: A string describing why the annotation is invalid or String.Empty if the value is not invalid.
FormatArcValidity
#If the arc is invalid, return a string describing why.
Returns: A string describing why the arc is invalid or String.Empty if the value is not invalid.
FormatBoolean
#FormatBoundingBoxValidity
#If the box is invalid, return a string describing why.
public static string FormatBoundingBoxValidity()
val,
Value to format.
identifier = "Bounding Box"
Name used to refer to the value in the format.
Returns: A string describing why the box is invalid or String.Empty if the value is not invalid.
FormatBoxValidity
#If the box is invalid, return a string describing why.
Returns: A string describing why the box is invalid or String.Empty if the value is not invalid.
FormatBrepValidity
#If the brep is invalid, return a string describing why.
Returns: A string describing why the brep is invalid or String.Empty if the value is not invalid.
FormatCentermark
#FormatCircleValidity
#If the circle is invalid, return a string describing why.
Returns: A string describing why the circle is invalid or String.Empty if the value is not invalid.
FormatClippingPlane
#FormatClippingPlaneValidity
#If the clipping plane is invalid, return a string describing why.
public static string FormatClippingPlaneValidity()
val,
Value to format.
identifier = "Clipping Plane"
Name used to refer to the value in the format.
Returns: A string describing why the clipping plane is invalid or String.Empty if the value is not invalid.
FormatComplexNumber
#FormatComplexValidity
#If the complex number is invalid, return a string describing why.
Returns: A string describing why the complex number is invalid or String.Empty if the value is not invalid.
FormatCurveValidity
#If the curve is invalid, return a string describing why.
Returns: A string describing why the curve is invalid or String.Empty if the value is not invalid.
FormatDetailView
#FormatDetailViewValidity
#If the detail view is invalid, return a string describing why.
public static string FormatDetailViewValidity()
val,
Value to format.
identifier = "Detail View"
Name used to refer to the value in the format.
Returns: A string describing why the detail view is invalid or String.Empty if the value is not invalid.
FormatDimension
#FormatDoubleValidity
#If the number is invalid, return a string describing why.
Returns: A string describing why the number is invalid or String.Empty if the value is not invalid.
FormatExtrusion
#FormatExtrusionValidity
#If the extrusion is invalid, return a string describing why.
Returns: A string describing why the extrusion is invalid or String.Empty if the value is not invalid.
FormatFilePath
#Format a filepath so that it doesn't exceed a string length. If the filepath filename is already longer than maxLength it will be returned intact.
Returns: The formatted path.
FormatFilePath
#Format a filepath so that it doesn't exceed width. If the filepath filename is already longer than maxLength it will be returned intact.
Returns: The formatted path.
FormatGeometry
#FormatHatchValidity
#If the hatch is invalid, return a string describing why.
Returns: A string describing why the hatch is invalid or String.Empty if the value is not invalid.
FormatInstanceReference
#FormatInstanceReferenceValidity
#If the instance reference is invalid, return a string describing why.
public static string FormatInstanceReferenceValidity()
val,
Value to format.
identifier = "Instance Reference"
Name used to refer to the value in the format.
Returns: A string describing why the instance reference is invalid or String.Empty if the value is not invalid.
FormatInteger
#FormatInterval
#FormatInterval
#FormatIntervalValidity
#If the point is invalid, return a string describing why.
public static string FormatIntervalValidity()
val,
Value to format.
identifier = "Domain",
Name used to refer to the value in the format.
testSingleton = false,
If true, Intervals that have no length are considered invalid.
testDecreasing = false
If true, Intervals that are decreasing are considered invalid.
Returns: A string describing why the point is invalid or String.Empty if the value is not invalid.
FormatKeys
#Format a keys enumeration as though it's a menu shortcut
FormatLightValidity
#If the light is invalid, return a string describing why.
Returns: A string describing why the light is invalid or String.Empty if the value is not invalid.
FormatLinearDimension
#FormatLineValidity
#If the line is invalid, return a string describing why.
Returns: A string describing why the line is invalid or String.Empty if the value is not invalid.
FormatMeshFace
#FormatMeshFaceValidity
#If the number is invalid, return a string describing why.
Returns: A string describing why the point is invalid or String.Empty if the value is not invalid.
FormatMeshValidity
#If the mesh is invalid, return a string describing why.
Returns: A string describing why the mesh is invalid or String.Empty if the value is not invalid.
FormatOrdinateDimension
#FormatPlaneValidity
#If the plane is invalid, return a string describing why.
Returns: A string describing why the plane is invalid or String.Empty if the value is not invalid.
FormatPointCloud
#FormatPointCloud
#FormatPointCloud
#FormatPointCloudValidity
#If the pointcloud is invalid, return a string describing why.
public static string FormatPointCloudValidity()
val,
Value to format.
identifier = "Point Cloud"
Name used to refer to the value in the format.
Returns: A string describing why the pointcloud is invalid or String.Empty if the value is not invalid.
FormatPointValidity
#If the point is invalid, return a string describing why.
Returns: A string describing why the point is invalid or String.Empty if the value is not invalid.
FormatRadialDimension
#FormatRectangleValidity
#If the rectangle is invalid, return a string describing why.
public static string FormatRectangleValidity()
val,
Value to format.
identifier = "Rectangle"
Name used to refer to the value in the format.
Returns: A string describing why the rectangle is invalid or String.Empty if the value is not invalid.
FormatString
#Replaces the format items in a string with the string representations of corresponding objects in a specified array.
Remarks: Formatting is done using invariant-culture formatting information.
Returns: A copy of format in which the format items have been replaced by the string representation of the corresponding objects in args.
FormatSubDValidity
#If the brep is invalid, return a string describing why.
Returns: A string describing why the brep is invalid or String.Empty if the value is not invalid.
FormatSurface
#FormatSurfaceValidity
#If the surface is invalid, return a string describing why.
Returns: A string describing why the surface is invalid or String.Empty if the value is not invalid.
FormatTextDot
#FormatTextDotValidity
#If the text dot is invalid, return a string describing why.
Returns: A string describing why the text dot is invalid or String.Empty if the value is not invalid.
FormatTextEntity
#FormatTextEntity
#FormatTextEntity
#FormatTransformValidity
#If the transform is invalid, return a string describing why.
Returns: A string describing why the transform is invalid or String.Empty if the value is not invalid.
FormatVectorValidity
#If the point is invalid, return a string describing why.
public static string FormatVectorValidity()
val,
Value to format.
identifier = "Vector",
Name used to refer to the value in the format.
testZero = false,
If True, zero-length vectors are considered to be invalid.
testUnit = false
If True, non-unit-length vectors are considered to be invalid.
Returns: A string describing why the point is invalid or String.Empty if the value is not invalid.
RhinoUnitName
#RhinoUnitSymbol
#TreatAsCollection
#This method is used in Scripting components to determine whether a certain class was 'intended' as a collection or as a single piece of data .
Returns: True if we think the object was intended as a collection.