--- title: "GrainMatchTemplateReference" slug: "datenaustausch-connect-api-ct-intellidivide-grainmatchtemplatereference" updated: 2026-12-02T09:28:25Z published: 2026-12-02T09:28:25Z canonical: "docs.homag.cloud/datenaustausch-connect-api-ct-intellidivide-grainmatchtemplatereference" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.homag.cloud/llms.txt > Use this file to discover all available pages before exploring further. # GrainMatchTemplateReference Describes a reference to a grain matching template. ## Properties | Property | Type | Description | Details | | --- | --- | --- | --- | | `Dividing` | [`GrainMatchingTemplateOptionsDividing`](/docs/en/datenaustausch-connect-api-ct-intellidivide-grainmatchingtemplateoptionsdividing) | Whether the template should be divided within the pattern or in separate pattern. | | | `Grain` | [`Grain`](/docs/en/datenaustausch-connect-api-ct-base-enumerations-grain) | Grain of the template. | | | `Instance` | `integer` | Instance of the template. | | | `Positions` | [`GrainMatchTemplatePosition[]`](/docs/en/datenaustausch-connect-api-ct-intellidivide-grainmatchtemplateposition) | Positions within the template. | | | `Template` | `string` | Template reference as state in the template library. | | | `Trim` | `number` | Trim value of the template. | Value 0 to 999.9, Default: `5` | | `Trims` | [`GrainMatchingTemplateOptionsTrims`](/docs/en/datenaustausch-connect-api-ct-intellidivide-grainmatchingtemplateoptionstrims) | Trims of the template. | | ## Referenced by | Contract | Category | Properties | | --- | --- | --- | | [`OptimizationRequestPart`](/docs/en/datenaustausch-connect-api-ct-intellidivide-request-optimizationrequestpart) | IntelliDivide/Request | `Template` | Package: [HomagGroup.HomagConnect.IntelliDivide.Contracts 2.2.5-preview.98](https://www.nuget.org/packages/HomagGroup.HomagConnect.IntelliDivide.Contracts/2.2.5-preview.98) Source: [GrainMatchTemplateReference.cs](https://github.com/HomagGroup/HOMAG-Connect/blob/main/Applications/IntelliDivide/Contracts/Common/GrainMatchingTemplates/GrainMatchTemplateReference.cs) Samples: [IntelliDivide samples](https://github.com/HomagGroup/HOMAG-Connect/tree/main/Applications/IntelliDivide/Samples)