The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussion of non-graphical data: Properties, Property Expressions, Classifications, Interactive Schedules

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy

User avatar
By fuzzytnth3
#301702
I want to create a Property so I can Label some Composite Walls but I would like to "Trim" off a Revision Number. We add to our Composite Names (the Rev Number lets us know we are using the most recent version as we have a number of Models using a number of Modules)

So for example our Composite name is "LIN_01a-02" where the "-02" is the Revision Number. So I want an Expression that trims off the "-02" and displays a result of "LIN_01a"

I've tried various Text function but ArchiCAD kicks up the message below

https://my.pcloud.com/publink/show?code ... ss57pSlguy

Any idea how I can get this to work?
User avatar
By fuzzytnth3
#301705
Well I got it to work but not in a clever way that can cope with having longer or shorter Composite names
Code: Select all
LEFT ( Composite Structure, 7 )
The above works but only if the Composite name is 7 characters long. What I would like to do is be able to look for the Hyphen in the Composite name and display everything to the left of the Hyphen. I remember you can do this with IFC properties but I've not managed to get Expressions to work like that.

So if anyone has sussed how to do that then I would be very grateful if you could let me know how :)
User avatar
By fuzzytnth3
#301732
Brilliant thank you that is exactly what I was after :D