Run Basic Samples

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

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.

    Ensure that only the files in the 3rd_dll folder are copied and pasted to the destination path, not the folder itself.
  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.

    Ensure that only the files in the mechdlk_sdk\dll folder are copied and pasted to the destination path, not the folder itself.
To run any C# sample in Mech-DLK SDK, you only need to perform Steps 3, 4, and 5 once.

After you complete the copy, the destination folder should contain the following types of files (the filenames may vary):

copy files to directory

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.