Hi all,
I'm hoping this is an easy one - I can't seem to find documentation on this on the CGA resource page.
I'm trying to measure the lengths of two edges of a lot.
I can REPORT the lengths of two edges using the geometry.boundaryLength() function like this:
Lot-->
comp(e) { 0 : Front | 1 : Side}
Front-->
report("front", geometry.boundaryLength())
Side-->
report("side", geometry.boundaryLength())
However, what if I want to use those two lengths in another rule?
The intention is to create an L shape, but I want to first measure the length of the edge and then subtract another constant (block_width) from that:
LShapedFootprint-->
shapeL((MEASUREDFRONTLENGTH - block_width), (MEASUREDSIDELENGTH - block_width) {shape : LFootprint | remainder : NIL }
How do I get MEASUREDFRONTLENGTH and MEASUREDSIDELENGTH, to plug into this rule?
--
Any help is much appreciated!