Documentation Home
v1.22 v1.23
v1.22 v1.23

How to install / deploy C# extension

Build your extension, make it available to CAD Forge Max, then set its settings.

Build

From the root of the repository:

PowerShell
./resources/SkrExtensionScripts/scripts/Build-Repository.ps1

For each entry of the Output list of Variables.json, the script:

  1. publishes the project in Release (dotnet publish) into Output\Build\<folder of ScriptRelativePath>;

  2. copies the .skrjob and the .skrmanifest next to it;

  3. builds the packages and installers into Output\Install.

Deploy

CAD Forge Max loads its jobs in one of two ways, set by the MarketplaceEnabled setting of the agent (enabled by default):

Mode

How to deploy

Marketplace (MarketplaceEnabled = true)

Publish your package to the XR Center Marketplace. The agent downloads the Script packages itself. Local scripts are ignored in this mode.

Local folder (MarketplaceEnabled = false)

Copy the .skrjob and the executable folder into <agent shared directory>\ForgeMaxWorker\Scripts. The .skrjob must be at the root of this folder. The shared directory is set in the agent configuration in XR Center.

Local folder layout

ForgeMaxWorker\Scripts\mergestructure.skrjob
ForgeMaxWorker\Scripts\skrmergestructure\Skr.MergeStructure.exe (+ its dependencies)

The agent loads the jobs when it initializes: restart it after adding or updating a script.

Enable the job and set its settings

  1. Add the job (its JobName) to the CAD Forge Max agent worker in XR Center.

  2. Each setting of the .skrjob then appears in the agent worker settings as <JobName>_<setting>, for example Merge structure_mergeStrategy, with the .skrjob value as default.

  3. Change these values to configure the job. They are passed to your program at each run.

Values are passed without quotes: avoid spaces in setting values.

If a job declared on the agent is not found, the agent reports an error on its MarketplaceEnabled setting, with the folder where it expected the script.