Informed Design enables building product manufacturers to publish configurable manufacturing models, in turn making it possible for architectural designers to configure, generate, and insert those models as loadable Revit families directly into their Revit projects.
The Informed Design for Inventor Product Definition editor allows publishers to add logic using Codeblocks to ensure that all inputs result in manufacturable variants.
In this article, we’ll learn how to add comments in the Codeblocks workspace of a Product definition to document your code and communicate your intent.
Why should I add comments to my code?
Adding comments to your code is a good way to communicate the thinking behind the code. This can be invaluable when editing the code or diagnosing issues.
You never know; it might be YOU who has to edit the code in three months' time… will you remember what you were thinking!
To add a comment using the comment Codeblock:
Note: The number of characters in your comment is not limited, but only the first 50 characters will be displayed. Characters beyond 50 will be truncated with an ellipses (three dots '...').
Click here to visit the Autodesk Informed Design help entry for comment codeblocks
To add a comment to any Codeblock:
Note: The comment will remain visible until you click on the question mark symbol again.
Codeblocks in Informed Design provide a flexible and intuitive way to define Product configuration options and limits and provide feedback to your Revit customers as they configure and place your product variants.
Click here for more information on codeblock best practices.