ModelUnitSystem

ModelValueReferences
[TypeName("Unit System")] [TypeDescription("Rhino Unit System")] public sealed class ModelUnitSystem : ModelValue
Represents a Rhino Unit System. Wraps the functionality of the UnitSystem type.

Constructors

ModelUnitSystem

#
public ModelUnitSystem()

ModelUnitSystem

#
public ModelUnitSystem(ActiveSpace space, RhinoDoc document)
space (ActiveSpace)
document (RhinoDoc)

ModelUnitSystem

#
public ModelUnitSystem(Value attributes)
attributes (ModelUnitSystem.Value)

Properties

ActiveSpace

#
public ActiveSpace ActiveSpace { get; }

BaseSystem

#
public UnitSystem BaseSystem { get; }

DisplayName

#
[Browsable(false)] public override string DisplayName { get; }

Factor

#
public double Factor { get; }

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

protected virtual string IsValidWhyNot { get; }
inherited fromModelValue
IsValidWhyNot

MetersPerUnit

#
public double MetersPerUnit { get; }

Name

#
public string Name { get; }

TypeDescription

protected string TypeDescription { get; }
inherited fromModelValue
TypeDescription

TypeName

[Browsable(false)] public virtual string TypeName { get; }
inherited fromModelValue
TypeName

Methods

AdjustDocumentUnitSystem

#
public void AdjustDocumentUnitSystem(RhinoDoc document, ActiveSpace space, bool scale = false)
document (RhinoDoc)
space (ActiveSpace)
scale (bool = false)

Cast

#
public static ModelUnitSystem Cast(object source)
source (object)

CastTo<T>

#
public override bool CastTo<T>(ref T target)
target (ref T)

Clone

protected virtual object Clone()
inherited fromModelValue

Copy

#
public static void Copy(RhinoDoc source, RhinoDoc target, ActiveSpace space)
source (RhinoDoc)
target (RhinoDoc)
space (ActiveSpace)

Equals

#
public override bool Equals(object other)
other (object)
Object.Equals

GetHashCode

#
public override int GetHashCode()

Read

#
protected internal override bool Read(GH_IReader reader)
reader (GH_IReader)
ModelValue.Read

ScriptVariable

#
protected internal override object ScriptVariable()

TooltipString

#
public override string TooltipString()

ToString

public override string ToString()
inherited fromModelValue
Object.ToString

Write

#
protected internal override bool Write(GH_IWriter writer)
writer (GH_IWriter)
ModelValue.Write

Convertors