2023-08-28 11:21 PM
I am hitting roadblocks with listing a variable's value when it sometimes has one or two conditions to determine the answer. I am trying a Sequence, but I know I am laying it out incorrectly, and I can not figure it out...
I realize that by moving the Sequence around in order, the first one will always cancel out the remaining. What is the proper way to structure this?
For example (each line is a sequence):
2023-08-29 12:07 AM
Sequences are generally used if a evaluated attribute, in a series, may be not be applicable to all of the targeted types. In this case, you should be using a IFS instead. The return variable must be the same type for all returns.
2023-08-29 01:45 AM
Getting there but still have issues trying to get a LEN value for the variable...
IFS ( Level = "1", Catergory = "A", TRUE, VARIABLE)
2023-08-29 03:17 AM
At this point, I have no idea as to what your trying to accomplish. Suggest you review the expression help. Are you using custom properties? Also AFAIK, LEN returns a number? More specific details needed. Any returned value must match that selected in the expression type. What variable are you using, etc. ?
maybe??
IFS ( Home Story Number = 1, LEN("ABC") ) ==== returns 3
2023-08-29 03:30 AM
Thank you for the replies, I will read more into examples/help, and I will eventually get.
2023-08-31 02:04 PM
Thinking about this again on my way to the office...
To be a little more detailed. The outcome can depend on 1 or 2 variables depending on the circumstance. So, I am having an issue with how to write the expression for my Reflected Ceiling Plan Legend; we have numerous levels and trays. So, to label my different ceiling heights/materials within a single room on the legend, the outcome will depend on just the material in one area and another area, the material, and the section/step of the tray; I created a property group to grab the info to specify the variables. I can understand this labeling method might be wrong or confusing to some, but I am trying to make my employer happy since he writes the checks. 😁
If the needed command is IFS, I am still structuring the expression wrong. I am certain I am making it harder than it should be, and overthinking it, but the light bulb hasn't turned on yet in my head. It is still warming up.
2023-08-31 03:15 PM
Expressions can only work with the properties of a single object to which that expression is assigned. Therefore: if you are gathering info (custom properties) from different objects in a room, you can not use a expression. You must use either the C++ add-on or a Python script. Both use manual updates. Another possibility is to create a schedule, and export all the properties to excel, do the calculations there and import back into Archicad. Although, if you you only have a few labels, just update manually?
2023-08-31 03:22 PM
Replying to this, if I understood correctly:
@poco2013 wrote:
Expressions can only work with the properties of a single object to which that expression is assigned.
The properties will be from a single object for each entry, but it could refer to complex profiled beams or slabs. It will not pull info from two different objects for a single entry.