Get desktop application:
View/edit binary Protocol Buffers messages
Used in:
The number of copper layers enabled in this board.
A list of all layers enabled in this board, including copper layers and ones which cannot be disabled.
Used in:
Normal ("non-flipped") mode
"Flipped" mode, viewed from the back and mirrored around the X axis
The name of the layer shown in the KiCad GUI, which may be a default value like "F.Cu" or may have been customized by the user.
Used in: ,
Tests if the given set of items with padstacks (pads or vias) has content on the given set of layers. This is a dynamic call rather than a property of the padstack because pads and vias can be set to only include shapes on connected copper layers, and whether or not the pad is connected can't be determined in isolation. To optimize API call performance, multiple items and multiple layers to test may be passed in with this command message. The return will include the results for each valid item on each valid layer. Note that not all layers make sense for a given item (for example, testing against BL_UNDEFINED never makes sense). In general, the internal KiCad APIs will not return an error when testing non-sensical layers for a given item, and instead will return a default of "true" for any such layers.
Used in: ,
Deprecated - use common.types.RuleSeverity
Used in:
returns BoardLayerResponse
Returns BoardEditorAppearanceSettings
(message has no fields)
Returns a Vector2 with the specified origin point
Retrieve all copper-connected items connected to one or more source items returns kiapi.common.commands.GetItemsResponse
Specifies which document to query, which fields to return, etc.
One or more item IDs used as the source set for connectivity queries
Optional list of item types to return. If empty, all connected item types are returned.
Retrieve all the copper items belonging to a certain net or set of nets returns kiapi.common.commands.GetItemsResponse
Specifies which document to query, which fields to return, etc.
Optional list of item types to filter by. If not provided, will return pads, vias, tracks, and zones.
A list of nets to filter items by
Retrieve all the copper items belonging to a certain net class or set of net classes returns kiapi.common.commands.GetItemsResponse
Specifies which document to query, which fields to return, etc.
Optional list of item types to filter by. If not provided, will return pads, vias, tracks, and zones.
A list of net class names to filter items by
A net may be part of multiple classes that have a priority ordering, which will result in a composite "effective" netclass containing the merged/overridden properties of all the constituent netclasses it contains. This message retrieves this effective netclass for a net or list of nets. Returns NetClassForNetsResponse
If provided, will only return nets that belong to the given netclass. If more than one netclass_filter is given, nets belonging to any of the given classes will be returned.
Computes the polygon representation of a pad, merging any custom shapes together. This representation will approximate curves as a series of segments.
The board to process
A list of one or more pads to process
The layer to process
returns BoardLayers
Imports a netlist file exported from the schematic and updates the board. Returns ImportNetlistResponse.
Path to the netlist file.
If true, report planned changes without modifying the board.
Human-readable report of changes and any warnings or errors.
Used in:
Inactive layers are shown
Inactive layers are shown with dimmed colors
Inactive layers are hidden
Returns InjectDrcErrorResponse
Selects and begins an interactive move of the given item(s). NOTE: Takes ownership of the active commit, if one exists: the move tool will push the commit when the user confirms the move, or roll back the commit if the user cancels the move. Keep this in mind if using this command in combination with commands that create or modify items using an explicit commit.
Map of net name to netclass info
Used in:
Net and netclass colors are shown in the ratsnest and on all copper items
Net and netclass colors are shown in the ratsnest only
Net and netclass colors are not shown
How schematic components are matched to board footprints during netlist import.
Used in:
Match by unique ID.
Match by reference designator.
Returned from GetPadShapeAsPolygon. The pads and polygons repeated fields will have the same length and can be treated as a list of tuples.
The pads that were processed
The polygon representation of each pad
Used in:
The padstack has a shape on a given layer (is flashed)
The padstack has no shape on a given layer (is not flashed)
Used in:
Used in:
Ratsnest lines are drawn to objects even if they are on hidden layers
Ratsnest lines are hidden when at least one endpoint is an item on a hidden layer
Refills some or all zones on the board. When zones is empty and a board editor is running, all zones are refilled in the background: Empty is returned immediately and KiCad returns ApiStatusCode.AS_BUSY to all future API requests until the fill completes. When specific zones are given, or in headless sessions, the fill runs synchronously and the response is not sent until it has completed.
A list of zones to refill. If empty, all zones are refilled.
Changes which layers are enabled in the board stackup WARNING: any existing content on layers that are removed by this call is deleted. This operation cannot be undone. Returns BoardEnabledLayersResponse with the updated layer set.
The number of copper layers to enable in the board. Currently, this must be an even number >= 2.
The non-copper layers to enable. Note that any copper layers in this list are ignored; copper layers are enabled by setting copper_layer_count. Note that the F/B.Courtyard, Edge.Cuts, and Margin layers cannot be disabled and will be present in the board even if they are omitted from this list.
Returns CustomRulesResponse
Changes the stackup for the given board according to the contents of the message (**not yet implemented**) WARNING: any existing content on layers that are removed by this call is deleted. This operation cannot be undone. Returns BoardStackupResponse with the updated stackup, in normalized form