Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

WO007

  • Last UpdatedMay 12, 2023
  • 2 minute read

Name

WO007 - AutoNest Interface routine - Add Plate Part PURPOSE:

Procedure

The procedure adds a plate part.

Declaration

void wo007( const int PlatePartNo,

const int MirrorPartNo, const int NumberOfContours, const char *PartName,

const char *PositionNumber, const char *Quality,

const double Thickness, const int QuantityNormal, const int QuantityMirror, const double PartLength, const double PartWidth, const double PartAngle,

const double MinCircRectOrigin[2], const double Cog[2],

const double Perimeter,

const double EffectivePartArea, const double BoundaryPartArea, const char *Assid1,

const char *Assid2, const char *Assid3, const char *Assid4, const char *Assembly,

const char *ProductionDate, const double RotationAngle, const int MirrorFlag);

Input

Parameters:

PlatePartNo

The identification number for the plate part

MirrorPartNo

The identification number for the plate part which is the mirrored image of the current plate part. The data for the symmetrical part will follow as the next part. The data for the mirrored part will be used in the single nesting of the part.

This parameter is only given when symmetrical parts are stored as individual objects. Otherwise MirrPartNo = 0.

NumberOfContours

The number of contours

PartName

The plate part name

PositionNumber

The plate part position number

Quality

The plate part quality

Thickness

The plate part thickness

QuantityNormal

The number of normal parts

QuantityMirror

The number of mirrored parts.

PartLength

The length of the part along the longer side of the least circumscribed rectangle.

PartWidth

The width of the part along the shorter side of the least circumscribed rectangle.

PartAngle

The angle between the X-axis and the longer side of the least circumscribed rectangle

MinCircRectOrigin

The origin of the least circumscribed rectangle.

CoG

The center of gravity of the plate part boundary.

Perimeter

The perimeter of the plate part.

EffectivePartArea

The plate part area with the area of the holes subtracted

BoundaryPartArea

The area of the plate part boundary.

Assid1

The assembly id's 1-4 from the General

Assid4

Purpose Strings (GPS)

Assembly

The plate part assembly

ProductionDate

The production date

RotationAngle

The rotation angle to be used in the nesting

MirrorFlag

The mirror flag:

0

=

No mirroring allowed

1

=

Mirroring allowed

Result

None.

/

/*

* External declarations

*/

extern "C"

{

#if !defined TBLAYOUTPLUGIN_API #define TBLAYOUTPLUGIN_API

#endif

/*

*********************************************************************

*

* Main procedure - wo007

*

*********************************************************************

*/

#ifdef WIN32 TBLAYOUTPLUGIN_API

#endif

void wo007( const int /* PlatePartNo */,

const int /* MirrorPartNo */, const int /* NumberOfContours */, const char * /* PartName */,

const char * /* PositionNumber */, const char * /* Quality */,

const double /* Thickness */, const int /* QuantityNormal */, const int /* QuantityMirror */, const double /* PartLength */, const double /* PartWidth */, const double /* PartAngle */,

const double [2] /* MinCircRectOrigin */, const double [2] /* Cog */,

const double /* Perimeter */,

const double /* EffectivePartArea */, const double /* BoundaryPartArea */, const char * /* Assid1 */,

const char * /* Assid2 */, const char * /* Assid3 */, const char * /* Assid4 */, const char * /* Assembly */,

const char * /* ProductionDate */, const double /* RotationAngle */, const int /* MirrorFlag */)

{

}

}

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in