This is the reinforcement half of the command channel. The general vocabulary — opening a project, moving between levels and boards, making and editing elements — is in Driving AutoStruct from TCL (structural-elements-tcl.tex), and the foundation commands are in Founding a storey from TCL (foundations-tcl.tex). Nothing here repeats either.
What follows is what shows a designed bar: the developed elevations (αναπτύγματα, which gives the command anaptygma its name) of the beam runs, which is the drawing an engineer reads the steel off, and the commands that put one in front of him.
The bars are designed in the design stage, which writes what it designed into <level>.jsonDetails. Every command here reads that document, and every one of them needs the level’s slabs to have been drawn at least once. A level whose details predate the runs being recorded says so and draws nothing:
autostruct::anaptygma ERR this level’s details predate the runs; draw its slabs again
The unit is a continuous run, not a beam. The bars are designed along runs and their spans, and a run is unrolled onto a straight axis of its own developed length. A beam on its own is half a sentence: its steel carries on into the next span and is designed across the whole of it.
So a run is what can be drawn, and what autostruct::anaptygma lists. Each answers its own two ends, so that it can be matched to the beams on the board by geometry rather than by an index — the rule a slab already lives by, because elements are renumbered on every run and a number is not a name.
With no argument it lists the level’s runs: the place in the list, the run’s two ends, its developed length, how many spans it has and how many bars.
autostruct::anaptygma OK {1 19.475 6.45 19.475 15.75 9.3 2 20} {2 ...} ...
With an argument it shows one, which is a mode and not an addition to the plan — see below. Three forms:
|
autostruct::anaptygma 1 |
the run at that place in the list. Exact and repeatable, which is what a script wants. |
|
autostruct::anaptygma 19.475 10.0 |
the run nearest that point, measured to the run as a segment rather than to its ends, within half a metre. This is what a person means, having a beam under the cursor. |
|
autostruct::anaptygma off |
the plan comes back, and the view with it. |
The same thing anaptygma off does, said the way a person says it: he is looking at a development of a beam run and wants his plan back.
autostruct::plan OK back
It answers back when it put something away and already when the plan was what was showing. Asking for the plan while the plan is there is not an error — “put me back” is satisfied by being there.
A show answers what it drew: the same six numbers as the listing, the span and bar counts, and finally how many items it laid — every line and every piece of text. That last number is the only thing about a drawing a script can ask.
autostruct::anaptygma 1 OK {1 19.475 6.45 19.475 15.75 9.3 2 20 130}
Only a beam run has a developed elevation. A column, a slab and a footing have no run to unroll; a column’s detail is a section drawn beside it, which is what the Draft board shows, and a slab’s and a footing’s bars are drawn where they lie on the plan.
What they get is the half of a developed elevation that is about the bars: each shape flattened, its segment lengths written along it and its own <n>Ø<d> L=… underneath — a bar schedule, one bar to a rung. L= is the bar’s length in metres: each straight run of the bar counted once, so where a support is narrower than the cover and the bar stops short of its face, the step back is not counted as steel.
autostruct::anaptygma column the level’s columns and their bar counts autostruct::anaptygma column 12 column 12’s bars autostruct::anaptygma slab 25 autostruct::anaptygma footing 3
Two things to know about it:
A wall with holes has its elevation beside its schedule: the wall seen face on, the storey high and as long as the wall, from its first end, with its length and each hole’s place and width dimensioned beneath. Each designed hole is drawn as the plan draws it, its outline and both diagonals, with HOLE <n> over it, and its bars where they lie: the side bars beside it, centred on its height and running floor to ceiling where the code wants them the storey high; the bars above it and below, and none below a door; and the hoops round the side bars, seen edge on, one line at each. Each bar is as long as its line in the schedule. A wall whose storey height is not known is drawn to a little over its highest hole. The answer then ends with elevation, the elevation’s left edge, where its wall’s first end is, its top at nought, and the wall’s height as drawn:
autostruct::anaptygma column 25 OK {25 14 160 elevation 7.42 3.2}
A floor plan cannot show what is inside a beam, so a developed elevation is a mode the whole drawing is switched into, with a view window of its own:
It is drawn on whichever board is in front, so a person can ask for one while looking at the plan he picked the beam off.
The elevation first: the run unrolled from nought to its length, each span’s soffit at its own depth, the supports, the dimension chains beneath, and the stirrups said a quarter of the way in from each support.
Then the bars. Each is drawn twice. Once in its place inside the beam, hard against the cover, with no labels — it is there to be seen against the section and not to be read. Then again out under the beam, with its segment lengths written along it and its own label underneath:
3Ø20 L=1.88 bottom layer
The layer is said in the language the program speaks: top layer or bottom layer in English, άνω στρώση or κάτω στρώση in Greek. A code whose own words carry the layer (TOP, BOT.) gets no second phrase. The second copy is the schedule, and it is the reason a developed elevation exists.
The rungs are spaced by the bars, not by the beam. The copies hang on a ladder below the beam, two interleaved, and each rung is sized to the bars on it, so a deep foundation beam’s schedule is as compact as a storey beam’s.
The steel is drawn in its own colour and its own weight, heavier than anything else on the sheet, as on any reinforcement drawing: the steel is what the sheet is about and the concrete round it is context.
Six buttons on the Details tab, of two kinds.
Four of them offer. The command goes into the command line with the caret after it and the console waits for one click on the drawing. The point finds the nearest element of that kind and the command is sent. A number typed instead does just as well.
|
Beam Reinforcement |
offers autostruct::anaptygma. |
|
Column Reinforcement |
offers autostruct::anaptygma column. |
|
Slab Reinforcement |
offers autostruct::anaptygma slab. |
|
Footing Reinforcement |
offers autostruct::anaptygma footing. |
And two run at once:
|
Reinforcement |
autostruct::anaptygma selected — the run the selected beam belongs to. |
|
Plan |
autostruct::plan — back to the ordinary drawing. It also lets go of an offer left standing. |
All four are found by a click. A run answers its two ends, so a point on it names it. A column is found by its position, a slab by its centre of gravity and a footing by the corner its bars sweep from. A number typed instead still works.
And a number is not a name. The same column can be number 1 in one run of a level and 37 in the next; a beam’s position in a list changes after a Create Model. Marks and numbers both move, which is why every one of these is matched by geometry.
An offer left standing swallows the next click. Escape, or any button that runs, lets it go.
A button supplies an argument and nothing else. Both kinds go through the Control Board and run the command, so everything that can be pressed can be typed and scripted — the rule the right-click Measure already follows.
selected finds a beam and no other kind: only a run can be matched by the selection. Asked for another kind, the command says so itself.
One thing to expect when driving these: showing a development hides every item on the board, so nothing can be selected until Plan has put it back. That is the mode doing its job.
Everything above is a primitive: one command, one job, no knowledge of any other. They are what a script is written against and what everything else is built from.
Beside them are the shortcuts — ordinary TCL on top of the primitives, part of the application and present in every console:
|
an |
the level’s runs, one to a line, in columns that can be read — where each begins and ends, how long it is, how many spans and how many bars. |
|
an n |
show the nth. |
|
an x y |
show the one nearest that point. |
|
anb n |
show the run beam n belongs to. |
|
an column |
the columns and their bar counts; likewise an slab and an footing. |
|
anc n |
column n’s bars. ans n a slab’s, anf n a footing’s. |
|
plan |
back to the ordinary drawing. |
|
autostruct::anaptygma selected |
the run the selected beam belongs to; what the Reinforcement button runs. |
They add no capability of their own — anything they do can be done by hand with the primitives, more slowly.
anb is the one worth having. A run is not a beam, and runs are renumbered on every computation, so run 5 is not a name anybody can carry from one computation to the next. B 52 is, and it is written on the drawing in front of him. So anb asks the beam where it is and hands the point to the form of the command that matches by geometry.
autostruct::export::bars writes the layouts to a pdf, a sheet each, in one document.
|
autostruct::export::bars |
every layout the level has — the runs, then the columns, the slabs and the footings. |
|
autostruct::export::bars beam |
every beam run. Likewise column, slab, footing. |
|
autostruct::export::bars column 12 |
one of them. |
|
autostruct::export::bars beam 3 /tmp/a.pdf |
and where to put it. |
With no file it writes <project>/publish/<level> bars.pdf — beside the formwork plan autostruct::export::pdf writes, and never into drawings/, which the application takes for its own documents. The reply is the file and the number of sheets. pdfb is the shorthand.
What reaches the paper is what the screen would have shown for each layout, and the plan is put back afterwards whatever happened. An element with no bars is left out rather than written blank, and each sheet is sized to its own layout.