Literal Type    

Literal types are types that gather single value parameters (string, integer, real, boolean, dimensions).

They can be used in conjunction with the following attributes:
 

AuthorizedValues Constant InferiorRange
Show SuperiorRange ToleranceMax
ToleranceMin    

Real.ToleranceMin

Attribute letting you  access the minimum tolerance that can be applied to parameters of type Length and Angle.

Real.ToleranceMax

Attribute letting you access the maximum tolerance that can be applied to parameters of type Length and Angle.

Real.InferiorRange

Attribute used to apply an inferior range to a real number.

Real.2 =Real.1 .InferiorRange

Real.SuperiorRange

Attribute used to apply a superior range to a real number.

Real.2 =Real.1 .SuperiorRange

Literal.Constant

Attribute used to indicate if a value can be modified or not by the end-user i.e. if the value is locked or not. This attribute is Read/Write.

 /* valuates R with the constantness of P */
R = P.Constant
 

Literal.Show

Attribute used to indicate if a parameter must be hidden or shown in the tree view. This attribute is Read/Write.

Literal.AuthorizedValues

Attribute used to indicate if a value can be modified or not by a end-user.  This attribute is Read/Write.

Expression1 (P: #In String)
{  /* Accesses the authorized values of P and print them */
    let L (List)
    let s = ""
    L = P.AuthorizedValues for s inside L
    {
    Message ("authorized value #",s)
    }
}