Skip to main content

point block

point block

This keyword creates a reference at the current location where the point block is first declared. When at point or to point are executed within the point block, the location of the point will be used.

Example:

from "std" import *

v5v = supply("5V")
gnd = dgnd()

at v5v
wire down 100
add res(360)
wire down 100

point:
at v5v
wire down 100
add res(360)
wire down 100

branch:
wire left 500
to point

wire down 100
add res(360)
wire down 200
to gnd

at point
wire right 1000 down 100
add res(360)
wire down 200
to gnd

wire down 100
add led("red") pin 2
wire down 100
to gnd
line 6:15VComponent R1: line 8:1R1360line 19:12Component R4: line 28:5R4360line 30:8GNDComponent D1: line 33:112D1redline 35:4GNDComponent R3: line 22:5R3360line 24:8GNDComponent R2: line 14:5R2360line 12:55V

If at point or to point are called within an inner block, then the location of the nearest point: block will be used.

warning

The usage of the point block is very similar to the point keyword, but have slightly different usage.