Class: PCB

PCB

Provides access to PCB elements.

Members

(non-null) activeLayer :up.api.pcb.Layer

Type:

(non-null) allTheThings :Array.<Object>

Type:
  • Array.<Object>

(non-null) boardOutlines :Array.<up.api.pcb.Path>

Type:

(non-null) boardSize :up.api.core.Point

Type:

(non-null) camera :Array.<up.api.common.Camera>

Type:

(non-null) copperLayers :Array.<up.api.pcb.Layer>

Type:

ctx_ :up.api.Context|up.api.ComponentContext

@private
Type:
Inherited From:

(non-null) displayedNets :Array.<string>

Type:
  • Array.<string>

(non-null) hiddenNets :Array.<string>

Type:
  • Array.<string>

(non-null) hover :Object.<string, !Array.<!up.api.core.ProxyObject>>

Type:

isFootprint :boolean

Type:
  • boolean
Inherited From:

isPadstack :boolean

Type:
  • boolean
Inherited From:

isPlatedThroughHole :boolean

Type:
  • boolean
Inherited From:

isPour :boolean

Type:
  • boolean
Inherited From:

isTrace :boolean

Type:
  • boolean
Inherited From:

isVia :boolean

Type:
  • boolean
Inherited From:

(non-null) layers :Array.<up.api.pcb.Layer>

Type:

(non-null) nets :Array.<up.api.core.Net>

Type:
Inherited From:

(non-null) padstacks :Array.<up.api.pcb.Padstack>

Type:

(non-null) platedThroughHoles :Array.<up.api.pcb.PlatedThroughHole>

Type:

(non-null) pours :Array.<up.api.pcb.Pour>

Type:

(non-null) selection :Object.<string, !Array.<!up.api.core.ProxyObject>>

Type:

(non-null) traces :Array.<up.api.pcb.Trace>

Type:

(non-null) vias :Array.<up.api.pcb.Via>

Type:

Methods

closeCheckAndCall(toCall) → {function}

Parameters:
Name Type Description
toCall function
Inherited From:
Returns:
Type
function

defineGetAndSetFunctions(propertyName, getFunction, setFunction)

Parameters:
Name Type Description
propertyName string
getFunction function
setFunction function
Inherited From:

defineGetFunction(propertyName, getFunction)

Parameters:
Name Type Description
propertyName string
getFunction function
Inherited From:

deleteLayer(layernon-null)

Parameters:
Name Type Description
layer up.api.pcb.Layer The layer to remove.

deleteSelection()

Delete the selection.

isNet(netName) → {boolean}

Returns true <=> the object is in the provided net.
Parameters:
Name Type Description
netName string
Inherited From:
Returns:
Type
boolean

isValid() → {boolean}

This:
Returns:
Type
boolean

moveSelection(startLocnon-null, targetLocnon-null)

This:
Parameters:
Name Type Description
startLoc up.api.core.Point
targetLoc up.api.core.Point

onLayer(layer) → {boolean}

Returns true <=> the pcb object is on the provided layer. Default False for proxyobjects.
Parameters:
Name Type Description
layer string
Inherited From:
Returns:
Type
boolean

selectAll()

Select all things.

showAllNets()

Show all nets.

showOnlyNet(netNamenon-null)

Parameters:
Name Type Description
netName up.design.NetName The name of the net to show.