TABLE OF CONTENTS
- Accessing your library
- Modifying your library folders
- Create a new folder
- Updating folders
- Update folder permissions
- Move folder
- Delete folder
- Update reuse block
Accessing your library
DesLibrary provides information about a library, given a workspaceUrl, in the format
"https://altium-inc-1234.365.altium.com/"
Using our visual data model, Voyager, you can see desLibrary and what can be returned:
Here is an example query using desLibrary:
With this response:
Modifying your library folders
The Nexar API has mutations that allow for creating, moving, updating and deleting folders.
Create a new folder
To create a new folder, we use desCreateFolder
This is found in our data model, the Voyager, under Mutations.
Required fields:
workspaceUrl of the workspace you want the folder to be created
Name of the folder
Folder type
Optional fields:
Folder description
Parent folder ID. If this is null, the folder will be placed under the library root.
Naming scheme for folder
Folder permissions
Updating folders
Required fields:
Folder id for the folder you want to change the permissions of
Permissions that you want to change
Optional fields:
Whether all existing permissions should be replaced or not
Whether these permissions apply to folder children
Update folder permissions
Note: If replaceExisting is set to true, this mutation will overwrite all existing permissions for this folder.
Required fields:
Folder id for the folder you want to change the permissions of
Permissions that you want to change
Optional fields:
Whether all existing permissions should be replaced or not
Whether these permissions apply to folder children
Move folder
Required fields:
Folder ID
Parent ID for the new parent folder
Delete folder
Required fields:
Folder ID
Update reuse block
Reuse blocks are common 'sections' of circuitry that can be added to any PCB design without having to start from scratch each time. You can find more about reuse blocks here: https://www.altium.com/documentation/altium-designer/reuse-blocks-snippets
Required fields:
Reuse block ID
Optional fields:
New name for the reuse block
New description for the reuse block
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article