Get desktop application:
View/edit binary Protocol Buffers messages
Adds the given items to the selection. Returns SelectionResponse
The items to select
Begins a staged set of changes. Any modifications made to a document through the API after this call will be saved to a pending commit, and will not appear in KiCad until a matching call to END_COMMIT.
(message has no fields)
Opaque identifier tracking a commit
Used in:
Removes all items from selection
Used in:
Commit the changes to the design
Cancel this commit
Creates new items on a given document
Specifies which document to create on, which fields are included, etc.
List of items to create
Items may be created on a top-level document (sheet, board, etc) or inside a container (symbol, footprint). If this field is not empty, it holds the ID of a symbol or footprint that the items should be added to. This ID must be an existing symbol (for schematic documents) or footprint (for board documents). If the given container does not exist or is not the correct item type, the CreateItems call will fail.
Specifies which document was modified, which fields are included in created_items, etc.
Status of the overall request; may return IRS_OK even if no items were created
Status of each item to be created
Deletes items in a given document
Specifies which document to modify
List of item KIIDs to delete
Specifies which document was modified, etc.
Status of the overall request; may return IRS_OK even if no items were deleted
Status of each item requested to be deleted
The ID that was given by BeginCommit
What to do with this commit
Optional message describing this changeset
(message has no fields)
Some item types can have independently-movable text as children (e.g. footprints) This mode controls whether or not these are included in the box
Specifies which document to query, which fields to return, etc.
List of one or more types of items to retreive
Specifies which document was modified, which fields are included in items, etc.
Status of the overall request; may return IRS_OK even if no items were retrieved
Returns the full path to the given KiCad binary
The short name of the binary, such as `kicad-cli` or `kicad-cli.exe`. If on Windows, an `.exe` extension will be assumed if not present.
(message has no fields)
Retrieves a list of open documents of the given type
Which type of documents to query
Return a writeable path that a plugin can use for storing persistent data such as configuration files, etc. This path may not yet exist; actual creation of the directory for a given plugin is up to the plugin itself. Files in this path will not be modified if the plugin is uninstalled or upgraded. Returns StringResponse
The identifier of the plugin
Retrieves a list of items. Returns SelectionResponse
Specifies which document to query for selected items.
An optional list of types to filter on. If none are provided, all selected items will be returned.
Render the given text object(s) as shapes. Depending on whether the text is using the KiCad stroke font or a custom font, the response will be a compound shape containing a set of polygons or a set of segments.
returns kiapi.common.types.Box2
A temporary text item to calculate the bounding box for
returns kiapi.common.project.TextVariables
returns common.types.TitleBlockInfo
(message has no fields)
Tests if a certain point falls within tolerance of an item's geometry
Used in:
Used in:
The created version of the item, including an updated KIID as applicable
Used in:
Used in:
The item did not exist in the given document
The item is not allowed to be modified by the API
Per-item status feedback for creation and update calls
Used in:
,Used in:
The item was created or updated
The item's type is not valid for the given document
The item to be created had a specified KIID and that KIID was already in use
The item to be updated did not exist in the given document
The item to be updated is not allowed to be modified by the API
The item to be created does not have valid data for the given document
Used in:
The update version of the item
Attempts to parse the given string as a s-expression formatted container with items, similar to how the Paste action inside the KiCad editor works. If the parse is successful, the items will be created and inserted into the editor. Returns CreateItemsResponse
A command to check if the connection to KiCad is OK
(message has no fields)
Refreshes the given frame, if that frame is open
Removes the given items to the selection. Returns SelectionResponse
The items to deselect
Runs a TOOL_ACTION using the TOOL_MANAGER of a given frame. WARNING: The TOOL_ACTIONs are specifically *not* an API. Command names may change as code is refactored, and commands may disappear. This API method is provided for low-level prototyping purposes only.
Action name, like "eeschema.InteractiveSelection.ClearSelection"
NOTE: At the moment, RAS_FRAME_NOT_OPEN won't be returned as the handler is inside the frame.
Used in:
The action was submitted successfully.
The action was unknown for the targeted frame.
The targeted frame was not open when the call was submitted.
Saves the given document to a new location and does not open the new copy
Used in:
Overwrite destination file(s) if they exist
If the file being saved normally requires a project (for example, a board or schematic), this flag will cause a new project to be saved alongside the new file
(message has no fields)
The set of currently selected items
Whether to merge or replace the existing netclasses with the contents of this message Note that this only happens at the level of netclass name: for example, if merge_mode is set to MMM_MERGE, the design has netclasses ["Default", "HV"], and this message has netclasses ["Default", "LV"], the resulting set will be ["Default", "HV", "LV"] -- the Default netclass will have its properties replaced with those in this message, the "LV" netclass will be added, and the "HV" netclass will be left alone. If merge_mode is set to MMM_REPLACE, the "HV" class will be erased. Note that there must always be a "Default" netclass, so it will not be erased even if merge_mode is MMM_REPLACE and there is no "Default" class specified in this message.
Whether to merge or replace the existing text variables map with the contents of this message
Used in:
,Used in:
Updates items in a given document
Specifies which document to modify, which fields are included, etc.
List of items to modify
Specifies which document was modified, which fields are included in updated_items, etc.
Status of the overall request; may return IRS_OK even if no items were modified
Status of each item to be created