Class: Part

Part

Members

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

@private
Type:
Inherited From:

dataSheetURL :string

The part datasheet.
Type:
  • string

generic :boolean

True if this part is generic.
Type:
  • boolean

hasFootprint :boolean

True if this part has footprints.
Type:
  • boolean

(non-null) instances :Array.<up.api.core.Component>

A list of the instances of this part in the design.
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:

name :string

The name of the part.
Type:
  • string

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

Type:
Inherited From:

orderable :boolean

True if this part is orderable.
Type:
  • boolean

partPageURL :string

Part page URL.
Type:
  • string

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:

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

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