ConfigurationRuleGetRangeValue Object Preview

Derived from: ConfigurationRuleBlockValue Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRuleGetRangeValue.h>

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.

Description

A range value for the get-side Range operator. Both bounds are always sent on the wire: hasMin / hasMax = false sends a null bound, and hasMin / hasMax = true sends that bound either as a number or as an expression. If both bounds are set, min ≤ max.

Tests whether the column's current value falls within [min, max], with each bound treated as inclusive when set or as open when not set. Values are in Fusion internal units.

Either bound can alternatively be driven by a formula string — minExpression / maxExpression — instead of the literal min / max number, mirroring how Parameter carries an expression. A bound is either a number or an expression, never both: when minExpression is non-empty it is the min bound and min is 0, and the same holds for maxExpression and max.

On a value read back from the design a bound may be reported in expression form even when it was submitted as a number, in which case the expression it carries evaluates to the value submitted. Which form a fetched bound is in is therefore something to read — whether minExpression / maxExpression is empty — rather than something to assume from the form it was written in.

Do not use this for set-side Range — set ranges have an additional increment field and different optionality semantics; use ConfigurationRuleSetRangeValue instead.

Methods

Name Description
classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

create

Creates a GetRangeValue. Both bounds are always sent on the wire; hasMin / hasMax = false sends a null bound (open below / above); hasMin / hasMax = true sends that bound as the number passed here, unless minExpression / maxExpression is set afterwards. If both bounds are set, min ≤ max. minExpression and maxExpression are not part of this factory; set them afterwards via their own property setters.

Properties

Name Description
hasMax True when a max bound is present in any form, numeric or expression; false sends a null upper bound (open above). Setting this to false also resets max to 0 and maxExpression to empty.
hasMin True when a min bound is present in any form, numeric or expression; false sends a null lower bound (open below). Setting this to false also resets min to 0 and minExpression to empty.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
max The numeric max bound, in Fusion internal units. Meaningful only when hasMax is true and maxExpression is empty; whenever maxExpression is non-empty that expression is the bound and this is always 0, both on a value you built and on one read from the design. A bound submitted as a number may be read back from the design in expression form, with maxExpression populated and this reading 0, so the reliable test for which form a fetched bound is in is whether maxExpression is empty, not which form the caller originally set. Setting max also sets hasMax to true and clears maxExpression back to empty, keeping the value you set; it does not reset max to 0 the way setting hasMax to false does.
maxExpression The optional formula string for the max bound, evaluated server-side and mirroring Parameter.expression. Empty (the default) means the max bound is the literal number in max. On a value read back from the design this may be populated for a bound that was submitted as a number, carrying an expression equivalent to it. Setting a non-empty value here also sets hasMax to true and resets max to 0, so max is always 0 while an expression is the bound; setting this to empty leaves max and hasMax as they are. Setting hasMax to false, or setting max directly, resets this to empty. Empty means "no expression bound" rather than an empty expression: the bound is submitted in its numeric form instead, so unlike an empty ConfigurationRuleExpressionValue.value an empty string here is never rejected at apply time.
min The numeric min bound, in Fusion internal units. Meaningful only when hasMin is true and minExpression is empty; whenever minExpression is non-empty that expression is the bound and this is always 0, both on a value you built and on one read from the design. A bound submitted as a number may be read back from the design in expression form, with minExpression populated and this reading 0, so the reliable test for which form a fetched bound is in is whether minExpression is empty, not which form the caller originally set. Setting min also sets hasMin to true and clears minExpression back to empty, keeping the value you set; it does not reset min to 0 the way setting hasMin to false does.
minExpression The optional formula string for the min bound, evaluated server-side and mirroring Parameter.expression. Empty (the default) means the min bound is the literal number in min. On a value read back from the design this may be populated for a bound that was submitted as a number, carrying an expression equivalent to it. Setting a non-empty value here also sets hasMin to true and resets min to 0, so min is always 0 while an expression is the bound; setting this to empty leaves min and hasMin as they are. Setting hasMin to false, or setting min directly, resets this to empty. Empty means "no expression bound" rather than an empty expression: the bound is submitted in its numeric form instead, so unlike an empty ConfigurationRuleExpressionValue.value an empty string here is never rejected at apply time.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():

Accessed From

ConfigurationRuleGetRangeValue.create

Version

Introduced in version October 2026