How to Create Expression Based Properties in Archicad - Merge Strings (CONCAT)

In this short tutorial, learn how to create an expression based property that merges the LENGTH x WIDTH x HEIGHT values of any object.
About CONTRABIM:
Our mission is to help Architects, Engineers and Builders navigate the complexities of designing and building with 3D Virtual Models in Archicad BIM Software, through thoughtfully produced templates and training programs to help them implement a strategic workflow, enabling them to deliver projects faster, win more work, reduce waste and increase profits.
CONTRABIM Network:
To serve our community, we've launched the CONTRABIM Network which includes access to all of our Archicad Templates, Training Programs and Tools to help fast track users learning and adoption of BIM. Join the community today to get instant access to training and downloads.
Website: www.contrabim.com/
Join: www.contrabim.com/offers/qhVA...
Blog: www.contrabim.com/blog
Linkedin: / contrabim
Facebook: / contrabim
Instagram: / contrabim
It's a very simply process, and if you're brand new to Expressions, it will help provide some useful insight.
Functions:
Merge Strings (CONCAT)
Convert Unit to String (STRCALCUNIT)
Video taken as an sample from the MEP Modeling Course.
Registration Available: www.contrabim.com/mep-modeler...
The Cheat Formula: If you get stuck, you can copy and paste this into your editor, and it SHOULD work...
CONCAT ( STRCALCUNIT ( {Property:Object\/Lamp/Length (A)} ), " L x ", STRCALCUNIT ( {Property:General Parameters/Width} ), " W x ", STRCALCUNIT ( {Property:General Parameters/Height} ), " H" )

