Run Basic samples

You can build and run the provided samples by the following instructions if you have completed all operations required in the Prerequisites section.

Build samples

  1. Find the MechDLCShapeSamples.sln file under xxx\mechdlk_sdk\samples\csharp and double-click the file to open the solution in Visual Studio.

  2. In the menu bar, select Build  Build Solution. An executable file will be generated and saved to the bin folder (path: xxx\mechdlk_sdk\samples\csharp).

    csharp build basic samples
  3. Copy and paste the resources folder under the project folder to the path xxx\mechdlk_sdk\samples\csharp\bin.

  4. Copy and paste all files in the 3rd_dll folder under the project folder to the path xxx\mechdlk_sdk\samples\csharp\bin.

  5. Copy and paste all files in the mechdlk_sdk\dll directory under the project folder to the path xxx\mechdlk_sdk\samples\csharp\bin.

To run any C# sample in Mech-DLK SDK, you only need to perform Steps 3, 4, and 5 once.

Run samples

You can run the samples in Visual Studio after building them, or you can run the samples by double-clicking the executable files.

Run a sample in Visual Studio

  1. In the Solution Explorer panel, right-click a sample and select Set as Startup Project.

    startup project csharp basic samples
  2. Click Start on the toolbar to run the sample.

Run the executable file of a sample

In the bin folder (path: xxx\mechdlk_sdk\samples\csharp\bin), double-click the executable file named after the sample to run the sample and obtain results.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.