Materials

This page covers IMaterial, IMaterials, IMaterialChangeEvent, IMaterialChangeEventHandler, IStandardSheet, IStandardSheets, IStandardSheetChangeEvent, and IStandardSheetChangeEventHandler. These interfaces describe stock behavior, cost rules, reusable stock sizes, and material-related host events.

IMaterial now exposes both minimum and maximum shorter/longer recycle sizes, their effective values, per-edge MinEdgeDistance, and mutable ITcAlgorithmData. Its payload is opaque and implementation-defined; no public key/value schema or compatibility guarantee is provided. Treat these properties as independent parts of the current material contract.

IMaterials adds BeginUpdate, EndUpdate, IsUpdating, and OnChange in engine version 25. BeginUpdate, EndUpdate, IsUpdating, and GetOnChange are appended after the existing vtable slots under the same interface GUID. See Update scopes for nesting, notifications, and error handling. Rebuild plugins against the matching SDK; the Desktop host requires an exact engine version match.

Interfaces

Declarations are shown in Pascal and, where the SDK's generated language-support manifest lists the member for C++, in C++; the build fails if that manifest no longer matches TonCutPluginSdk.hpp. There is no C# declaration: C# plugins are native-shim-only, so a C++ shim owns every interface on this page. Methods are listed with their accessors folded into properties; open Vtable order for the exact slot sequence, and see ABI and marshalling for type sizes and ownership rules.

IMaterial

Material definition describing stock behavior, cutting rules, recycling settings, costs, and standard stock sizes.

IID
{5C81D3A6-7E42-4B19-8F63-2D9B5A14C708}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIMaterial
Vtable order (119 methods, slots 3 to 121, after the three IUnknown slots)
  1. function GetId(): Int64;
  2. procedure SetId(aId: Int64);
  3. function GetTitle(): WideString;
  4. procedure SetTitle(const aTitle: WideString);
  5. function GetKind(): TMaterialKind;
  6. procedure SetKind(aKind: TMaterialKind);
  7. function GetWidth(): Cardinal;
  8. procedure SetWidth(aWidth: Cardinal);
  9. function GetThickness(): Cardinal;
  10. procedure SetThickness(aThickness: Cardinal);
  11. function GetHasOrnament(): Boolean;
  12. procedure SetHasOrnament(aHasOrnament: Boolean);
  13. function GetCanRotate(): Boolean;
  14. procedure SetCanRotate(aCanRotate: Boolean);
  15. function GetCanMirror(): Boolean;
  16. procedure SetCanMirror(aCanMirror: Boolean);
  17. function GetSurplus(): Cardinal;
  18. procedure SetSurplus(aSurplus: Cardinal);
  19. function GetSurplusEditable(): Boolean;
  20. procedure SetSurplusEditable(aEditable: Boolean);
  21. function GetMargin(): Cardinal;
  22. procedure SetMargin(aMargin: Cardinal);
  23. function GetMarginEditable(): Boolean;
  24. procedure SetMarginEditable(aEditable: Boolean);
  25. function GetDefaultEdging(): Cardinal;
  26. procedure SetDefaultEdging(aEdging: Cardinal);
  27. function GetCuttingDimensions(): TCuttingDimensions;
  28. procedure SetCuttingDimensions(aCuttingDimensions: TCuttingDimensions);
  29. function GetBandable(): Boolean;
  30. procedure SetBandable(aBandable: Boolean);
  31. function GetGrindable(): Boolean;
  32. procedure SetGrindable(aGrindable: Boolean);
  33. function GetColorable(): Boolean;
  34. procedure SetColorable(aColorable: Boolean);
  35. function GetDevice(): IDevice;
  36. procedure SetDevice(const aDevice: IDevice);
  37. function GetAlgorithm(): WideString;
  38. procedure SetAlgorithm(const aAlgorithm: WideString);
  39. function GetQualityLevel(): TQualityLevel;
  40. procedure SetQualityLevel(aQualityLevel: TQualityLevel);
  41. function GetReuseWaste(): Boolean;
  42. procedure SetReuseWaste(aReuse: Boolean);
  43. function GetMinShorterRecycleSize(): Cardinal;
  44. procedure SetMinShorterRecycleSize(aSize: Cardinal);
  45. function GetMinLongerRecycleSize(): Cardinal;
  46. procedure SetMinLongerRecycleSize(aSize: Cardinal);
  47. function GetMaxShorterRecycleSize(): Cardinal;
  48. procedure SetMaxShorterRecycleSize(aSize: Cardinal);
  49. function GetMaxLongerRecycleSize(): Cardinal;
  50. procedure SetMaxLongerRecycleSize(aSize: Cardinal);
  51. function GetPrefShorterRecycleSize(): Cardinal;
  52. procedure SetPrefShorterRecycleSize(aSize: Cardinal);
  53. function GetPrefLongerRecycleSize(): Cardinal;
  54. procedure SetPrefLongerRecycleSize(aSize: Cardinal);
  55. function GetEffectiveMinShorterRecycleSize(): Cardinal;
  56. function GetEffectiveMinLongerRecycleSize(): Cardinal;
  57. function GetEffectiveMaxShorterRecycleSize(): Cardinal;
  58. function GetEffectiveMaxLongerRecycleSize(): Cardinal;
  59. function GetEffectivePrefShorterRecycleSize(): Cardinal;
  60. function GetEffectivePrefLongerRecycleSize(): Cardinal;
  61. function GetKerf(): Cardinal;
  62. procedure SetKerf(aKerf: Cardinal);
  63. function GetMinEdgeDistance(): IRectangle;
  64. function GetAllowEdgeCuts(): Boolean;
  65. procedure SetAllowEdgeCuts(aAllow: Boolean);
  66. function GetRecycleEdgingOn(): Boolean;
  67. procedure SetRecycleEdgingOn(aOn: Boolean);
  68. function GetRecycleEdging(): Cardinal;
  69. procedure SetRecycleEdging(aMargins: Cardinal);
  70. function GetStackCutting(): Boolean;
  71. procedure SetStackCutting(aStackCutting: Boolean);
  72. function GetStackSize(): Cardinal;
  73. procedure SetStackSize(aSize: Cardinal);
  74. function GetAllowPartialStack(): Boolean;
  75. procedure SetAllowPartialStack(aAllow: Boolean);
  76. function GetMinStackSize(): Cardinal;
  77. procedure SetMinStackSize(aSize: Cardinal);
  78. function GetPricePerSqM(): TTcPrice;
  79. procedure SetPricePerSqM(aCost: TTcPrice);
  80. function GetWeightOfSqM(): TTcWeight;
  81. procedure SetWeightOfSqM(aWeight: TTcWeight);
  82. function GetPricePerMeter(): TTcPrice;
  83. procedure SetPricePerMeter(aCost: TTcPrice);
  84. function GetWeightOfMeter(): TTcWeight;
  85. procedure SetWeightOfMeter(aWeight: TTcWeight);
  86. function GetCutCostPerMeter(): TTcPrice;
  87. procedure SetCutCostPerMeter(aCost: TTcPrice);
  88. function GetReuseCost(): TTcPrice;
  89. procedure SetReuseCost(aCost: TTcPrice);
  90. function GetUtilizationCostPerKg(): TTcPrice;
  91. procedure SetUtilizationCostPerKg(aCost: TTcPrice);
  92. function GetSegmentShiftCost(): TTcPrice;
  93. procedure SetSegmentShiftCost(aCost: TTcPrice);
  94. function GetSegmentRotationCost(): TTcPrice;
  95. procedure SetSegmentRotationCost(aCost: TTcPrice);
  96. function GetPriceToCostMultiplier(): Double;
  97. procedure SetPriceToCostMultiplier(aMultiplier: Double);
  98. function GetReusableWasteExpectedUsage(): Double;
  99. procedure SetReusableWasteExpectedUsage(aExpectedUsage: Double);
  100. function GetCutExcess(): Integer;
  101. procedure SetCutExcess(aCutExcess: Integer);
  102. function GetCutShiftTotalLimit(): Integer;
  103. procedure SetCutShiftTotalLimit(aLimit: Integer);
  104. function GetCutShiftHorzLimit(): Integer;
  105. procedure SetCutShiftHorzLimit(aLimit: Integer);
  106. function GetCutShiftVertLimit(): Integer;
  107. procedure SetCutShiftVertLimit(aLimit: Integer);
  108. function GetCustomData(): WideString;
  109. procedure SetCustomData(const aData: WideString);
  110. function GetAlgorithmData(): ITcAlgorithmData;
  111. function GetStandardSheets(): IStandardSheets;
  112. function GetOnChange(): INotifyEvent;
  113. function GetOnIdChange(): IIdChangeEvent;
  114. function GetOnStandardSheetAdd(): IStandardSheetChangeEvent;
  115. function GetOnStandardSheetRemove(): IStandardSheetChangeEvent;
  116. function GetOnStandardSheetChange(): IStandardSheetChangeEvent;
  117. procedure Assign(const aOther: IMaterial);
  118. procedure BeginUpdate();
  119. procedure EndUpdate();

