LineCreateAsPolyline
Creates a new internal line (base size).
Python C++ C# VS Server
Python
BwApi.LineCreateAsPolyline(garmentId, shapeId, lineProperties, optimized, vecPoints)
C++
BwApiLineCreateAsPolyline(garmentId, shapeId, lineProperties, optimized, vecPoints);
C#
BwApi.LineCreateAsPolyline(garmentId, shapeId, lineProperties, optimized, vecPoints);
VS Server
{
"id": "API processing order number",
"function": "LineCreateAsPolyline",
"params": {
"garmentId": "value",
"shapeId": "value",
"lineProperties": "value",
"optimized": "value",
"vecPoints": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | lineProperties | JSON object as string that represent a line object (see Schema/line_properties.json schema) |
In | optimized | Boolean (1/0) if the creation of the edge should optimized the number of the points |
In | vecPoints | Array of points that represent the line |
Out | newInternalLineId | The newly created internal line ID |
Error/success code (see BwApiErrorCodes enum).
LineCreateAsBezier
Creates a new internal line with Bezier points (base size).
Python C++ C# VS Server
Python
BwApi.LineCreateAsBezier(garmentId, shapeId, lineProperties, points)
C++
BwApiLineCreateAsBezier(garmentId, shapeId, lineProperties, points);
C#
BwApi.LineCreateAsBezier(garmentId, shapeId, lineProperties, points);
VS Server
{
"id": "API processing order number",
"function": "LineCreateAsBezier",
"params": {
"garmentId": "value",
"shapeId": "value",
"lineProperties": "value",
"points": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | lineProperties | JSON object as string that represent a line object (see Schema/line_properties.json schema) |
In | points | Array of BwApiBezierPoint that represent the internal line's points |
Out | newInternalLineId | ID of the newly created internal line ID |
Error/success code (see BwApiErrorCodes enum).
LineDelete
Delete a line.
Python C++ C# VS Server
Python
BwApi.LineDelete(garmentId, shapeId, cross, lineId)
C++
BwApiLineDelete(garmentId, shapeId, cross, lineId);
C#
BwApi.LineDelete(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineDelete",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | The line ID to delete |
Error/success code (see BwApiErrorCodes enum).
LinePointsGet
Get a line's points (current size).
Python C++ C# VS Server
Python
BwApi.LinePointsGet(garmentId, shapeId, cross, lineId)
C++
BwApiLinePointsGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LinePointsGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LinePointsGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | The line ID to get the points from |
Out | linePoints | Array of line points (see BwApiVectorPoint) |
Error/success code (see BwApiErrorCodes enum).
LinePointsGetAsBezier
Get a line's points as Bezier (current size).
Python C++ C# VS Server
Python
BwApi.LinePointsGetAsBezier(garmentId, shapeId, cross, lineId, linePoints)
C++
BwApiLinePointsGetAsBezier(garmentId, shapeId, cross, lineId, linePoints);
C#
BwApi.LinePointsGetAsBezier(garmentId, shapeId, cross, lineId, linePoints);
VS Server
{
"id": "API processing order number",
"function": "LinePointsGetAsBezier",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"linePoints": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | The line ID to get the points from |
In | linePoints | Array of line points (see BwApiVectorBezierPoint) |
Error/success code (see BwApiErrorCodes enum).
LinePointsSetAsPolyline
Set a line's points (base size).
Python C++ C# VS Server
Python
BwApi.LinePointsSetAsPolyline(garmentId, shapeId, cross, lineId, optimized, linePoints)
C++
BwApiLinePointsSetAsPolyline(garmentId, shapeId, cross, lineId, optimized, linePoints);
C#
BwApi.LinePointsSetAsPolyline(garmentId, shapeId, cross, lineId, optimized, linePoints);
VS Server
{
"id": "API processing order number",
"function": "LinePointsSetAsPolyline",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"optimized": "value",
"linePoints": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | The line ID to get the points from |
In | optimized | Boolean (1/0) if the creation of the edge should optimized the number of the points |
In | linePoints | Array of line points (see BwApiVectorPoint) |
Error/success code (see BwApiErrorCodes enum).
LinePointsSetAsBezier
Set an edge's points as Bezier (base size).
Python C++ C# VS Server
Python
BwApi.LinePointsSetAsBezier(garmentId, shapeId, cross, lineId)
C++
BwApiLinePointsSetAsBezier(garmentId, shapeId, cross, lineId);
C#
BwApi.LinePointsSetAsBezier(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LinePointsSetAsBezier",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing edge ID |
Out | points | Array of BwApiBezierPoint that represent the points for this line |
Error/success code (see BwApiErrorCodes enum).
LinePropertiesGet
Get a line's properties.
Python C++ C# VS Server
Python
BwApi.LinePropertiesGet(garmentId, shapeId, cross, lineId)
C++
BwApiLinePropertiesGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LinePropertiesGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LinePropertiesGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | lineProperties | JSON object as string that represent a line object (see Schema/line_properties.json schema) |
Error/success code (see BwApiErrorCodes enum).
LinePropertiesSet
Set a line's properties.
Python C++ C# VS Server
Python
BwApi.LinePropertiesSet(garmentId, shapeId, cross, lineId, lineProperties)
C++
BwApiLinePropertiesSet(garmentId, shapeId, cross, lineId, lineProperties);
C#
BwApi.LinePropertiesSet(garmentId, shapeId, cross, lineId, lineProperties);
VS Server
{
"id": "API processing order number",
"function": "LinePropertiesSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"lineProperties": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | lineProperties | JSON object as string that represent a line object (see Schema/line_properties.json schema) |
Error/success code (see BwApiErrorCodes enum).
LineMaterialIdGet
Get a line's seam material ID.
Python C++ C# VS Server
Python
BwApi.LineMaterialIdGet(garmentId, shapeId, cross, lineId)
C++
BwApiLineMaterialIdGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LineMaterialIdGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineMaterialIdGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | materialId | Get the assigned material (seam) ID, -1 if no material assigned |
Error/success code (see BwApiErrorCodes enum).
Each line can have a material (seam) assigned to it.
LineMaterialIdSet
Set a line's seam material ID.
Python C++ C# VS Server
Python
BwApi.LineMaterialIdSet(garmentId, shapeId, cross, lineId, materialId)
C++
BwApiLineMaterialIdSet(garmentId, shapeId, cross, lineId, materialId);
C#
BwApi.LineMaterialIdSet(garmentId, shapeId, cross, lineId, materialId);
VS Server
{
"id": "API processing order number",
"function": "LineMaterialIdSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"materialId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | materialId | Assign material (seam) ID to this line |
Error/success code (see BwApiErrorCodes enum).
Each line can have a material (seam) assigned to it.
Set material id as -1 will clear the material from the line.
LineLengthGet
Get a line's length.
Python C++ C# VS Server
Python
BwApi.LineLengthGet(garmentId, shapeId, cross, lineId, sizeId)
C++
BwApiLineLengthGet(garmentId, shapeId, cross, lineId, sizeId);
C#
BwApi.LineLengthGet(garmentId, shapeId, cross, lineId, sizeId);
VS Server
{
"id": "API processing order number",
"function": "LineLengthGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"sizeId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | sizeId | Size of the garment |
Out | length | Get the length of the line |
Error/success code (see BwApiErrorCodes enum).
In the case of cross lines the shape ID is ignored.
InternalLineMirroredIdGet
Get an internal line's mirrored line ID.
Python C++ C#
Python
BwApi.InternalLineMirroredIdGet(garmentId, shapeId, internalLineId)
C++
BwApiInternalLineMirroredIdGet(garmentId, shapeId, internalLineId);
C#
BwApi.InternalLineMirroredIdGet(garmentId, shapeId, internalLineId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | internalLineId | Existing edge ID |
Out | mirroredInternalLineId | Internal line ID |
Error/success code (see BwApiErrorCodes enum).
This function is only relevant on inner symmetry shapes.
This function is only relevant for internal lines.
InternalLineAdjustEdges
Adjust a line's edges to the shape contour.
Python C++ C#
Python
BwApi.InternalLineAdjustEdges(garmentId, shapeId, internalLineId)
C++
BwApiInternalLineAdjustEdges(garmentId, shapeId, internalLineId);
C#
BwApi.InternalLineAdjustEdges(garmentId, shapeId, internalLineId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | internalLineId | Existing edge ID |
Error/success code (see BwApiErrorCodes enum).
This function is only relevant for internal lines.
InternalLineConvertToEdge
Converts internal line's to edge's.
Python C++ C# VS Server
Python
BwApi.InternalLineConvertToEdge(garmentId, shapeId, internalLinesIds)
C++
BwApiInternalLineConvertToEdge(garmentId, shapeId, internalLinesIds);
C#
BwApi.InternalLineConvertToEdge(garmentId, shapeId, internalLinesIds);
VS Server
{
"id": "API processing order number",
"function": "InternalLineConvertToEdge",
"params": {
"garmentId": "value",
"shapeId": "value",
"internalLinesIds": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | internalLinesIds | List of internal lines IDs |
Error/success code (see BwApiErrorCodes enum).
This function is only relevant for internal lines.
This function changes the shape's contour.
LineMarkerGet
Get an approximate line's marker from a given point.
Python C++ C# VS Server
Python
BwApi.LineMarkerGet(garmentId, shapeId, cross, lineId, point)
C++
BwApiLineMarkerGet(garmentId, shapeId, cross, lineId, point);
C#
BwApi.LineMarkerGet(garmentId, shapeId, cross, lineId, point);
VS Server
{
"id": "API processing order number",
"function": "LineMarkerGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"point": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing ID |
In | point | The point to approximate from |
Out | marker | Marker size (From 0% to 100%) |
Error/success code (see BwApiErrorCodes enum).
The marker size is from the start point of the line.
Tolerance is 1 cm.
InternalLineFoldDirectionInvert
Invert the fold direction of an internal line.
Python C++ C#
Python
BwApi.InternalLineFoldDirectionInvert(garmentId, shapeId, lineId)
C++
BwApiInternalLineFoldDirectionInvert(garmentId, shapeId, lineId);
C#
BwApi.InternalLineFoldDirectionInvert(garmentId, shapeId, lineId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | lineId | Existing internal ID |
Error/success code (see BwApiErrorCodes enum).
LineNameGet
Get a line's name.
Python C++ C# VS Server
Python
BwApi.LineNameGet(garmentId, shapeId, cross, lineId)
C++
BwApiLineNameGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LineNameGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineNameGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing lineid |
Out | lineName | Get the line's name |
Error/success code (see BwApiErrorCodes enum).
LineNameSet
Set a line's name.
Python C++ C# VS Server
Python
BwApi.LineNameSet(garmentId, shapeId, cross, lineId, lineName)
C++
BwApiLineNameSet(garmentId, shapeId, cross, lineId, lineName);
C#
BwApi.LineNameSet(garmentId, shapeId, cross, lineId, lineName);
VS Server
{
"id": "API processing order number",
"function": "LineNameSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"lineName": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | lineName | Set the line's name |
Error/success code (see BwApiErrorCodes enum).
LineCross
Cross/uncross a line.
Python C++ C# VS Server
Python
BwApi.LineCross(garmentId, shapeId, cross, lineId)
C++
BwApiLineCross(garmentId, shapeId, cross, lineId);
C#
BwApi.LineCross(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineCross",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | lineIds | Array of int containing the line IDs |
Error/success code (see BwApiErrorCodes enum).
When uncross a design line multiple internal lines may be create.
If cross is 0 the action will cross an internal line.
If cross is 1 the action will uncross an design line.
LineClosed
Check if line is open(0) or closed(1).
Python C++ C# VS Server
Python
BwApi.LineClosed(garmentId, shapeId, cross, lineId)
C++
BwApiLineClosed(garmentId, shapeId, cross, lineId);
C#
BwApi.LineClosed(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineClosed",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | closed | 0 - the line is not closed, 1 - the line is closed |
Error/success code (see BwApiErrorCodes enum).
LineLockGet
Check if line is locked or not.
Python C++ C# VS Server
Python
BwApi.LineLockGet(garmentId, shapeId, cross, lineId)
C++
BwApiLineLockGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LineLockGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineLockGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | lock | 1 - line is locked, 0 - not locked |
Error/success code (see BwApiErrorCodes enum).
LineLockSet
Lock(1) or unlock(0) line.
Python C++ C# VS Server
Python
BwApi.LineLockSet(garmentId, shapeId, cross, lineId, lock)
C++
BwApiLineLockSet(garmentId, shapeId, cross, lineId, lock);
C#
BwApi.LineLockSet(garmentId, shapeId, cross, lineId, lock);
VS Server
{
"id": "API processing order number",
"function": "LineLockSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"lock": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | lock | 1 - lock the line, 0 - unlock the line |
Error/success code (see BwApiErrorCodes enum).
LineShowIn2DGet
Check if line is visible in 2D window.
Python C++ C# VS Server
Python
BwApi.LineShowIn2DGet(garmentId, shapeId, cross, lineId)
C++
BwApiLineShowIn2DGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LineShowIn2DGet(garmentId, shapeId, cross, lineId);
VS Server
{
"id": "API processing order number",
"function": "LineShowIn2DGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | show | 1 - line is visible, 0 - not visible |
Error/success code (see BwApiErrorCodes enum).
LineShowIn2DSet
Show(1) or hide(0) line in 2D window.
Python C++ C# VS Server
Python
BwApi.LineShowIn2DSet(garmentId, shapeId, cross, lineId, show)
C++
BwApiLineShowIn2DSet(garmentId, shapeId, cross, lineId, show);
C#
BwApi.LineShowIn2DSet(garmentId, shapeId, cross, lineId, show);
VS Server
{
"id": "API processing order number",
"function": "LineShowIn2DSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"show": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | show | 1 - show the line, 0 - hide the line |
Error/success code (see BwApiErrorCodes enum).
LineTextureOffsetGet
Get the texture offset of a line.
Python C++ C# VS Server
Python
BwApi.LineTextureOffsetGet(garmentId, shapeId, cross, lineId, materialId)
C++
BwApiLineTextureOffsetGet(garmentId, shapeId, cross, lineId, materialId);
C#
BwApi.LineTextureOffsetGet(garmentId, shapeId, cross, lineId, materialId);
VS Server
{
"id": "API processing order number",
"function": "LineTextureOffsetGet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"materialId": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | materialId | Existing material ID on the shape (this can also be group item in case the texture of the shape is group material) |
Out | offset | Get line's offset |
Error/success code (see BwApiErrorCodes enum).
The offset is a value from 0 to the length of the line divided by the seam fabric length.
This function works the same for the back fabric as for the front fabric.
LineTextureOffsetSet
Set the texture offset of a line.
Python C++ C# VS Server
Python
BwApi.LineTextureOffsetSet(garmentId, shapeId, cross, lineId, materialId, offset)
C++
BwApiLineTextureOffsetSet(garmentId, shapeId, cross, lineId, materialId, offset);
C#
BwApi.LineTextureOffsetSet(garmentId, shapeId, cross, lineId, materialId, offset);
VS Server
{
"id": "API processing order number",
"function": "LineTextureOffsetSet",
"params": {
"garmentId": "value",
"shapeId": "value",
"cross": "value",
"lineId": "value",
"materialId": "value",
"offset": "value"
}
} Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | materialId | Existing material ID on the shape (this can also be group item in case the texture of the shape is group material) |
In | offset | Line's offset |
Error/success code (see BwApiErrorCodes enum).
The offset is a value from 0 to the length of the line divided by the seam fabric length.
This function works the same for the back fabric as for the front fabric.
LineFillMaterialIdGet
Get a line's fill material ID.
Python C++ C#
Python
BwApi.LineFillMaterialIdGet(garmentId, shapeId, cross, lineId)
C++
BwApiLineFillMaterialIdGet(garmentId, shapeId, cross, lineId);
C#
BwApi.LineFillMaterialIdGet(garmentId, shapeId, cross, lineId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
Out | materialId | Get the assigned fill material ID, -1 if no material assigned |
Error/success code (see BwApiErrorCodes enum).
Currently only closed cutmark can have a fill material assigned to it.
LineFillMaterialIdSet
Set a line's fill material ID.
Python C++ C#
Python
BwApi.LineFillMaterialIdSet(garmentId, shapeId, cross, lineId, materialId)
C++
BwApiLineFillMaterialIdSet(garmentId, shapeId, cross, lineId, materialId);
C#
BwApi.LineFillMaterialIdSet(garmentId, shapeId, cross, lineId, materialId);
Parameters
Param | Variable | Description |
In | garmentId | Existing garment ID |
In | shapeId | Existing shape ID |
In | cross | Boolean (1/0) 0 not cross (internal line), 1 cross (design line) |
In | lineId | Existing line ID |
In | materialId | Assign fill material ID to this line |
Error/success code (see BwApiErrorCodes enum).
Currently only closed cutmark can have a fill material assigned to it.
Set material id as -1 will clear the material from the cutmark.