| OCR Text |
Show 26 The 'foreach' statement iterates through each path, the name of each p·ath is an attached property, and each path is an object with methods such as 'length' and 'width'. Introduction to ACRE Statements One additional ACRE statement is required to precede the statements in the example, and it is the statement to read a GDSII stream file. It is simply, "read_stream 3stripes.gds." This command causes ACRE to load one data cell from the GDSII file because ACRE can not handle hierarchy. This command puts the graphical data in a two-dimensional data cell with the first key in the data sort being the layer. Data is then sorted on a diagonal stripe left to right, because the second key is the (x - y) of the upper left corner of the bounding window of the geometry being read from stream. A diagonal stripe is used so that neither a very wide nor a very tall cell will cause too much data to be held in a temporary list in a pair-wise search. Path names and node names may be imported as properties of the geometries, and point nodes may also be imported as text on a layer. Where the coordinates of the text intersect a geometry on the same layer as the text, that defines a node. Internally all kinds of text are kept in a single table where strings are mapped to id's, and it is an id that is maintained with a geometry when it has a text property attached. The 'foreach' iterator sequences through some type of data, and in this case it is iterating through all the paths of the data cell. This iterator takes one to |