Properties

  • Property name
    Id
    Type
    Int64
    Description

    Persistent numeric identifier used by TonCut to track the object.

    Declaration

    property Id: Int64 read GetId write SetId;
  • Property name
    Title
    Type
    WideString
    Description

    Human-readable title shown to users.

    Declaration

    property Title: WideString read GetTitle write SetTitle;
  • Property name
    Kind
    Type
    Description

    Enumerated kind describing the current object.

    Declaration

    property Kind: TMaterialKind read GetKind write SetKind;
  • Property name
    Width
    Type
    Cardinal
    Description

    Bar width of a 1D material, in hundredths of a millimeter. A 2D material has width 0.

    Declaration

    property Width: Cardinal read GetWidth write SetWidth;
  • Property name
    Thickness
    Type
    Cardinal
    Description

    Thickness value stored on the object.

    Declaration

    property Thickness: Cardinal read GetThickness write SetThickness;
  • Property name
    HasOrnament
    Type
    Boolean
    Description

    Gets or sets whether has ornament.

    Declaration

    property HasOrnament: Boolean read GetHasOrnament write SetHasOrnament;
  • Property name
    CanRotate
    Type
    Boolean
    Description

    Whether rotation is allowed.

    Declaration

    property CanRotate: Boolean read GetCanRotate write SetCanRotate;
    Diagram of piece rotation. Top: a 2D rectangle turned by 90 degrees. Bottom: a 1D piece with slanted ends turned around, so its slants swap sides.
  • Property name
    CanMirror
    Type
    Boolean
    Description

    Whether mirroring is allowed.

    Declaration

    property CanMirror: Boolean read GetCanMirror write SetCanMirror;
    Diagram of piece mirroring: a 1D piece with slanted ends and its mirror image, where the slants swap sides.
  • Property name
    Surplus
    Type
    Cardinal
    Description

    Surplus allowance stored on the object.

    Declaration

    property Surplus: Cardinal read GetSurplus write SetSurplus;
  • Property name
    SurplusEditable
    Type
    Boolean
    Description

    Gets or sets whether surplus editable.

    Declaration

    property SurplusEditable: Boolean read GetSurplusEditable write SetSurplusEditable;
  • Property name
    Margin
    Type
    Cardinal
    Description

    Margin allowance stored on the object.

    Declaration

    property Margin: Cardinal read GetMargin write SetMargin;
  • Property name
    MarginEditable
    Type
    Boolean
    Description

    Gets or sets whether margin editable.

    Declaration

    property MarginEditable: Boolean read GetMarginEditable write SetMarginEditable;
  • Property name
    DefaultEdging
    Type
    Cardinal
    Description

    Gets or sets default edging.

    Declaration

    property DefaultEdging: Cardinal read GetDefaultEdging write SetDefaultEdging;
  • Property name
    CuttingDimensions
    Type
    Description

    Gets or sets cutting dimensions.

    Declaration

    property CuttingDimensions: TCuttingDimensions read GetCuttingDimensions write SetCuttingDimensions;
  • Property name
    Bandable
    Type
    Boolean
    Description

    Gets or sets whether bandable.

    Declaration

    property Bandable: Boolean read GetBandable write SetBandable;
  • Property name
    Grindable
    Type
    Boolean
    Description

    Gets or sets whether grindable.

    Declaration

    property Grindable: Boolean read GetGrindable write SetGrindable;
  • Property name
    Colorable
    Type
    Boolean
    Description

    Gets or sets whether colorable.

    Declaration

    property Colorable: Boolean read GetColorable write SetColorable;
  • Property name
    Device
    Type
    IDevice
    Description

    Cutting device of the material. Every new material a plugin stages in LoadFile must have it set to a device from ITonCut.Devices.

    Declaration

    property Device: IDevice read GetDevice write SetDevice;
  • Property name
    Algorithm
    Type
    WideString
    Description

    Name of the optimization algorithm this material prefers. An empty string or default lets TonCut choose the algorithm from the material kind and the device’s capabilities. Any other value is honoured only with an Enterprise license (otherwise TonCut makes the automatic choice), and it must then name an algorithm registered in TonCut: an unregistered name makes the optimization fail. The property is a WideString since the 2026-11 contract correction at engine version 24; a plugin built against an older SDK, which declared it as a Delphi String, must not use it.

    Declaration

    property Algorithm: WideString read GetAlgorithm write SetAlgorithm;
  • Property name
    QualityLevel
    Type
    Description

    Gets or sets quality level.

    Declaration

    property QualityLevel: TQualityLevel read GetQualityLevel write SetQualityLevel;
  • Property name
    ReuseWaste
    Type
    Boolean
    Description

    Whether waste can be reused as stock.

    Declaration

    property ReuseWaste: Boolean read GetReuseWaste write SetReuseWaste;
  • Property name
    MinShorterRecycleSize
    Type
    Cardinal
    Description

    Gets or sets min shorter recycle size.

    Declaration

    property MinShorterRecycleSize: Cardinal read GetMinShorterRecycleSize write SetMinShorterRecycleSize;
  • Property name
    MinLongerRecycleSize
    Type
    Cardinal
    Description

    Gets or sets min longer recycle size.

    Declaration

    property MinLongerRecycleSize: Cardinal read GetMinLongerRecycleSize write SetMinLongerRecycleSize;
  • Property name
    MaxShorterRecycleSize
    Type
    Cardinal
    Description

    Maximum shorter dimension accepted for recycled material reuse.

    Declaration

    property MaxShorterRecycleSize: Cardinal read GetMaxShorterRecycleSize write SetMaxShorterRecycleSize;
  • Property name
    MaxLongerRecycleSize
    Type
    Cardinal
    Description

    Maximum longer dimension accepted for recycled material reuse.

    Declaration

    property MaxLongerRecycleSize: Cardinal read GetMaxLongerRecycleSize write SetMaxLongerRecycleSize;
  • Property name
    PrefShorterRecycleSize
    Type
    Cardinal
    Description

    Preferred shorter dimension for recycled material reuse.

    Declaration

    property PrefShorterRecycleSize: Cardinal read GetPrefShorterRecycleSize write SetPrefShorterRecycleSize;
  • Property name
    PrefLongerRecycleSize
    Type
    Cardinal
    Description

    Preferred longer dimension for recycled material reuse.

    Declaration

    property PrefLongerRecycleSize: Cardinal read GetPrefLongerRecycleSize write SetPrefLongerRecycleSize;
  • Property name
    EffectiveMinShorterRecycleSize
    Type
    Cardinal
    Description

    Gets effective min shorter recycle size.

    Declaration

    property EffectiveMinShorterRecycleSize: Cardinal read GetEffectiveMinShorterRecycleSize;
  • Property name
    EffectiveMinLongerRecycleSize
    Type
    Cardinal
    Description

    Gets effective min longer recycle size.

    Declaration

    property EffectiveMinLongerRecycleSize: Cardinal read GetEffectiveMinLongerRecycleSize;
  • Property name
    EffectiveMaxShorterRecycleSize
    Type
    Cardinal
    Description

    Effective maximum shorter recycle dimension after host rules are applied.

    Declaration

    property EffectiveMaxShorterRecycleSize: Cardinal read GetEffectiveMaxShorterRecycleSize;
  • Property name
    EffectiveMaxLongerRecycleSize
    Type
    Cardinal
    Description

    Effective maximum longer recycle dimension after host rules are applied.

    Declaration

    property EffectiveMaxLongerRecycleSize: Cardinal read GetEffectiveMaxLongerRecycleSize;
  • Property name
    EffectivePrefShorterRecycleSize
    Type
    Cardinal
    Description

    Gets effective pref shorter recycle size.

    Declaration

    property EffectivePrefShorterRecycleSize: Cardinal read GetEffectivePrefShorterRecycleSize;
  • Property name
    EffectivePrefLongerRecycleSize
    Type
    Cardinal
    Description

    Gets effective pref longer recycle size.

    Declaration

    property EffectivePrefLongerRecycleSize: Cardinal read GetEffectivePrefLongerRecycleSize;
  • Property name
    Kerf
    Type
    Cardinal
    Description

    Gets or sets kerf.

    Declaration

    property Kerf: Cardinal read GetKerf write SetKerf;
    Illustration of a circular saw cutting a wooden board. The kerf is the strip of material the blade removes at each cut.
  • Property name
    MinEdgeDistance
    Type
    IRectangle
    Description

    Per-edge minimum distance exposed as a signed rectangle; a negative side means inherited or unspecified.

    Declaration

    property MinEdgeDistance: IRectangle read GetMinEdgeDistance;
  • Property name
    AllowEdgeCuts
    Type
    Boolean
    Description

    Whether material edge cuts are allowed. It cannot be enabled when either MinCutSize or MinCutDistance is positive; legacy MinCutWidth is only an alias for MinCutSize.

    Declaration

    property AllowEdgeCuts: Boolean read GetAllowEdgeCuts write SetAllowEdgeCuts;
  • Property name
    RecycleEdgingOn
    Type
    Boolean
    Description

    Whether edging is included in recycling logic.

    Declaration

    property RecycleEdgingOn: Boolean read GetRecycleEdgingOn write SetRecycleEdgingOn;
  • Property name
    RecycleEdging
    Type
    Cardinal
    Description

    Recycling edging configuration.

    Declaration

    property RecycleEdging: Cardinal read GetRecycleEdging write SetRecycleEdging;
  • Property name
    StackCutting
    Type
    Boolean
    Description

    Gets or sets whether stack cutting.

    Declaration

    property StackCutting: Boolean read GetStackCutting write SetStackCutting;
  • Property name
    StackSize
    Type
    Cardinal
    Description

    Maximum stack size or batch size.

    Declaration

    property StackSize: Cardinal read GetStackSize write SetStackSize;
  • Property name
    AllowPartialStack
    Type
    Boolean
    Description

    Whether partial stacks are allowed.

    Declaration

    property AllowPartialStack: Boolean read GetAllowPartialStack write SetAllowPartialStack;
  • Property name
    MinStackSize
    Type
    Cardinal
    Description

    Gets or sets min stack size.

    Declaration

    property MinStackSize: Cardinal read GetMinStackSize write SetMinStackSize;
  • Property name
    PricePerSqM
    Type
    TTcPrice
    Description

    Unit price per square meter.

    Declaration

    property PricePerSqM: TTcPrice read GetPricePerSqM Write SetPricePerSqM;
  • Property name
    WeightOfSqM
    Type
    TTcWeight
    Description

    Weight per square meter.

    Declaration

    property WeightOfSqM: TTcWeight read GetWeightOfSqM Write SetWeightOfSqM;
  • Property name
    PricePerMeter
    Type
    TTcPrice
    Description

    Unit price per running meter.

    Declaration

    property PricePerMeter: TTcPrice read GetPricePerMeter Write SetPricePerMeter;
  • Property name
    WeightOfMeter
    Type
    TTcWeight
    Description

    Weight per running meter.

    Declaration

    property WeightOfMeter: TTcWeight read GetWeightOfMeter Write SetWeightOfMeter;
  • Property name
    CutCostPerMeter
    Type
    TTcPrice
    Description

    Cost per running meter of cut.

    Declaration

    property CutCostPerMeter: TTcPrice read GetCutCostPerMeter Write SetCutCostPerMeter;
  • Property name
    ReuseCost
    Type
    TTcPrice
    Description

    Reuse-related cost value.

    Declaration

    property ReuseCost: TTcPrice read GetReuseCost Write SetReuseCost;
  • Property name
    UtilizationCostPerKg
    Type
    TTcPrice
    Description

    Utilization cost per kilogram.

    Declaration

    property UtilizationCostPerKg: TTcPrice read GetUtilizationCostPerKg Write SetUtilizationCostPerKg;
  • Property name
    SegmentShiftCost
    Type
    TTcPrice
    Description

    Cost assigned to segment shifts.

    Declaration

    property SegmentShiftCost: TTcPrice read GetSegmentShiftCost Write SetSegmentShiftCost;
  • Property name
    SegmentRotationCost
    Type
    TTcPrice
    Description

    Cost assigned to segment rotation.

    Declaration

    property SegmentRotationCost: TTcPrice read GetSegmentRotationCost Write SetSegmentRotationCost;
  • Property name
    PriceToCostMultiplier
    Type
    Double
    Description

    Multiplier used to convert cost into price.

    Declaration

    property PriceToCostMultiplier: Double read GetPriceToCostMultiplier write SetPriceToCostMultiplier;
  • Property name
    ReusableWasteExpectedUsage
    Type
    Double
    Description

    Gets or sets reusable waste expected usage.

    Declaration

    property ReusableWasteExpectedUsage: Double read GetReusableWasteExpectedUsage write SetReusableWasteExpectedUsage;
  • Property name
    CutExcess
    Type
    Integer
    Description

    Gets or sets cut excess.

    Declaration

    property CutExcess: Integer read GetCutExcess write SetCutExcess;
  • Property name
    CutShiftTotalLimit
    Type
    Integer
    Description

    Gets or sets cut shift total limit.

    Declaration

    property CutShiftTotalLimit: Integer read GetCutShiftTotalLimit write SetCutShiftTotalLimit;
  • Property name
    CutShiftHorzLimit
    Type
    Integer
    Description

    Horizontal limit for cut shifting.

    Declaration

    property CutShiftHorzLimit: Integer read GetCutShiftHorzLimit write SetCutShiftHorzLimit;
  • Property name
    CutShiftVertLimit
    Type
    Integer
    Description

    Vertical limit for cut shifting.

    Declaration

    property CutShiftVertLimit: Integer read GetCutShiftVertLimit write SetCutShiftVertLimit;
  • Property name
    CustomData
    Type
    WideString
    Description

    Opaque custom text payload stored with the object.

    Declaration

    property CustomData: WideString read GetCustomData write SetCustomData;
  • Property name
    AlgorithmData
    Type
    ITcAlgorithmData
    Description

    Mutable access to opaque, implementation-defined algorithm data owned by the current device, material, piece, or stock sheet. No public payload schema or compatibility guarantee is provided.

    Declaration

    property AlgorithmData: ITcAlgorithmData read GetAlgorithmData;

    No C++ declaration in the SDK's language-support manifest. If your TonCutPluginSdk.hpp lacks it, declare it in the vtable order shown above.

  • Property name
    StandardSheets
    Type
    IStandardSheets
    Description

    Associated standard sheets collection or helper interface.

    Declaration

    property StandardSheets: IStandardSheets read GetStandardSheets;
  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Event fired when the object or collection changes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;
  • Property name
    OnIdChange
    Type
    IIdChangeEvent
    Description

    Event fired when an identifier changes.

    Declaration

    property OnIdChange: IIdChangeEvent read GetOnIdChange;
  • Property name
    OnStandardSheetAdd
    Type
    IStandardSheetChangeEvent
    Description

    Event exposed through OnStandardSheetAdd.

    Declaration

    property OnStandardSheetAdd: IStandardSheetChangeEvent read GetOnStandardSheetAdd;
  • Property name
    OnStandardSheetRemove
    Type
    IStandardSheetChangeEvent
    Description

    Event exposed through OnStandardSheetRemove.

    Declaration

    property OnStandardSheetRemove: IStandardSheetChangeEvent read GetOnStandardSheetRemove;
  • Property name
    OnStandardSheetChange
    Type
    IStandardSheetChangeEvent
    Description

    Event exposed through OnStandardSheetChange.

    Declaration

    property OnStandardSheetChange: IStandardSheetChangeEvent read GetOnStandardSheetChange;

