Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

jl_lt
Expert

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.

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!