Step 1: Upload your symbol to the Nexar File Service
Please follow the following guide to upload your
https://support.nexar.com/support/solutions/articles/101000472295-how-to-use-the-nexar-file-service
Take note of the fileId as provided by the Nexar File Service.
Step 2: Find the folder ID
In Altium 365, the folder path is usually: "Components/Models/Symbols".
query find_folder($workspaceUrl: String!) {
desLibrary(workspaceUrl: $workspaceUrl) {
folders {
name
path
id
}
}Step 3: Create the Symbol
Using the file ID, relative path (starting "Released/"), folder ID and workspace URL, run the following mutation:
mutation createSymbol($fileId: String!,$relativePath: String!, $folderId: ID!, $workspaceUrl: String! ) {
desCreateSymbol(
input: {
files: {
fileId: $fileId,
#Relative path: "Released/<file name>"
relativePath: $relativePath
}
#Folder path: "Components/Models/Symbols"
folderId: $folderId,
name: "Test_Symbol"
workspaceUrl: $workspaceUrl
}
) {
errors {
message
}
id
}
}Step 4: Check that the symbol has been created
Using the symbol ID from the previous step, check that the symbol was successfully created. You can also download the symbol to check it is present.
query desSymbol ($symbolId: ID!){
desSymbolById(
id: $symbolId
) {
name
revisionInternalId
folder {
id
name
path
}
dataDownloadUrl
}
}These steps can also be followed to create footprints.
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