Build your extension, make it available to CAD Forge Max, then set its settings.
Build
From the root of the repository:
./resources/SkrExtensionScripts/scripts/Build-Repository.ps1
For each entry of the Output list of Variables.json, the script:
-
publishes the project in Release (
dotnet publish) intoOutput\Build\<folder of ScriptRelativePath>; -
copies the
.skrjoband the.skrmanifestnext to it; -
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 ( |
Publish your package to the XR Center Marketplace. The agent downloads the |
|
Local folder ( |
Copy the |
|
Local folder layout |
|---|
|
|
The agent loads the jobs when it initializes: restart it after adding or updating a script.
Enable the job and set its settings
-
Add the job (its
JobName) to the CAD Forge Max agent worker in XR Center. -
Each setting of the
.skrjobthen appears in the agent worker settings as<JobName>_<setting>, for exampleMerge structure_mergeStrategy, with the.skrjobvalue as default. -
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.