package kiapi.common.commands

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AddToSelection

editor_commands.proto:347

Adds the given items to the selection. Returns SelectionResponse

message BeginCommit

editor_commands.proto:123

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)

message BeginCommitResponse

editor_commands.proto:128

enum BoundingBoxMode

editor_commands.proto:304

Used in: GetBoundingBox

message ClearSelection

editor_commands.proto:365

Removes all items from selection

enum CommitAction

editor_commands.proto:135

Used in: EndCommit

message CreateItems

editor_commands.proto:161

Creates new items on a given document

message CreateItemsResponse

editor_commands.proto:204

message DeleteItems

editor_commands.proto:268

Deletes items in a given document

message DeleteItemsResponse

editor_commands.proto:292

message EndCommit

editor_commands.proto:143

message EndCommitResponse

editor_commands.proto:156

(message has no fields)

message ExpandTextVariables

project_commands.proto:54

message ExpandTextVariablesResponse

project_commands.proto:62

message GetBoundingBox

editor_commands.proto:311

message GetBoundingBoxResponse

editor_commands.proto:322

message GetItems

editor_commands.proto:216

message GetItemsResponse

editor_commands.proto:225

message GetKiCadBinaryPath

base_commands.proto:41

Returns the full path to the given KiCad binary

message GetNetClasses

project_commands.proto:28

(message has no fields)

message GetOpenDocuments

editor_commands.proto:39

Retrieves a list of open documents of the given type

message GetOpenDocumentsResponse

editor_commands.proto:45

message GetPluginSettingsPath

base_commands.proto:94

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

message GetSelection

editor_commands.proto:330

Retrieves a list of items. Returns SelectionResponse

message GetTextAsShapes

base_commands.proto:71

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.

message GetTextAsShapesResponse

base_commands.proto:83

message GetTextExtents

base_commands.proto:54

returns kiapi.common.types.Box2

message GetTextVariables

project_commands.proto:69

returns kiapi.common.project.TextVariables

message GetTitleBlockInfo

editor_commands.proto:395

returns common.types.TitleBlockInfo

message GetVersion

base_commands.proto:26

(message has no fields)

message GetVersionResponse

base_commands.proto:30

message HitTest

editor_commands.proto:371

Tests if a certain point falls within tolerance of an item's geometry

message HitTestResponse

editor_commands.proto:389

enum HitTestResult

editor_commands.proto:382

Used in: HitTestResponse

message ItemCreationResult

editor_commands.proto:196

Used in: CreateItemsResponse

message ItemDeletionResult

editor_commands.proto:285

Used in: DeleteItemsResponse

enum ItemDeletionStatus

editor_commands.proto:277

Used in: ItemDeletionResult

message ItemStatus

editor_commands.proto:189

Per-item status feedback for creation and update calls

Used in: ItemCreationResult, ItemUpdateResult

enum ItemStatusCode

editor_commands.proto:177

Used in: ItemStatus

message ItemUpdateResult

editor_commands.proto:247

Used in: UpdateItemsResponse

message NetClassesResponse

project_commands.proto:32

message ParseAndCreateItemsFromString

editor_commands.proto:427

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

message PathResponse

base_commands.proto:48

message Ping

base_commands.proto:36

A command to check if the connection to KiCad is OK

(message has no fields)

message RefreshEditor

editor_commands.proto:33

Refreshes the given frame, if that frame is open

message RemoveFromSelection

editor_commands.proto:356

Removes the given items to the selection. Returns SelectionResponse

message RevertDocument

editor_commands.proto:85

message RunAction

editor_commands.proto:96

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.

message RunActionResponse

editor_commands.proto:112

NOTE: At the moment, RAS_FRAME_NOT_OPEN won't be returned as the handler is inside the frame.

enum RunActionStatus

editor_commands.proto:101

Used in: RunActionResponse

message SaveCopyOfDocument

editor_commands.proto:76

Saves the given document to a new location and does not open the new copy

message SaveDocument

editor_commands.proto:50

message SaveDocumentToString

editor_commands.proto:400

message SaveOptions

editor_commands.proto:65

Used in: SaveCopyOfDocument

message SaveSelectionToString

editor_commands.proto:412

(message has no fields)

message SavedDocumentResponse

editor_commands.proto:405

message SavedSelectionResponse

editor_commands.proto:416

message SelectionResponse

editor_commands.proto:341

The set of currently selected items

message SetNetClasses

project_commands.proto:38

message SetTextVariables

project_commands.proto:75

message StringResponse

base_commands.proto:100

message TextOrTextBox

base_commands.proto:60

Used in: GetTextAsShapes, TextWithShapes

message TextWithShapes

base_commands.proto:76

Used in: GetTextAsShapesResponse

message UpdateItems

editor_commands.proto:237

Updates items in a given document

message UpdateItemsResponse

editor_commands.proto:255