Methods

  • Method name
    SetPricePerSqM()
    Type
    procedure
    Description

    Assign price per sq m.

    Declaration

    procedure SetPricePerSqM(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetWeightOfSqM()
    Type
    procedure
    Description

    Assign weight of sq m.

    Declaration

    procedure SetWeightOfSqM(aWeight: TTcWeight); safecall;
    Parameters
    aWeight
    TTcWeight
    Value for weight.
  • Method name
    SetPricePerMeter()
    Type
    procedure
    Description

    Assign price per meter.

    Declaration

    procedure SetPricePerMeter(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetWeightOfMeter()
    Type
    procedure
    Description

    Assign weight of meter.

    Declaration

    procedure SetWeightOfMeter(aWeight: TTcWeight); safecall;
    Parameters
    aWeight
    TTcWeight
    Value for weight.
  • Method name
    SetCutCostPerMeter()
    Type
    procedure
    Description

    Assign cut cost per meter.

    Declaration

    procedure SetCutCostPerMeter(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetReuseCost()
    Type
    procedure
    Description

    Assign reuse cost.

    Declaration

    procedure SetReuseCost(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetUtilizationCostPerKg()
    Type
    procedure
    Description

    Assign utilization cost per kg.

    Declaration

    procedure SetUtilizationCostPerKg(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetSegmentShiftCost()
    Type
    procedure
    Description

    Assign segment shift cost.

    Declaration

    procedure SetSegmentShiftCost(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    SetSegmentRotationCost()
    Type
    procedure
    Description

    Assign segment rotation cost.

    Declaration

    procedure SetSegmentRotationCost(aCost: TTcPrice); safecall;
    Parameters
    aCost
    TTcPrice
    Value for cost.
  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aOther: IMaterial); safecall;
    Parameters
    aOtherconst
    Source object whose values should be copied.
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Start a batched update so change notifications can be delayed.

    Declaration

    procedure BeginUpdate(); safecall;
  • Method name
    EndUpdate()
    Type
    procedure
    Description

    Finish a batched update and allow deferred notifications to resume.

    Declaration

    procedure EndUpdate(); safecall;

IMaterials

Collection interface used to create, enumerate, query, and reload a shared Desktop object set.

IID
{49E95AA5-2437-47E1-8D38-21BEC146C6AD}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIMaterials
Vtable order (23 methods, slots 3 to 25, after the three IUnknown slots)
  1. function CreateMaterial(): IMaterial;
  2. function CreateStandardSheet(): IStandardSheet;
  3. procedure Add(aMaterial: IMaterial);
  4. procedure DeleteByIndex(aIndex: Cardinal);
  5. procedure DeleteById(aId: Int64);
  6. procedure Remove(const aMaterial: IMaterial);
  7. function IndexOf(const aMaterial: IMaterial): Integer; overload;
  8. function IndexOf(aId: Int64): Integer; overload;
  9. function FindDuplicate(const aMaterial: IMaterial; aCheckTitle: Boolean = False): IMaterial;
  10. function FindByTitle(const aTitle: WideString; aKind: TMaterialKind; aWidth, aThickness: Cardinal): IMaterial;
  11. function FindUniqueName(const aBaseName: WideString; aKind: TMaterialKind; aWidth, aThickness: Cardinal): WideString;
  12. function CheckUniqueName(const aTitle: WideString; aKind: TMaterialKind; aWidth, aThickness: Cardinal; const aIgnoreMaterial: IMaterial): Boolean; overload;
  13. function CheckUniqueName(aMaterial: IMaterial; aAutoFix: Boolean = False): Boolean; overload;
  14. function GetCount(): Integer;
  15. function GetByIndex(aIndex: Cardinal): IMaterial;
  16. function GetById(aId: Int64): IMaterial;
  17. function GetOnAdd(): IMaterialChangeEvent;
  18. function GetOnRemove(): IMaterialChangeEvent;
  19. procedure Reload();
  20. procedure BeginUpdate();
  21. procedure EndUpdate();
  22. function IsUpdating(): Boolean;
  23. function GetOnChange(): INotifyEvent;

Properties

  • Property name
    Count
    Type
    Integer
    Description

    Number of items currently exposed by the interface.

    Declaration

    property Count: Integer read GetCount;
  • Property name
    Items
    Type
    IMaterial
    Description

    Indexed property used to read one item from the collection.

    Declaration

    property Items[aIndex: Cardinal]: IMaterial read GetByIndex; default;
    Index Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
    Value
    The collection item located at the supplied index.
  • Property name
    OnAdd
    Type
    IMaterialChangeEvent
    Description

    Event fired when an item is added. Suppressed during a collection update scope; the outermost changed scope emits one collection OnChange instead.

    Declaration

    property OnAdd: IMaterialChangeEvent read GetOnAdd;
  • Property name
    OnRemove
    Type
    IMaterialChangeEvent
    Description

    Event fired when an item is removed. Suppressed during a collection update scope; the outermost changed scope emits one collection OnChange instead.

    Declaration

    property OnRemove: IMaterialChangeEvent read GetOnRemove;
  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Collection notification emitted once when the outermost changed update scope ends (engine version 25). Empty scopes emit nothing. Outside a scope, adds/removes use OnAdd/OnRemove, and item edits do not emit this collection event. Item events remain active inside collection scopes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;

Methods

  • Method name
    CreateMaterial()
    Type
    IMaterial
    Description

    Create a new, empty material. No dialog opens, the result is never null, and the object is not in the collection until you pass it to Add. A new object has a temporary negative Id.

    Declaration

    function CreateMaterial(): IMaterial; safecall;
    Returns
    A new, empty material that is not yet in the collection; never null.
  • Method name
    CreateStandardSheet()
    Type
    IStandardSheet
    Description

    Create a new standard sheet instance.

    Declaration

    function CreateStandardSheet(): IStandardSheet; safecall;
    Returns
    A new standard sheet interface instance.
  • Method name
    Add()
    Type
    procedure
    Description

    Add an object created by this collection’s factory method. In LoadFile, add to the staging collection you received. Add does not check title uniqueness, and adding an object that is already in the collection raises an error.

    Declaration

    procedure Add(aMaterial: IMaterial); safecall;
    Parameters
    aMaterial
    Material instance being queried or modified.
  • Method name
    DeleteByIndex()
    Type
    procedure
    Description

    Delete the item at the specified zero-based index.

    Declaration

    procedure DeleteByIndex(aIndex: Cardinal); safecall;
    Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
  • Method name
    DeleteById()
    Type
    procedure
    Description

    Delete the item with the specified TonCut identifier.

    Declaration

    procedure DeleteById(aId: Int64); safecall;
    Parameters
    aId
    Int64
    TonCut object identifier.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(const aMaterial: IMaterial); safecall;
    Parameters
    aMaterialconst
    Material instance being queried or modified.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aMaterial: IMaterial): Integer; overload; safecall;

    C++ name: IndexOfByObject. The C++ header gives each Pascal overload its own name; the vtable slot is the same.

    Parameters
    aMaterialconst
    Material instance being queried or modified.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(aId: Int64): Integer; overload; safecall;

    C++ name: IndexOfById. The C++ header gives each Pascal overload its own name; the vtable slot is the same.

    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    FindDuplicate()
    Type
    IMaterial
    Description

    Search for an existing item that duplicates the supplied object.

    Declaration

    function FindDuplicate(const aMaterial: IMaterial; aCheckTitle: Boolean = False): IMaterial; safecall;
    Parameters
    aMaterialconst
    Material instance being queried or modified.
    aCheckTitle
    Boolean
    Whether title collisions should count as duplicates.
    Returns
    The matching material interface instance, or null when not found.
  • Method name
    FindByTitle()
    Type
    IMaterial
    Description

    Find a material by title, kind, width, and thickness. All four must match exactly, and the title comparison is case-sensitive; pass width 0 for anything that is not a 1D material. Inside LoadFile it searches only what the current call has staged.

    Declaration

    function FindByTitle(const aTitle: WideString; aKind: TMaterialKind; aWidth: Cardinal; aThickness: Cardinal): IMaterial; safecall;
    Parameters
    aTitleconst
    WideString
    Human-readable title.
    aKind
    Value for kind.
    aWidth
    Cardinal
    Width value in hundredths of a millimeter.
    aThickness
    Cardinal
    Thickness value in hundredths of a millimeter.
    Returns
    The matching material interface instance, or null when not found.
  • Method name
    FindUniqueName()
    Type
    WideString
    Description

    Generate or return a title that is unique within the collection.

    Declaration

    function FindUniqueName(const aBaseName: WideString; aKind: TMaterialKind; aWidth: Cardinal; aThickness: Cardinal): WideString; safecall;
    Parameters
    aBaseNameconst
    WideString
    Base title used while generating a unique name.
    aKind
    Value for kind.
    aWidth
    Cardinal
    Width value in hundredths of a millimeter.
    aThickness
    Cardinal
    Thickness value in hundredths of a millimeter.
    Returns
    A title string that is unique within the collection.
  • Method name
    CheckUniqueName()
    Type
    Boolean
    Description

    Check whether a proposed title is unique within the collection.

    Declaration

    function CheckUniqueName(const aTitle: WideString; aKind: TMaterialKind; aWidth: Cardinal; aThickness: Cardinal; const aIgnoreMaterial: IMaterial): Boolean; overload; safecall;
    Parameters
    aTitleconst
    WideString
    Human-readable title.
    aKind
    Value for kind.
    aWidth
    Cardinal
    Width value in hundredths of a millimeter.
    aThickness
    Cardinal
    Thickness value in hundredths of a millimeter.
    aIgnoreMaterialconst
    Material to exclude from uniqueness checks.
    Returns
    Returns true if the proposed title is unique within the collection.
  • Method name
    CheckUniqueName()
    Type
    Boolean
    Description

    Check whether a proposed title is unique within the collection.

    Declaration

    function CheckUniqueName(aMaterial: IMaterial; aAutoFix: Boolean = False): Boolean; overload; safecall;

    C++ name: CheckUniqueNameByMaterial. The C++ header gives each Pascal overload its own name; the vtable slot is the same.

    Parameters
    aMaterial
    Material instance being queried or modified.
    aAutoFix
    Boolean
    Whether the method may adjust data automatically.
    Returns
    Returns true if the proposed title is unique within the collection.
  • Method name
    GetById()
    Type
    IMaterial
    Description

    Return the item stored under the specified TonCut identifier.

    Declaration

    function GetById(aId: Int64): IMaterial; safecall;
    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    The matching material interface instance.
  • Method name
    Reload()
    Type
    procedure
    Description

    Reload the underlying data from the host or storage layer.

    Declaration

    procedure Reload(); safecall;
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Begin a nested collection notification scope (engine version 25). Balance each call with EndUpdate in finally. Changes take effect immediately; the scope provides no rollback.

    Declaration

    procedure BeginUpdate(); safecall;
  • Method name
    EndUpdate()
    Type
    procedure
    Description

    End one collection notification scope (engine version 25). The outermost call emits one collection OnChange only if an add, remove, or item OnChange occurred in the scope; suppressed add/remove callbacks are not replayed. Raises an error without a matching BeginUpdate.

    Declaration

    procedure EndUpdate(); safecall;
  • Method name
    IsUpdating()
    Type
    Boolean
    Description

    Report whether at least one collection notification scope remains open (engine version 25). Nested scopes remain active until the outermost EndUpdate.

    Declaration

    function IsUpdating(): Boolean; safecall;
    Returns
    Returns true while the interface is inside a BeginUpdate / EndUpdate batch.

IMaterialChangeEventHandler

Callback sink consumed by the matching change-event interface.

IID
{8E22DAE9-39E6-4E8F-9CB8-603BDE907D1A}
Parent
IUnknown
Unit
uIMaterialChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
  1. procedure Invoke(aSender: IUnknown; aMaterial: IMaterial; aIndex: Integer);

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown; aMaterial: IMaterial; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aMaterial
    Material instance being queried or modified.
    aIndex
    Integer
    Zero-based position within a collection.

IMaterialChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

IID
{E4C2B53C-3012-4CF5-953F-483F7E4E01ED}
Parent
IUnknown
Unit
uIMaterialChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
  1. procedure Add(aHandler: IMaterialChangeEventHandler);
  2. procedure Remove(aHandler: IMaterialChangeEventHandler);
  3. procedure Invoke(aSender: IUnknown; aMaterial: IMaterial; aIndex: Integer);

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: IMaterialChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: IMaterialChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aMaterial: IMaterial; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aMaterial
    Event payload field for material.
    aIndex
    Integer
    Event payload field for index.

IStandardSheet

Reusable stock-size template attached to a material definition.

IID
{7C43AB12-1C9C-4FB6-A076-2CC2E848DA8D}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIStandardSheet

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (16 methods, slots 3 to 18, after the three IUnknown slots)
  1. function GetId(): Int64;
  2. procedure SetId(aId: Int64);
  3. function GetTitle(): WideString;
  4. procedure SetTitle(const aTitle: WideString);
  5. function GetLength(): Cardinal;
  6. procedure SetLength(aLength: Cardinal);
  7. function GetWidth(): Cardinal;
  8. procedure SetWidth(aWidth: Cardinal);
  9. function GetOrnament(): TOrnament;
  10. procedure SetOrnament(aOrnament: TOrnament);
  11. function GetEdging(): IRectangle;
  12. function GetOnChange(): INotifyEvent;
  13. function GetOnIdChange(): IIdChangeEvent;
  14. procedure Assign(const aStandardSheet: IStandardSheet);
  15. procedure BeginUpdate();
  16. procedure EndUpdate();

Properties

  • Property name
    Id
    Type
    Int64
    Description

    Persistent numeric identifier used by TonCut to track the object.

    Declaration

    property Id: Int64 read GetId write SetId;
  • Property name
    Title
    Type
    WideString
    Description

    Human-readable title shown to users.

    Declaration

    property Title: WideString read GetTitle write SetTitle;
  • Property name
    Length
    Type
    Cardinal
    Description

    Length value stored on the object.

    Declaration

    property Length: Cardinal read GetLength write SetLength;
  • Property name
    Width
    Type
    Cardinal
    Description

    Width value stored on the object.

    Declaration

    property Width: Cardinal read GetWidth write SetWidth;
  • Property name
    Ornament
    Type
    Description

    Grain or ornament direction associated with the stock item.

    Declaration

    property Ornament: TOrnament read GetOrnament write SetOrnament;
  • Property name
    Edging
    Type
    IRectangle
    Description

    Rectangle-like edging or margin helper attached to the object.

    Declaration

    property Edging: IRectangle read GetEdging;
  • Property name
    OnChange
    Type
    INotifyEvent
    Description

    Event fired when the object or collection changes.

    Declaration

    property OnChange: INotifyEvent read GetOnChange;
  • Property name
    OnIdChange
    Type
    IIdChangeEvent
    Description

    Event fired when an identifier changes.

    Declaration

    property OnIdChange: IIdChangeEvent read GetOnIdChange;

Methods

  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aStandardSheet: IStandardSheet); safecall;
    Parameters
    aStandardSheetconst
    Standard sheet instance being queried or modified.
  • Method name
    BeginUpdate()
    Type
    procedure
    Description

    Start a batched update so change notifications can be delayed.

    Declaration

    procedure BeginUpdate(); safecall;
  • Method name
    EndUpdate()
    Type
    procedure
    Description

    Finish a batched update and allow deferred notifications to resume.

    Declaration

    procedure EndUpdate(); safecall;

IStandardSheets

Collection interface used to create, enumerate, query, and reload a shared Desktop object set.

IID
{5CD3AAB4-8764-431B-B32D-06815C9B4B79}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIStandardSheets

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (13 methods, slots 3 to 15, after the three IUnknown slots)
  1. procedure Assign(const aOther: IStandardSheets);
  2. procedure Clear();
  3. procedure Add(aStandardSheet: IStandardSheet);
  4. procedure DeleteByIndex(aIndex: Cardinal);
  5. procedure Remove(const aStandardSheet: IStandardSheet);
  6. function IndexOf(const aStandardSheet: IStandardSheet): Integer; overload;
  7. function Find(aLength, aWidth: Cardinal; aOrnament: TOrnament; aMarginLeft, aMarginTop, aMarginRight, aMarginBottom: Cardinal): IStandardSheet; overload;
  8. function Find(aLength, aWidth: Cardinal; aMarginLeft, aMarginTop, aMarginRight, aMarginBottom: Cardinal): IStandardSheet; overload;
  9. function CheckUniqueName(const aTitle: WideString; const aIgnoreStandardSheet: IStandardSheet): Boolean;
  10. function GetCount(): Integer;
  11. function GetByIndex(aIndex: Cardinal): IStandardSheet;
  12. function GetOnAdd(): IStandardSheetChangeEvent;
  13. function GetOnRemove(): IStandardSheetChangeEvent;

Properties

  • Property name
    Count
    Type
    Integer
    Description

    Number of items currently exposed by the interface.

    Declaration

    property Count: Integer read GetCount;
  • Property name
    Items
    Type
    IStandardSheet
    Description

    Indexed property used to read one item from the collection.

    Declaration

    property Items[aIndex: Cardinal]: IStandardSheet read GetByIndex; default;
    Index Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
    Value
    The collection item located at the supplied index.
  • Property name
    OnAdd
    Type
    IStandardSheetChangeEvent
    Description

    Event fired when an item is added.

    Declaration

    property OnAdd: IStandardSheetChangeEvent read GetOnAdd;
  • Property name
    OnRemove
    Type
    IStandardSheetChangeEvent
    Description

    Event fired when an item is removed.

    Declaration

    property OnRemove: IStandardSheetChangeEvent read GetOnRemove;

Methods

  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aOther: IStandardSheets); safecall;
    Parameters
    aOtherconst
    Source object whose values should be copied.
  • Method name
    Clear()
    Type
    procedure
    Description

    Remove all items from the collection.

    Declaration

    procedure Clear(); safecall;
  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aStandardSheet: IStandardSheet); safecall;
    Parameters
    aStandardSheet
    Standard sheet instance being queried or modified.
  • Method name
    DeleteByIndex()
    Type
    procedure
    Description

    Delete the item at the specified zero-based index.

    Declaration

    procedure DeleteByIndex(aIndex: Cardinal); safecall;
    Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(const aStandardSheet: IStandardSheet); safecall;
    Parameters
    aStandardSheetconst
    Standard sheet instance being queried or modified.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aStandardSheet: IStandardSheet): Integer; overload; safecall;
    Parameters
    aStandardSheetconst
    Standard sheet instance being queried or modified.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    Find()
    Type
    IStandardSheet
    Description

    Find an item matching the supplied criteria.

    Declaration

    function Find(aLength: Cardinal; aWidth: Cardinal; aOrnament: TOrnament; aMarginLeft: Cardinal; aMarginTop: Cardinal; aMarginRight: Cardinal; aMarginBottom: Cardinal): IStandardSheet; overload; safecall;
    Parameters
    aLength
    Cardinal
    Length value in hundredths of a millimeter.
    aWidth
    Cardinal
    Width value in hundredths of a millimeter.
    aOrnament
    Value for ornament.
    aMarginLeft
    Cardinal
    Left margin value in hundredths of a millimeter.
    aMarginTop
    Cardinal
    Top margin value in hundredths of a millimeter.
    aMarginRight
    Cardinal
    Right margin value in hundredths of a millimeter.
    aMarginBottom
    Cardinal
    Bottom margin value in hundredths of a millimeter.
    Returns
    The matching standard sheet interface instance, or null when not found.
  • Method name
    Find()
    Type
    IStandardSheet
    Description

    Find an item matching the supplied criteria.

    Declaration

    function Find(aLength: Cardinal; aWidth: Cardinal; aMarginLeft: Cardinal; aMarginTop: Cardinal; aMarginRight: Cardinal; aMarginBottom: Cardinal): IStandardSheet; overload; safecall;
    Parameters
    aLength
    Cardinal
    Length value in hundredths of a millimeter.
    aWidth
    Cardinal
    Width value in hundredths of a millimeter.
    aMarginLeft
    Cardinal
    Left margin value in hundredths of a millimeter.
    aMarginTop
    Cardinal
    Top margin value in hundredths of a millimeter.
    aMarginRight
    Cardinal
    Right margin value in hundredths of a millimeter.
    aMarginBottom
    Cardinal
    Bottom margin value in hundredths of a millimeter.
    Returns
    The matching standard sheet interface instance, or null when not found.
  • Method name
    CheckUniqueName()
    Type
    Boolean
    Description

    Check whether a proposed title is unique within the collection.

    Declaration

    function CheckUniqueName(const aTitle: WideString; const aIgnoreStandardSheet: IStandardSheet): Boolean; safecall;
    Parameters
    aTitleconst
    WideString
    Human-readable title.
    aIgnoreStandardSheetconst
    Standard sheet to exclude from uniqueness checks.
    Returns
    Returns true if the proposed title is unique within the collection.

