DiamondDart
This file contains diamond dart functionality, you can create diamond dart, delete diamond dart etc...
BwApiDiamondDartCreate
Creates a new diamond dart.
Python
BwApi.DiamondDartCreate(garmentId, shapeId, path)
C++
BwApiDiamondDartCreate(garmentId, shapeId, path, diamondDartId);
C#
BwApi.DiamondDartCreate(garmentId, shapeId, path);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | path | Diamond dart path (location of top point, bottom point and width of the diamond shape). |
Out | diamondDartId | The newly created diamond dart ID. |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartDelete
Delete a diamond dart.
Python
BwApi.DiamondDartDelete(garmentId, shapeId, diamondDartId)
C++
BwApiDiamondDartDelete(garmentId, shapeId, diamondDartId);
C#
BwApi.DiamondDartDelete(garmentId, shapeId, diamondDartId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartIds
Get all the diamond dart IDs for a shape.
Python
BwApi.DiamondDartIds(garmentId, shapeId, diamondDartIds)
C++
BwApiDiamondDartIds(garmentId, shapeId, diamondDartIds);
C#
BwApi.DiamondDartIds(garmentId, shapeId, diamondDartIds);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartIds | Array containing all the diamond dart IDs for the given shape. |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartPathGet
Get the diamond dart's path.
Python
BwApi.DiamondDartPathGet(garmentId, shapeId, diamondDartId)
C++
BwApiDiamondDartPathGet(garmentId, shapeId, diamondDartId, path);
C#
BwApi.DiamondDartPathGet(garmentId, shapeId, diamondDartId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
Out | path | Get the path of the diamond dart (see BwApiDiamondDartPath struct). |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartPathSet
Set the diamond dart's path.
Python
BwApi.DiamondDartPathSet(garmentId, shapeId, diamondDartId, path)
C++
BwApiDiamondDartPathSet(garmentId, shapeId, diamondDartId, path);
C#
BwApi.DiamondDartPathSet(garmentId, shapeId, diamondDartId, path);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
In | path | Set the path of the diamond dart (see BwApiDiamondDartPath struct). |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartStitchedGet
Get a diamond dart's stitched property.
Python
BwApi.DiamondDartStitchedGet(garmentId, shapeId, diamondDartId)
C++
BwApiDiamondDartStitchedGet(garmentId, shapeId, diamondDartId, stitched);
C#
BwApi.DiamondDartStitchedGet(garmentId, shapeId, diamondDartId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
Out | stitched | 1 if stitched, 0 if not stitched. |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartStitchedSet
Set diamond dart's stitched property.
Python
BwApi.DiamondDartStitchedSet(garmentId, shapeId, diamondDartId, stitched)
C++
BwApiDiamondDartStitchedSet(garmentId, shapeId, diamondDartId, stitched);
C#
BwApi.DiamondDartStitchedSet(garmentId, shapeId, diamondDartId, stitched);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
In | stitched | 1 if stitched, 0 if not stitched. |
Returns: Error/success code (see BwApiErrorCodes enum).
---
BwApiDiamondDartMirroredIdGet
Get diamond dart's mirrored ID.
Python
BwApi.DiamondDartMirroredIdGet(garmentId, shapeId, diamondDartId)
C++
BwApiDiamondDartMirroredIdGet(garmentId, shapeId, diamondDartId, mirroreddiamondDartId);
C#
BwApi.DiamondDartMirroredIdGet(garmentId, shapeId, diamondDartId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID. |
In | shapeId | Existing shape ID. |
In | diamondDartId | Existing diamond dart ID. |
Out | mirroreddiamondDartId | Mirrored diamond dart ID. |
Returns: Error/success code (see BwApiErrorCodes enum).
Note: This function is only relevant for inner symmetry shapes.
---