& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Use code blocks to set parameter minimums, maximums, and increments in the Informed Design Codeblocks Rule Editor.
Type:
Tutorial
Length:
6 min.
In Informed Design, code blocks can be used to set parameter minimums, maximums, and increments, as well as to edit labels and add messages.
Adopted parameters can be configured to include a minimum and maximum value range by applying the Min and Max functions within the parameter blocks.
Begin with blocks setting lists of values already created, as shown below.
To create a minimum and maximum value range for the Nominal Wall Height parameter:
The minimum and maximum value range is displayed as an informational label below the Nominal Wall Height input.
The parameter resets to the maximum value, with a message that explains the adjustment.
To set a Min and Max for the Nominal Wall Length parameter:
The minimum and maximum value range appears below the Nominal Wall Length input, and testing values outside the range confirms that it is working correctly.
Next, use an increment value in a parameter block to specify the increments available within the minimum and maximum value range.
The increment information displays below the input controls, and using the up and down arrows verifies that the increments are working as intended.
Next, adjust the default form labels by removing the underscores and applying a reader-friendly label:
The parameter block automatically removes the Math Number block, because it is the incorrect data type.
Now, update the Stud Spacing parameter to be read-only and remove the underscore from its label:
The block automatically removes the Math Number block, prompting placement of the correct data type.
The label updates, and the Stud Spacing parameter is now read-only.
To control the visibility of parameters in the form, based on a specified condition:
Next, add messages to the parameter controls:
Next, add an error message to the parameter input, based on a specific condition:
When the condition is true, the Wall Length parameter in the form turns red and displays the specified message.
In summary, there are various ways to adjust and control parameters using code blocks. You can define minimums, maximums, and increments for acceptable parameter values, customize parameter labels, and set parameters to be read-only or not visible. Furthermore, you can use code blocks to add dynamic information and error messages that display when specific conditions are met for parameters.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Sign in for the best experience
Save your progress
Get access to courses
Receive personalized recommendations
May we collect and use your data?
Learn more about the Third Party Services we use and our Privacy Statement.May we collect and use your data to tailor your experience?
Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.