IStandardSheetChangeEventHandler

Callback sink consumed by the matching change-event interface.

IID
{7D9FE7E4-F2D7-463E-9231-80075963506E}
Parent
IUnknown
Unit
uIStandardSheetChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
  1. procedure Invoke(aSender: IUnknown; aStandardSheet: IStandardSheet; aIndex: Integer);

Methods

  • Method name
    Invoke()
    Type
    procedure
    Description

    Handle the event callback when the owning event interface invokes it.

    Declaration

    procedure Invoke(aSender: IUnknown; aStandardSheet: IStandardSheet; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aStandardSheet
    Standard sheet instance being queried or modified.
    aIndex
    Integer
    Zero-based position within a collection.

IStandardSheetChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

IID
{656C4695-86AD-4DC3-BC31-A37FD9F01D5E}
Parent
IUnknown
Unit
uIStandardSheetChangeEvent

The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.

Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
  1. procedure Add(aHandler: IStandardSheetChangeEventHandler);
  2. procedure Remove(aHandler: IStandardSheetChangeEventHandler);
  3. procedure Invoke(aSender: IUnknown; aStandardSheet: IStandardSheet; aIndex: Integer);

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: IStandardSheetChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: IStandardSheetChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aStandardSheet: IStandardSheet; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aStandardSheet
    Event payload field for standard sheet.
    aIndex
    Integer
    Event payload field for index.

Was this page helpful?