We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

TREAD_BMATS is not working?

Palawat
Advocate
Hi all,

I've been trying to figure out how to work with this "tread_bmats" for days now.

ArchiCad crashes with a label subtype with only "text2 0, 0, tread_bmats[1]" in the 2D script, when tab-selected any tread of AC's stair.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
7 REPLIES 7
It is for the whole stairs...

You should rather read "structureBMat" parameter of a selected tread by Request
n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)
ref: http://gdl.graphisoft.com/reference-guide/request-options#REQUESTOptions_section

Piotr
Palawat
Advocate
Thank you, Piotr. I've already implemented the request options since it's the only way I know that can get the info out.

Back to TREAD_BMATS, from the ref. guide (please see the attachment) there's a part with "... of selected (current) tread ..." that throw me off. It kinda suggests that you can apply the label with specific tread (tab-select). Maybe it's just a typo, a copy and paste mistake in the ref. guide.

Even with the stair selected (not tread), text2, 0, 0, tread_bmats[1] doesn't crashed but gives off 0 (zero) which I don't think it's correct.

It's even more ... I would say "surprised" ... that ArchiCad also crashed when the label is applied to a tread with nothing but the following code in 2D

if glob_elem_type = 21 then     ! Stairs
     text2, 0, 0, "stairs"
     text2 0, 1, tread_bmats[1]
else
     text2 0, 0, "not stairs"
endif
With this "if-then", the "tread_bmats" shouldn't even run when a tread is selected because glob_elem_type for tread is 22. But ArchiCad crashes anyway.

Maybe I should stay off "trade_bmats" for now.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
I would try reading this parameter...
First I would add it to a label plainly as it is as array/matrix of course

then I would place a label and check what is it's content.

Piotr
Palawat
Advocate
Sorry for the late reply, Piotr. I've tried and failed miserably.

If you or anybody has successfully used the "TREAD_BMATS" and willing to share the how-to, it'd be great and really appreciated!
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Minh Nguyen
Graphisoft Alumni
Graphisoft Alumni
Hi,

Thank you for sharing the experience and I am sorry about the experience!

Unfortunately, I'm not an expert in GDL, therefore I cannot tell what is causing the issue. I will have our Technical Support team take a look at this.

You mentioned that ARCHICAD crashes when labeling any tread using this. I'm wondering if you can forward to us one of the Bug ID generated by the Bug Reporter?
https://helpcenter.graphisoft.com/knowledgebase/64553/

Thank you very much for your help!

I wish you all a great day, and take care!

Best regards,
Minh

Minh Nguyen
Technical Support Engineer
GRAPHISOFT

Palawat
Advocate
Thank you, mnguyen. I was told that local dealer is notified.

I'd be off work for few weeks due to the current situation. Stay safe, everyone.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Minh Nguyen
Graphisoft Alumni
Graphisoft Alumni
Hi,

Thank you for the feedback. Let me know if the local support manages to solve the case with you!

Have a nice day, and stay safe!

Best regards,
Minh

Minh Nguyen
Technical Support Engineer
GRAPHISOFT