Find the next step in your career as a Graphisoft Certified BIM Manager!

Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

Just finished my (so far) most complex expression property

Mats_Knutsson
Advisor

The expression is checking that we a correct combo of layer and classification. The expression takes into account that the classification can have a deeper level than the layer (they start kind of with the same coding). A layer could be A-15--- and the corresponding classification 15.SG so there are a few tweaks to extract and align something that can be compared. Basically the expression looks at the layer and how many figures there are and from that compare to equal number of figures from the classification. Good to have finished this off just before the week-end 🙂 as a part of our internal quality checking methods. It would be so nice to have a more graphical editor for the expressions when they are long like this.

 

2022-05-25_16-28-04.png

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
5 REPLIES 5
outpostarc
Participant

ok. That's impressive! It would be cool to see how it works. I just did the simple one to round up the occupant loads to the next round number.

martinij
Booster

Wow! Well done.

I always get to frustrated to complete expressions like that. Even when I know that it is possible.


As you say it would be nice to have a more graphical editor or at least some visual help to read the expression. It's nearly impossible to read a chunk of expression like that so it's hard to learn from others work. That's to bad because it has so much potential!

Martin Isak Jansen
(I'm the one everyone at my company asks the tech questions)
www.artec.no

As you are working on the expression, feel free to separate it over multiple lines with carriage returns.

Makes it much easier to read.

 

BarryKelly_0-1653638502371.png

 

It will automatically go back to a single line when you OK it.

Which is a bit annoying when you want to edit it further.

You have to spread it out again to make sense of it.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
jl_lt
Ace

Hi! as i understand it what you are looking for with this little monster is to check if the layer AND the classification have the same number of elements, is that correct?

Mats_Knutsson
Advisor

Regarding Barrys tip I do it another way. I create the individual parts as their own properties and give them understandable names. Then I populate the higher level expressions with the understandable names and when I've reached what I want I copy the individual expression and substitute the understandable names with the expression. I can't do it another way. Using line breaks as Barry suggests works for me with smaller expressions but the dollar question is why  GS doesn't give us some formatting help (same with GDL).

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.