Skip to content

NexarDeveloper/web-design-demo-blazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexar.Design Demo

Blazor WebAssembly with design queries powered by Nexar.

Live demo: https://web-design-demo.nexar.com

It is:

  • Altium 365 hierarchical data tree with some notable branches.
  • Example of using various Nexar queries in .NET applications.
  • Example of using workspace region specific endpoints.

Covered Altium 365 data tree:

  • Shared with Me
    • Projects
  • Workspace
    • Projects
      • Design
        • Variants
          • BOM
          • PCB
          • Layers
          • Schematics
      • Releases
        • Variants
      • Collaboration
        • ECAD
        • MCAD
      • Simulation
        • AnsysEDB
        • PCBEDB
      • Tasks
      • Comments
      • Revisions
    • Library
      • Folders
        • Folders...
      • Component Templates
    • Tasks
    • Users

How to use

If you have not done this already, please register at nexar.com and create a Nexar application with the Design domain enabled.

In order to see anything useful in the demo, you also need your Altium Live credentials and have to be a member of at least one Altium 365 workspace.

The demo requires an access token. Go to nexar.com application details, click "Generate token". Alternatively, you may get a token using one of the tools: nexar-token-cs, nexar-token-py.

Having got a token, copy it to the clipboard and open the app in a browser. Paste the token at the Connect page and click CONNECT. The browser keeps and restores the token on next runs. The token may be used until it expires.

Building blocks

The app is built with Blazor using MudBlazor components.

The Design domain data are provided by Nexar API: https://api.nexar.com/graphql. This is the endpoint for GraphQL queries and also the GraphQL IDE "Banana Cake Pop".

The package HotChocolate StrawberryShake is used for generating strongly typed C# client code for invoking GraphQL queries. See the source queries in Resources.