# Compile and deploy .NET symbols

3D SymbolDesigner exports **Visual Basic .NET** and **C#** source projects. Choose the language your team maintains. The generated symbol's framework and Smart 3D references must match the destination environment; they are independent of the .NET 10 runtime used to run SymbolDesigner itself.

## Prepare the build environment

Install the appropriate compiler/build tools, the targeting pack for the selected .NET Framework and the Smart 3D development/reference assemblies approved for the target release. Do not assume that the newest installed SDK supplies every historic framework targeting pack.

The current export dropdown offers `v4.0`, `v4.5`, `v4.5.2`, `v4.6.2` and `v4.8`. This is a list of export choices, not a claim that all are supported by every Smart 3D version. The old framework-2 option and VB6 selection are not exposed for routine use.

## Export and build

1. Complete the [export wizard](https://help.caxperts.com/3D%20SymbolDesigner/Smart%203D%20export), choosing **Visual Basic .NET** or **C#** and the agreed framework.
2. If **Compile project** is selected, read the result and log; this requires a working local compiler/reference environment.
3. For an external build, open the generated `.vbproj`, `.csproj` or solution in Visual Studio.
4. Inspect unresolved references. Set reference paths to the matching Smart 3D assemblies in your installation. Paths vary; do not copy a legacy workstation path blindly.
5. Confirm the project framework, configuration and platform before building.
6. Build and review all errors and relevant warnings. Use the output DLL from the selected build configuration's output directory, not an arbitrary intermediate file under `obj`.

Keep the generated source alongside any intentional manual changes. A later export can regenerate files; use a separate export folder or version control so that custom work can be reviewed and reapplied.

## Publish to a test symbol share

Have the Smart 3D administrator place the approved DLL and any required related content on the configured custom-symbol share, then run **Update Custom Symbol Configuration** in Project Management for the intended catalogue. Confirm the destination and procedure for that Smart 3D release. Hexagon illustrates this workflow in [Move custom .dlls to SharedContent folder](https://docs.hexagonppm.com/r/en-US/Intergraph-Smart-3D-Hole-Management-Reference-Data/13/207386).

Do not apply the old `regsvr32` procedure to a generated managed .NET assembly. COM deployment and managed-symbol deployment are different workflows.

## Load catalogue data and verify

Review the generated workbook or the separately maintained stock-part workbook. Use the appropriate Smart 3D bulkload process and review its log. Bulkload imports catalogue data; it does not replace compilation or deployment of the source project.

In a test model, place the part and inspect all intended variants, dimensions, aspect representations and connections. Connect actual discipline objects to the symbol where relevant. Test edited occurrence values as well as the default case.

## Update an existing symbol

Keep the previous DLL, workbook and source revision. Agree the release/versioning strategy with the catalogue administrator and update the deployed content through the site's normal procedure. Existing occurrences and cached symbols may require target-specific refresh or recomputation.

Do not assume that increasing the assembly's major version by one universally forces all existing occurrences to refresh. That historic advice does not establish the behaviour of every managed-symbol version and cache configuration.

## Diagnose build and runtime differences

| Symptom | Check |
| --- | --- |
| Missing Smart 3D reference | The reference path, installed SDK/resources and target assembly version. |
| Target framework unavailable | The corresponding targeting pack/build tools, not only a runtime. |
| C# project fails while VB.NET succeeds | Export both from the same saved project/settings, retain the exact errors and compare the generated code at the failing object. |
| Correct preview but incorrect target geometry | Local axes, port-data inputs, end-section dimensions, transformations and the target runtime's geometry handling. |
| New symbol not available | DLL deployment, custom-symbol configuration update, class/prog-ID mapping and bulkload result. |
| An old shape remains visible | Deployed file revision, correct catalogue/model, symbol caching and the approved update/recompute procedure. |

Provide the source workbook, generated project, framework selection, target release and smallest failing variant when requesting support. A successful source export alone is not proof that a DLL compiles or behaves correctly in Smart 3D.
