Building the sample add-in project
- Download the SampleAddin zip file and unzip it. Note: Note: Use the Extract All command on the content menu in Windows Explorer.
- In the extracted folder, locate the reference to the NuGet package (NuGet.config) and delete it.
- Launch Visual Studio and open the project file (SampleAddin.csproj). Alternatively, you may double-click the project file and open it with Visual Studio.
- In the Solution Explorer in Visual Studio, right-click References and select Add Reference.
- In the Reference Manager, select the Browse tab. Locate the API assembly in the subfolder inside the Discovery Installation folder. Right-click this reference and set Copy Local to False.
- Build the project is Visual Studio. Note: Build the project using x64.
- Launch Discovery. The Sample Add-in will appear in the Discovery Ribbon.
%ALLUSERSPROFILE%\\SpaceClaim\\AddIns, which means Discovery will automatically find the add-in at start-up (see Manifest Files).
Add-ins frequently asked questions
-
What can I do when my add-in project can’t build because it’s missing references or packages? Add-ins require several Discovery DLL libraries:
Discovery.API.2XSpaceClaim.API.2XSpaceClaim.API.2X.Internal - What can I do when my add-in project is built, but I can’t see it in Discovery? Either the add-in is not completely built, or it is just not visible on Discovery. Check Discovery Settings > Add-in and determine if the add-in is present. If it’s found, go to the Ribbon section in the advanced part. If the add-in is not found, verify that the add-in output files are configured for the Program Data folder. The manifest file will also appear there.