We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2013-11-29 11:25 AM
2013-11-29 07:19 PM
hsid= 1 hsid=hsid+1 !Base HOTSPOT2 0,0, hsid, A, 1 !<--- hotspot now controls A, not your other variable hsid=hsid+1 !Move HOTSPOT2 A,0, hsid, A, 2 !<--- hotspot now controls A, not your other variable hsid=hsid+1 !Vector HOTSPOT2 -1,0, hsid, A, 3 !<--- hotspot now controls A, not your other variable line2 0,0, a,0 !<--- so you can see the overall size of the object !HOW MANY RECTANGLES??? !<--- variable to store how many times to repeat subroutine howMany = INT(A/bredde) !<--- integer!!! FOR i=1 TO howMany !<--- this is one LOOP you can use. Check documentation. GOSUB "RECTANGLE SUB" !<--- calling the subroutine ADD2 bredde,0 !<--- moving the origin to draw next iteration, size from your parameter NEXT i DEL NSP !<--- return origin to zero END !<--- END of the 2D script, so you can use subroutines "RECTANGLE SUB": !<--- you call this each loop rect2 0,0,bredde,dybde RETURN !<--- return from subroutineHope this helps. Use it as a starting point. You would need extra code to make the last part adjust to the remaining length of the object; and you would need to apply the same principle to your 3D script.
2013-12-02 09:35 AM
2013-12-02 05:36 PM
2013-12-04 11:47 AM
2013-12-04 02:28 PM
omar wrote:One option is to create a new parameter that is equal to the "howMany" integer (PARAMETERS command), then adding this parameter as part of your schedule.
In the schedules it says that it is one Object even though it is many Fields. Is it possible to have AC Count the Fields in the schedueles?
2013-12-06 08:50 AM
2013-12-06 02:49 PM
2013-12-11 11:42 AM