I've question for you guys about script for MEP label.
Does it possible to create label that can show lenght of element (Pipe, Duct or Cable tray)? Like for Property Value in popup meny of "Property Label" can be shown also Parameters of some element?
Jo napot kivanok Laszlo and thanks for answering me.
I've try but it doesn't show me real lenght, it's only take values from A B and ZZYZX (every time is 100 100 25)
For MEP length is written like MEP_StraightLenght instead ZZYZX, so I would like to know how to re-define the script to take values from that parameter and is it possible?
I don't think this is possible. It does not matter if you modify the script of the MEP Element, because Properties have a limitation: they cannot get values from parameters of Library parts. And the Property Label can only list the values of Properties.
Similarly, Labels cannot display the values of parameters of Library parts. Only in Schedules can you do that, but not in Labels.
You should try other available Properties to see if one of them possibly lists the value you are looking for.
.................................................................................................... Laszlo Nagy, Lead Moderator, Community Admin Get Archicad Tips at https://twitter.com/laszlonagy AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD 2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25 Loving Archicad since 1995
Labels can be scripted to read particular parameters from objects, but what works for one object may not work for others if the parameters are different.
You have to script a label to look for a particular parameter.
You are right, Barry, sorry, I forgot about the possibility of creating your own Label and scripting it to read the parameter values of its associated library part. If I am not mistaken, you would have to use the
How do I use the script in a label to pull the values from the MEP parts in AC24. Sorry I don't understand the scripting language. Is there a article in Help that would help with this? I have looked and i still don't understand.
I can get to the parameters in the schedule but not in the labels as stated above. The MEP parts have different parameters for the Height, Width and length so we can't use the A, B, ZZYZX.
I am also trying to use the parameters to pull the element info and then place it in the label, but don't know how to use the function there either.
Gerald Acton "Gary"
Acton Design Services
Windows 10 PRO 64 bit
i7-5820K @ 3.30ghz 32GB Ram
Nvidia GeForce GTX 970 4GB Ram
AC 19 - AC 24