Monday
I am struggling with a problem that I find only on the Wall accessory add-on (not the ROOF or the SLAB):
I get the wall points from ac_bot_poly and ac_top_poly.
I try to create an array that returns the contour line defined by these points.
I decompose this array into two simpler arrays lineX and lineY each having the X or Y coordinate of the previous array.
I use them in a FOR NEXT cicle to create a hotspot at each point.
Although the cicle goes from 1 to 4 (the number of points on a regular wall) It always breaks and returns an error: " index value greater than array dimension" before it reaches the end of the cicle.
I don't understand what causes this error...
If someone whats to try to solve or explain this, I attach an example object (done in ARCHICAD 26).
It must be used with the GS Wall Accessory
I have also tried using WHILE ENDWHILE and REPEAT UNTIL cicles and always get the same error.
As this object shows, although vardim1(lineX) returns 4, the code returns an error "index value greater than array dimension" when N is just N = 2!!
Monday
I will download and take a look, I do not have issues translating that data.
Look in the wall framing accessory master script, there is code there that gets you everything I believe you are after