This article provides examples of how you can open a specific item using the same URL protocol used by the swExplorerLauncher from a web page or a custom application using C#.
Prerequisites
- Familiar with the SystemWeaver meta model building blocks (e.g., Items, Parts and Attributes)
- The SystemWeaver ID for the item to be opened
If the link is to be opened from a web page on by computer with swExplorerLauncher registered, something like the following should work:
<a href="swap://168.255.255.255:443/x0400000000001234">Link Text</a>
If you want to open a swap link with C# code on a computer with swExplorerLauncher registered, something like the following should work:
using System.Diagnostics; namespace UrlOpen { class Program { static void Main() { Process.Start("swap://168.255.255.255:443/x0400000000001234"); } } }