We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-05-13 09:22 AM - last edited on 2021-09-14 09:12 AM by Noemi Balogh
IF TXT = "Object ID" THEN TXT = GLOB_ID ENDIF
2021-05-17 12:05 PM
Metroworks wrote:There are always advanced and more efficient solutions to this, but if you are new to writing labels then you might like to consider the following.
Any ideas welcome. I feel like I may be reinventing the wheel here and that this should be fairly simple, but for the life of me cannot work it out!
2021-05-17 02:41 PM
2021-05-17 04:56 PM
Metroworks wrote:
I think it would be better set a global property that can be set in any object then save the objects used most often as favourites with the label text already pre-set.
2021-05-17 05:34 PM
2021-05-18 01:49 AM
DGSketcher wrote:I think this could work well - not overly complicated and will do what I need. Thanks DGSketcher, I've never noticed the STRSUB code before. Will give that a go today.
Metroworks wrote:There are always advanced and more efficient solutions to this, but if you are new to writing labels then you might like to consider the following.
Any ideas welcome. I feel like I may be reinventing the wheel here and that this should be fairly simple, but for the life of me cannot work it out!
If you don't mind just using the ID there is nothing to stop you splitting the ID text into parts. I use this for various situations e.g. categories, material names. With your ID set it to "Short name: Long name" e.g. CT: Cooktop then use STRSUB in your GDL coding, there is a good example in the GDL Reference Guide. Using that example you would then simply allocate the split text according to GLOB_SCALE.
The advantage of this is you may have a library part that serves different functions, so hard coding may not help e.g. you may need to use a kitchen appliance and give it a different name. I have in the past had to use a WM: Washing Machine as a DR: Tumble Drier. I also think this means using the ID in a Schedule doesn't look too out of place.
The disadvantage is it is dependent on user monitoring, but when you place your label, if the ID is wrong it should be picked up straight away.
As I say, not the most advanced solution but it may be sufficient for what you need.
2021-05-18 01:53 AM
Barry wrote:Thank you Barry. Fortunately you removed the offending posts before I saw them. But please everyone, I did not want to start an argument or personal attack.
OK, I have deleted a few posts that are starting to get into personal attacks.
Please just say you piece, explain it as best you can and then move on.
If there are follow up questions then please reply.
What works for one person may or may not work for others.
And probably isn't the only solution.
There usually isn't only one right answer, so lets all say what we think works and if need be we can respond with any pitfalls those ideas may have.
But please let's not start attacking each other.
Barry.