SetRepositoryHole
Name
SetRepositoryHole
When to use it
After setting the NumberOfRepositoryPieces property and after setting the corresponding sheet (SetRepositoryPiece) anytime before the OnFinish event ends.
Prototype
HRESULT SetRepositoryHole(
RepositoryIndex: long /*[in]*/,
HoleIndex: long /*[in]*/,
TopX: long/*[in]*/,
TopY: long /*[in]*/,
BottomX: long /*[in]*/,
BottomY: long /*[in]*/,
ExternalID: long/*[in]*/,
);
Explanations
Sets the position and size of each hole from Repository (Stock). By using holes you may specify faults (areas to be avoided) in the material.
The cutting algorithms will generate solutions such that no demand piece will be placed over (intersect) a hole.
The number of holes in the sheet is set by the SetRepositoryPiece property.
Parameters
RepositoryIndex - the index of the sheet whose holes are you set. This number is in range [0...NumberOfRepositoryPieces - 1].
HoleIndex - the index of the hole whose information are set.
TopX, TopY, BottomX, BottomY - margins of hole (top-left and bottom-right). These numbers must be integer. For working with real numbers read here.
ExternalID - an user defined value which can help you to track down the hole during the OnFinish event.
See Also
GetRepositoryHole, NumberOfRepositoryPieces, GetRepositoryPiece, SetRepositoryPiece, Working with real numbers.