Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Thanks for your submission and votes on this idea! We are evaluating where this request falls into our roadmap and will provide an update when we have made a decision.
I would like to be able to reference text based parameters in conditional statements based on if they contain certain text. For example have a statement that says IF(Description=*TEXT*,"DESCRIPTION","NEED INPUT") where the asterisks are wildcards; this would search the parameter Description and if it contains the letter TEXT in that order at any point it would put "DESCRIPTION" as the response. If the Description does not contain the letters TEXT it would return "NEED INPUT". This does have the downside of returning false positives such as if Description contained "CONTEXT REQUIRED" it would return "DESCRIPTION". But it opens up a lot more doors than pit traps in my opinion.
Good call. I didn't see this older post when I searched. However it is currently under review. and thus ineligible for thumb-up. But hopefully that means it's moving on to the next stage of development.
However it is currently under review. and thus ineligible for thumb-up.
Actually that's not the case. I just voted for it myself. If the vote button is greyed out for you, then you must've already voted for it (and likely forgot).
I would like to create text strings to poulate the description field as above but include a string conversion for number or unit based parameters. Perhaps string converters to keep the project units and string converters to strip them?
being able to drive a text parameter based on a formula (for example creating a description field based on actual parameter values like dimensions, materials, yes/no parameters, ...)
being able to use a text parameter inside a formula (if textfield="this text",...). Additional benefits would be if we have wildcard operators.
As an aside, syntactically speaking using generic text in formulas is tricky. Text with spaces will have to be quoted. What about text with spaces and quote characters? It's not trivial. Certainly variable names should not be allowed to have spaces or any fruity characters in them. There is a reason why this convention is used by all programming languages that I know (Perl, Python. Ruby, C, C++, Javascript, Java, etc)
Convenience always has its price. I think that most people who use Revit are intelligent enough to be able to adapt to certain generally accepted conventions for dealing with formulas and code in general. And if they're not then they have no business using those features. They will just shoot themselves in the foot and then start requesting safety features etc.
It would also be super helpful if we could subtract characters in addition to do concatenations.
For example: I would like to subtract prefixes from my sheet numbers, (not showing the suffix, or only showing the suffix). In theory we could split these up in separate parameters but that's not always feasible (no duplicate sheet numbers allowed).
If we could subtract characters we would do F1-A-100.00 as sheetnumber, but only show A-100 in the callouts/titleblock as the other stuff is not relevant in those scenarios.
We really need a way to concatenate string and values in formulas. For example, in HVAC, for diffuser/grille schedules, it is very common to have a column that lists the face dimension of the elements. However, in some cases, the face dimension is a diameter and in other cases it will be a rectangular dimension.
So we need a calculated field that does something like this:
We need this function everywhere that we can use formulas and not just in schedules.
This function has been requested for years. Other typical text handling functions are also needed, but I don't want to muck up the thread.
Frankly, AutoCAD MEP is superior in this regard because it allows for VBScript in their property set data which makes the data more usable and presentable.
Inventor had the ability to reverence VBA functions in their parameters to do cals like this. Some of these core concepts should really be leveraged across all the product lines.
- concatenate: fill in a text parameter based on other parameters (text, numbers, lengths, ...)
- equality check: drive another parameter (text, numbers, lengths, ...) based on an quality check of a text field (is empty or equals a specific value)
- extract characters (from position X to position Y) This will help with accommodating numbering standards etc (being able to have one field and pull it apart in prefix+middle+suffix.