# Lot setback by given distance

395
0
08-31-2021 01:33 AM
by
New Contributor III

Hello guys,

I want to apply my rule which is every north edge setback to south to each lots in a specific area.

For that, I tried to make it with Setback operation and Translate operation but I realize the operations cant cover that I want to make it or maybe I just dont know what is the way.

So, please review my 2 questions as below and let me know how I can solve the problems!

1. Setback operation

By using [selector (world.north)] of [setback operation], I was trying to find answers but it couldn’t bring me successful result.

And I guess the reasons are as below.

First, the setback operation only recognized [North] as a single edge according to the shape (or direction) of the lot. (Fig. A)

(Marked in red part : Setback area)

Second, offset is performed to [vertically (90°)] from [ North edges] But actually what I want to make it is offset [vertically (south)] from each [North vertices].

2. Translate operation

So, I make lot moves the given distance to the south direction and the result seems that correctly move to right direction and distance. 😊 (Fig. B)

<Figure B>

However, the lot (blue) is over the range of the initial lot (red), so it can not be used to my study.

My original goal is to select (recognize) the hatched area in Fig. C and script a rule based on it.

<Figure C>

S.O.S!!!!!

Thank you.

My CGA code is below :

=======

A -->
setback(10){ world.north : Coloring("Red") | remainder :X. }

B -->
Coloring("Red")
Translate

Translate -->
translate(rel,world,0,0,15)
Coloring("Blue")

Coloring(idx) -->
case idx == "Red" : color("#fe6568")
case idx == "Blue" : color("#2e6dff")
else : color("#fffff")

Tags (4)
0 Replies