Forum Replies Created
-
AuthorPosts
-
Balázs FürtönParticipant
Thank you, this eliminated my last warning!:)
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantInitially what I’m doing is loading the wall skin list values to a new array: originally it is stored in a fixed one with ?? rows. I usually have less than that, and when I want to display elements from the original, I only want to see the filled ones.
So to trim, I compare the values against zero. When it is not zero, the record gets copied – this is where the problem lies: I’m comparing a real number against zero. On the Achicad-Talk forum I found threads regarding this problem, and it seems there is not much to do about it, rather than eliminating exact comparisons and to replace them by a “smaller than” relation.
I’m not that comfortable with programming, so I am not sure whether this is the way to go, or a different approach is more sufficient.
Edit: Probably I could use a “while” statement with the original array, with a “bigger than” comparison.
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantThe links are no longer alive, it seems.
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantIt is caused by the BBCode formatting: [ i ] stands for italic, read more here: https://gdl.graphisoft.com/forum-functions
Thank you Gergo, I will keep this in mind. Perhaps I should name my running indeces appropriately…:)
I rewrote the part to pull all physical properties in a single request, now it works!
From the GDL Guide it wasn’t clear that you don’t request the specific values by name, rather it’s an array that will always contain all the values in the given order.Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipant[ i ] doesn’t show up for me in the posts (Chrome, Windows). I thought it’s a problem with the code block in my post, but plain text is wrong as well.
_wallSkins[ 3 ] should be _wallSkins[ i ][ 3 ], etc.
You need to use a single request with the exact number of variables, to get all the physical properties in one step:
Thanks, I will try to get them at once.
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantActually it’s not there:
e.g. these lines from above:
! thermal conductivity
thermCond = REQUEST{2} (“Building_Material_info”, _wallSkins[1], “gs_bmat_physical_properties”, thermalConductivity)
_wallSkins[3] = thermalConductivity
text2 dist_thermCond,-i*0.1, STR (“%m”, _wallSkins[3]) + ” W/mK”but the _wallSkins array is two dimensional, so instead e.g. _wallSkins[3] it should look like _wallSkins[i][3], etc.
! thermal conductivity
thermCond = REQUEST{2} (“Building_Material_info”, _wallSkins[i][1], “gs_bmat_physical_properties”, thermalConductivity)
_wallSkins[i][3] = thermalConductivity
text2 dist_thermCond,-i*0.1, STR (“%m”, _wallSkins[i][3]) + ” W/mK”I don’t know why it happened. Can I edit an older post, or is it disabled by design?
—–
In the previous post, I asked how to obtain the description or manufacturer: I had a problem with the apostrophes, I didn’t notice, that they were different… The GDL error said ,,missing comma”, but apparently the upper ones count as comma as well.
The physical properties apart from conductivity are still a mistery though.
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantOh, is it just me, that the code block gets messed up and renders unreadable? (macOS, Safari)
Another thing, that remains blurry: how do I request the bMat description or manufacturer?
! description
matDescription = REQUEST{2} (“Building_Material_info”, _wallSkins[1], “gs_bmat_description”)
_wallSkins[3] = matDescriptionIn my head the requested string is now stored in the array I’m building (_wallSkins), and I should be able to use it in a text2 command. It doesn’t work though.
Any suggestions?
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
Balázs FürtönParticipantJoachim,
could you please link directly a site which contains further information about GDLnucleus?
The above linked site mentions b-prisma or Beister Software’s online shop where it is available.
I’ve wandered through both sites, but couldn’t manage to find any information. Perhaps it’s due to my rusty german, but I would really appreciate if you could help me out.Thank you!
Balazs Furton
Student of architecture @ Budapest University of Technology and Economics
-
AuthorPosts