proj_import_document
Imports a document from an external path into the focused project, copying it into the project directory if needed, then adds and saves it.
Instructions
Import a document into the focused project from an external path.
Copies the file into the project directory (if not already there), adds it to the project, and saves the project file.
Args: source_path: Full path to the source document (SchDoc, PcbDoc, etc.)
Returns: Dictionary with success status, source_path, and dest_path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||