Пікірлер: 29

  • @PrzemN
    @PrzemN3 жыл бұрын

    Hey! I have been using Archicad since version 4.16 and now watching your videos I feel like I'm discovering a new program ;)

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    That's awesome! We can all learn from each other on this program, so many different ways of using it and so many features we never try out, until we see someone else do it! Thanks for the comment

  • @szabolcssoti2810
    @szabolcssoti28103 жыл бұрын

    Brilliant! Please do a series about this very „underrated“ topic!!!

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    Thanks! I think I may take this entire subject into a full blown online course. There's so many ways we can setup these useful expressions up. Definitely will do a few more on KZread for sure!

  • @szabolcssoti2810

    @szabolcssoti2810

    3 жыл бұрын

    CONTRABIM Yep, definitely! 2-3 more vids and well planned online course sounds good!

  • @furtoonb
    @furtoonb3 жыл бұрын

    Hi John, I would chime in with the "SPLITLEFT" function too. I'm using metric units, so the number of zero decimal places might be annoying and taking up too much space. The number of decimal places are defined in the "Calculation Units and Rules" settings. It is good for scheduling, to have as exact values as possible, but it hinders readability on plans. For instance in the projects I'm usually involved, the size of the monolithic reinforced concrete beams are given as "30/40 CXX/... RC beam, bottom height +x,xx m". (For a beam that is 30 cm wide and 40 cm high) To achieve 30/40 in the annotations, I use the following expression: CONCAT ( SPLITLEFT ( STRCALCUNIT ( {Property:General Parameters/Width} * 100 ), ",", 1 ), "/", SPLITLEFT ( STRCALCUNIT ( {Property:General Parameters/Height} * 100 ), ",", 1 ) ) Note: you might need to change the "," to "." depending on your system setup (in my country we use "," for decimals). Millimeters are out of question, round to 5 cm to be sure...:)

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    Balázs Fürtön yes the split functions are super useful as well! Your right that metric and imperial would want some different formatting here. Thanks for the comment and detailed listing on the expression!

  • @KKHARCH
    @KKHARCH3 жыл бұрын

    thank you~!

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    Glad you liked it! Thanks for the comment

  • @CiaoCreativoArchitects
    @CiaoCreativoArchitects3 ай бұрын

    Thank you for this John. I'm going to try and explore this topic more. Currenty I'm trying to automate a schedule where I can pull out data (wall strenght in kN) from elements (in this case walls) which represent plywood bracings. I am going to attempt this by creating a simple formula where i can input height and lenght (no thickness for now) and associate a multiplier (don't even know this is possible >.

  • @conmes3077
    @conmes30773 жыл бұрын

    Thousand thx John....need more please 👍🏻

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    Thanks! There are so many uses with Expressions, will definitely have to do more here soon! This is just a basic entry point which hopefully helps some get started

  • @conmes3077

    @conmes3077

    3 жыл бұрын

    CONTRABIM 😊👍🏻 i‘m very bad in this 🤪

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    @@conmes3077 I added a cheat copy/paste option there at the bottom of the description in case you get stuck!

  • @conmes3077

    @conmes3077

    3 жыл бұрын

    CONTRABIM thx buddy 👍🏻

  • @szabolcssoti2810

    @szabolcssoti2810

    3 жыл бұрын

    Hey conmes, hope your 3D mouse is working well now 😉

  • @drewcaddy
    @drewcaddy2 жыл бұрын

    Hi John, great video! Is there any way to have the expression automatically update, so we don’t have to click the calculate button, or an have it show up automatically in the settings dialogue?

  • @CONTRABIM

    @CONTRABIM

    2 жыл бұрын

    Hi Drew, thanks for the question. The expression based value should always update automatically, but when viewing in the info box you sometimes will need to calculate it to see the results. When listing into an interactive schedule, you'll see it is always updated automatically when parameters change.

  • @zoltanszabo4242
    @zoltanszabo42422 жыл бұрын

    Thanks for the video! I'm wondering how to add a line break in a string. To use your example, have the property displayed like this: L: 6' W: 4' H: 2'-9 1/2"

  • @CONTRABIM

    @CONTRABIM

    2 жыл бұрын

    I'm not sure if it's possible to add line breaks. If you are creating a label for a floorplan, you could do this easily with autotext, but I don't believe their is a line break text editor.

  • @zoltanszabo4242

    @zoltanszabo4242

    2 жыл бұрын

    @@CONTRABIM That's what I figured. :( I needed the property to show in schedule. Actually this would've been a manual solution to a feature not in ArchiCAD 23: to align text to the top of the cell. As weird as it sounds, it doesn't seem to be an option. BTW: the closest I got to line breaks were adding a tab character. With limited text width that usually creates another line.

  • @richy7tube
    @richy7tube Жыл бұрын

    Is there any way to get this same thing to work for a column? I can get the width & height but not seeing how I might get the length.

  • @CONTRABIM

    @CONTRABIM

    Жыл бұрын

    Thanks for the question! Yes find the column parameters "Core Width" x "Core Height / Diameter" for the Profile, then add the General Parameter for Height (Vertical Length of the Column).

  • @richy7tube

    @richy7tube

    Жыл бұрын

    @@CONTRABIM That works perfectly! Do you teach about "coding" expressions in any of your courses?

  • @CONTRABIM

    @CONTRABIM

    Жыл бұрын

    @@richy7tube I've been thinking about assembling a dedicated course on Expression based properties. Thanks for your comment, it's inspiring me to take action on that quicker! It'll be included in the CONTRABIM Membership site this year for sure. Thanks!

  • @LuSiD
    @LuSiD5 ай бұрын

    Brilliant Thanks My lengths are coming in metres - how do I make them millimetres like the rest of my lengths....? Oh NM its in the comments thanks again

  • @yogaadi7108
    @yogaadi71083 жыл бұрын

    How to change font in expression editor?

  • @CONTRABIM

    @CONTRABIM

    3 жыл бұрын

    Hello. The font by default should be the "Arial Unicode MS" on windows, and there is not a specific option to change this font in the editor. If you find that the font has changed, likely the cause is related to the installation of a new font type on your computer, and Archicad is getting confused and finding that one instead of the right one. If this is the case, you could try removing the newly added one, and hopefuly that would reset it back to default. I know this is a known issue that hopefully Graphisoft can resolve in the next release. I've run into it a few times myself when a stylized font shows up in the editor out of nowhere, but it eventually seems to go back.

  • @yogaadi7108

    @yogaadi7108

    3 жыл бұрын

    @@CONTRABIM Thankyou 👍

Келесі