You are on page 1of 59

AVEVA Marine 1 (59)

Autonestdoc
___________________________________________________________________________________




1 Building the plug-in dll

The plug-ins for automatic layout and sequence in Tribon Plate Nesting are built in Microsoft
Visual Studio as dynamically linked libraries with a define file. In the project described in this
manual all interface implementation files are included through a library file. The implementation
files may be included directly into the project. Below are all necessary files for the Visual Studio
project and the interface included.

TbLayoutPlugin.sln

Mi cr osof t Vi sual St udi o Sol ut i on Fi l e, For mat Ver si on 8. 00
Pr oj ect ( " {8BC9CEB8- 8B4A- 11D0- 8D11- 00A0C91BC942}" ) =
" TBLayout Pl ugi n" , " TBLayout Pl ugi n. vcpr oj " , " {9F4A9FD1- 4AA1-
4D14- A025- 14A65E001FDF}"
Pr oj ect Sect i on( Pr oj ect Dependenci es) = post Pr oj ect
EndPr oj ect Sect i on
EndPr oj ect
Gl obal
Gl obal Sect i on( Sol ut i onConf i gur at i on) = pr eSol ut i on
Debug = Debug
Rel ease = Rel ease
EndGl obal Sect i on
Gl obal Sect i on( Pr oj ect Conf i gur at i on) = post Sol ut i on
{9F4A9FD1- 4AA1- 4D14- A025-
14A65E001FDF}. Debug. Act i veCf g = Debug| Wi n32
{9F4A9FD1- 4AA1- 4D14- A025-
14A65E001FDF}. Debug. Bui l d. 0 = Debug| Wi n32
{9F4A9FD1- 4AA1- 4D14- A025-
14A65E001FDF}. Rel ease. Act i veCf g = Rel ease| Wi n32
{9F4A9FD1- 4AA1- 4D14- A025-
14A65E001FDF}. Rel ease. Bui l d. 0 = Rel ease| Wi n32
EndGl obal Sect i on
Gl obal Sect i on( Ext ensi bi l i t yGl obal s) = post Sol ut i on
EndGl obal Sect i on
Gl obal Sect i on( Ext ensi bi l i t yAddI ns) = post Sol ut i on
EndGl obal Sect i on
EndGl obal


TbLayoutPlugin.vcproj

<?xml ver si on=" 1. 0" encodi ng=" Wi ndows- 1252" ?>
<Vi sual St udi oPr oj ect
Pr oj ect Type=" Vi sual C++"
Ver si on=" 7. 10"
Name=" TBLayout Pl ugi n"
Root Namespace=" TBLayout Pl ugi n"
<Pl at f or ms>
<Pl at f or m
AVEVA Marine 2 (59)

Autonestdoc
___________________________________________________________________________________


Name=" Wi n32" / >
</ Pl at f or ms>
<Conf i gur at i ons>
<Conf i gur at i on
Name=" Debug| Wi n32"
Out put Di r ect or y=" . \ Debug"
I nt er medi at eDi r ect or y=" . \ Debug"
Conf i gur at i onType=" 2"
UseOf MFC=" 0"

ATLMi ni mi zesCRunTi meLi br ar yUsage=" FALSE"
Char act er Set =" 2" >
<Tool

Name=" VCCLCompi l er Tool "
Opt i mi zat i on=" 0"

Pr epr ocessor Def i ni t i ons=" WI N32; _DEBUG; _WI NDOWS; _USR
DLL; TBLAYOUTPLUGI N_EXPORTS; _WI N32_WI NNT=0x0500; WI NVER=0x0500"
Basi cRunt i meChecks=" 3"
Runt i meLi br ar y=" 1"

Pr ecompi l edHeader Fi l e=" . \ Debug/ TBLayout Pl ugi n. pch"

Assembl er Li st i ngLocat i on=" . \ Debug/ "
Obj ect Fi l e=" . \ Debug/ "

Pr ogr amDat aBaseFi l eName=" . \ Debug/ "
War ni ngLevel =" 3"

Suppr essSt ar t upBanner =" TRUE"

DebugI nf or mat i onFor mat =" 4" / >
<Tool

Name=" VCCust omBui l dTool " / >
<Tool
Name=" VCLi nker Tool "

Addi t i onal Dependenci es=" kcsanst l _d. l i b odbc32. l i b
odbccp32. l i b"

Out put Fi l e=" . \ Debug/ TBLayout Pl ugi n. dl l "
Li nkI ncr ement al =" 1"

Suppr essSt ar t upBanner =" TRUE"

Addi t i onal Li br ar yDi r ect or i es=" &quot ; <SPECI FY
ADDI TI ONAL LI BRARY DI RECTORI ES HERE>&quot ; "

I gnor eDef aul t Li br ar yNames=" l i bc. l i b, l i bcmt . l i b, msvc
r t . l i b, l i bcd. l i b, msvcr t d. l i b"
AVEVA Marine 3 (59)

Autonestdoc
___________________________________________________________________________________



Modul eDef i ni t i onFi l e=" . \ TBLayout Pl ugi n. def "

Gener at eDebugI nf or mat i on=" TRUE"

Pr ogr amDat abaseFi l e=" . \ Debug/ TBLayout Pl ugi n. pdb"

I mpor t Li br ar y=" . \ Debug/ TBLayout Pl ugi n. l i b"
Tar get Machi ne=" 1" / >
<Tool
Name=" VCMI DLTool "

Pr epr ocessor Def i ni t i ons=" _DEBUG"

MkTypLi bCompat i bl e=" TRUE"

Suppr essSt ar t upBanner =" TRUE"
Tar get Envi r onment =" 1"

TypeLi br ar yName=" . \ Debug/ TBLayout Pl ugi n. t l b"
Header Fi l eName=" " / >
<Tool

Name=" VCPost Bui l dEvent Tool "
CommandLi ne=" cal l
%MAKE_TOOLS_CC%\ xi nst al l - c $( Tar get Pat h)
%PDMSI NSTALL%\ $( Conf i gur at i onName) " / >
<Tool

Name=" VCPr eBui l dEvent Tool " / >
<Tool

Name=" VCPr eLi nkEvent Tool " / >
<Tool

Name=" VCResour ceCompi l er Tool "

Pr epr ocessor Def i ni t i ons=" _DEBUG"
Cul t ur e=" 1033"

Addi t i onal I ncl udeDi r ect or i es=" " / >
<Tool

Name=" VCWebSer vi cePr oxyGener at or Tool " / >
<Tool

Name=" VCXMLDat aGener at or Tool " / >
<Tool

Name=" VCWebDepl oyment Tool " / >
<Tool

Name=" VCManagedWr apper Gener at or Tool " / >
AVEVA Marine 4 (59)

Autonestdoc
___________________________________________________________________________________


<Tool

Name=" VCAuxi l i ar yManagedWr apper Gener at or Tool " / >
</ Conf i gur at i on>
<Conf i gur at i on
Name=" Rel ease| Wi n32"
Out put Di r ect or y=" . \ Rel ease"

I nt er medi at eDi r ect or y=" . \ Rel ease"
Conf i gur at i onType=" 2"
UseOf MFC=" 0"

ATLMi ni mi zesCRunTi meLi br ar yUsage=" FALSE"
Char act er Set =" 2" >
<Tool

Name=" VCCLCompi l er Tool "
Opt i mi zat i on=" 2"

I nl i neFunct i onExpansi on=" 1"

Pr epr ocessor Def i ni t i ons=" WI N32; NDEBUG; _WI NDOWS; _USR
DLL; TBLAYOUTPLUGI N_EXPORTS; _WI N32_WI NNT=0x0500; WI NVER=0x0500"
St r i ngPool i ng=" TRUE"
Runt i meLi br ar y=" 0"

Enabl eFunct i onLevel Li nki ng=" TRUE"

Pr ecompi l edHeader Fi l e=" . \ Rel ease/ TBLayout Pl ugi n. pch
"

Assembl er Li st i ngLocat i on=" . \ Rel ease/ "

Obj ect Fi l e=" . \ Rel ease/ "

Pr ogr amDat aBaseFi l eName=" . \ Rel ease/ "
War ni ngLevel =" 3"

Suppr essSt ar t upBanner =" TRUE" / >
<Tool

Name=" VCCust omBui l dTool " / >
<Tool
Name=" VCLi nker Tool "

Addi t i onal Dependenci es=" kcsanst l . l i b odbc32. l i b
odbccp32. l i b"

Out put Fi l e=" . \ Rel ease/ TBLayout Pl ugi n. dl l "
Li nkI ncr ement al =" 1"

Suppr essSt ar t upBanner =" TRUE"
AVEVA Marine 5 (59)

Autonestdoc
___________________________________________________________________________________



Addi t i onal Li br ar yDi r ect or i es=" <SPECI FY ADDI TI ONAL
LI BRARY DI RECTORI ES HERE>"

I gnor eDef aul t Li br ar yNames=" l i bc. l i b, l i bcmt . l i b, l i bc
d. l i b, l i bcmt d. l i b, msvcr t d. l i b"

Modul eDef i ni t i onFi l e=" . \ TBLayout Pl ugi n. def "

Pr ogr amDat abaseFi l e=" . \ Rel ease/ TBLayout Pl ugi n. pdb"

I mpor t Li br ar y=" . \ Rel ease/ TBLayout Pl ugi n. l i b"
Tar get Machi ne=" 1" / >
<Tool
Name=" VCMI DLTool "

Pr epr ocessor Def i ni t i ons=" NDEBUG"

MkTypLi bCompat i bl e=" TRUE"

Suppr essSt ar t upBanner =" TRUE"
Tar get Envi r onment =" 1"

TypeLi br ar yName=" . \ Rel ease/ TBLayout Pl ugi n. t l b"
Header Fi l eName=" " / >
<Tool

Name=" VCPost Bui l dEvent Tool "
CommandLi ne=" cal l
%MAKE_TOOLS_CC%\ xi nst al l - c $( Tar get Pat h)
%PDMSI NSTALL%\ $( Conf i gur at i onName)
cal l %CM_BI N%\ move_f i l e. bat $( Tar get Di r ) $( Tar get Fi l eName)
bi n" / >
<Tool

Name=" VCPr eBui l dEvent Tool " / >
<Tool

Name=" VCPr eLi nkEvent Tool " / >
<Tool

Name=" VCResour ceCompi l er Tool "

Pr epr ocessor Def i ni t i ons=" NDEBUG"
Cul t ur e=" 1033"

Addi t i onal I ncl udeDi r ect or i es=" " / >
<Tool

Name=" VCWebSer vi cePr oxyGener at or Tool " / >
<Tool

Name=" VCXMLDat aGener at or Tool " / >
AVEVA Marine 6 (59)

Autonestdoc
___________________________________________________________________________________


<Tool

Name=" VCWebDepl oyment Tool " / >
<Tool

Name=" VCManagedWr apper Gener at or Tool " / >
<Tool

Name=" VCAuxi l i ar yManagedWr apper Gener at or Tool " / >
</ Conf i gur at i on>
</ Conf i gur at i ons>
<Ref er ences>
</ Ref er ences>
<Fi l es>
<Fi l t er
Name=" Sour ce Fi l es"

Fi l t er =" cpp; c; cxx; r c; def ; r ; odl ; i dl ; hpj ; bat ; f 90; f or ;
f ; f pp" >
<Fi l e

Rel at i vePat h=" TBLayout Pl ugi n. cpp" >
<Fi l eConf i gur at i on

Name=" Debug| Wi n32" >
<Tool

Name=" VCCLCompi l er Tool "

Opt i mi zat i on=" 0"

Pr epr ocessor Def i ni t i ons=" WI N32; _DEBUG; _WI NDOWS; _MBC
S; _USRDLL; TBLAYOUTPLUGI N_EXPORTS; _WI N32_WI NNT=0x0500; WI NVER=0
x0500; $( NoI nher i t ) "

Basi cRunt i meChecks=" 3" / >
</ Fi l eConf i gur at i on>
<Fi l eConf i gur at i on

Name=" Rel ease| Wi n32" >
<Tool

Name=" VCCLCompi l er Tool "

Opt i mi zat i on=" 2"

Pr epr ocessor Def i ni t i ons=" WI N32; NDEBUG; _WI NDOWS; _MBC
S; _USRDLL; TBLAYOUTPLUGI N_EXPORTS; $( NoI nher i t ) " / >
</ Fi l eConf i gur at i on>
</ Fi l e>
<Fi l e

Rel at i vePat h=" TBLayout Pl ugi n. def " >
AVEVA Marine 7 (59)

Autonestdoc
___________________________________________________________________________________


</ Fi l e>
</ Fi l t er >
<Fi l t er
Name=" Header Fi l es"
Fi l t er =" h; hpp; hxx; hm; i nl ; f i ; f d" >
<Fi l e

Rel at i vePat h=" TBLayout Pl ugi n. h" >
</ Fi l e>
</ Fi l t er >
<Fi l t er
Name=" Resour ce Fi l es"

Fi l t er =" i co; cur ; bmp; dl g; r c2; r ct ; bi n; r gs; gi f ; j pg; j pe
g; j pe" >
<Fi l e

Rel at i vePat h=" r esour ce. h" >
</ Fi l e>
</ Fi l t er >
</ Fi l es>
<Gl obal s>
</ Gl obal s>
</ Vi sual St udi oPr oj ect >

AVEVA Marine 8 (59)

Autonestdoc
___________________________________________________________________________________


TBLayoutPlugin.h
/ / t bl ayout pl ugi n. h: i nt er f ace f or t he t bl ayout pl ugi n cl ass.
/ /
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / / / / / / / /

#i f
! def i ned( AFX_TBLAYOUTPLUGI N_H__259152F2_03E8_11D5_BD54_080009
0A4C97__I NCLUDED_)
#def i ne
AFX_TBLAYOUTPLUGI N_H__259152F2_03E8_11D5_BD54_0800090A4C97__I
NCLUDED_

#i f def TBLAYOUTPLUGI N_EXPORTS
#def i ne TBLAYOUTPLUGI N_API __decl spec( dl l expor t )
#el se
#def i ne TBLAYOUTPLUGI N_API __decl spec( dl l i mpor t )
#endi f

#i f _MSC_VER > 1000
#pr agma once
#endi f / / _MSC_VER > 1000

TBLAYOUTPLUGI N_API i nt wo001( voi d) ;

TBLAYOUTPLUGI N_API voi d wo002 ( const i nt Number Of RawPl at es) ;

TBLAYOUTPLUGI N_API voi d wo003( const i nt RawPl at eNo,
const i nt Number Of SegPar t s,
const char * Qual i t y,
const i nt Quant i t yTot al ,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const doubl e Thi ckness,
const doubl e Par t Thi ckMi n,
const doubl e Par t Thi ckMax,
const doubl e Di st Par t Pl at e,
const doubl e Di st Par t Par t ) ;

TBLAYOUTPLUGI N_API voi d wo004 ( const i nt RawPl at eNo,
const i nt SegPar t ,
const i nt SegType,
const doubl e AmpU,
const doubl e AmpV,
const doubl e EndU,
const doubl e EndV) ;

TBLAYOUTPLUGI N_API voi d wo005 ( const i nt
Number Of Pl at ePar t s) ;

TBLAYOUTPLUGI N_API voi d wo006 ( const i nt Pl at ePar t No,
AVEVA Marine 9 (59)

Autonestdoc
___________________________________________________________________________________


const i nt Cont our No,
const i nt Number Of SegPar t s) ;

TBLAYOUTPLUGI N_API voi d wo007( const i nt Pl at ePar t No,
const i nt Mi r r or Par t No,
const i nt Number Of Cont our s,
const char * Par t Name,
const char * Posi t i onNumber ,
const char * Qual i t y,
const doubl e Thi ckness,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const doubl e Par t Lengt h,
const doubl e Par t Wi dt h,
const doubl e Par t Angl e,
const doubl e
Mi nCi r cRect Or i gi n[ 2] ,
const doubl e Cog[ 2] ,
const doubl e Per i met er ,
const doubl e
Ef f ect i vePar t Ar ea,
const doubl e Boundar yPar t Ar ea,
const char * Assembl y,
const char * Pr oduct i onDat e,
const doubl e Rot at i onAngl e,
const i nt Mi r r or Fl ag) ;

TBLAYOUTPLUGI N_API voi d wo008( const i nt Par t No,
const i nt Cont our No,
const i nt SegPar t ,
const i nt SegType,
const doubl e AmpU,
const doubl e AmpV,
const doubl e EndU,
const doubl e EndV) ;

TBLAYOUTPLUGI N_API voi d wo009 ( const i nt BaseQual i t yNumber ,
const i nt Number Of Qual i t i es) ;

TBLAYOUTPLUGI N_API voi d wo010 ( const i nt BaseQual i t yNumber ,
const char * BaseQual i t y ,
const char * Qual i t y ) ;

TBLAYOUTPLUGI N_API i nt wo011 ( voi d) ;

TBLAYOUTPLUGI N_API i nt wo012 ( voi d) ;

TBLAYOUTPLUGI N_API voi d wo013( const i nt Nest edPl at eNo ,
i nt & RawPl at eNo ,
i nt & Quant i t yNor mal ,
i nt & Quant i t yMi r r or ,
char * Assembl y ,
char * Pr oduct i onDat e ,
AVEVA Marine 10 (59)

Autonestdoc
___________________________________________________________________________________


i nt & Number Of Nest edPar t s ) ;

TBLAYOUTPLUGI N_API voi d wo014( const i nt Nest edPl at eNo ,
const i nt Nest edPar t No ,
i nt & Pl at ePar t No ,
i nt & Nest ed ,
doubl e& Dx ,
doubl e& Dy ,
doubl e& Angl e ,
i nt & Mi r r ) ;
TBLAYOUTPLUGI N_API voi d wo015 ( voi d) ;

TBLAYOUTPLUGI N_API voi d wo016 ( const i nt
Number Of BaseQual i t i es ,
const i nt
MaxNumber Of Qual i t i es ) ;

TBLAYOUTPLUGI N_API voi d wo017 ( const i nt Nest Set ,
const i nt Pl at eFi l l ,
const doubl e MaxScr apSi ngl e ,
const doubl e MaxScr apMi r r or ,
const doubl e MaxScr apMul t i ,
const i nt TypeOf Opt i mi zat i on ) ;

TBLAYOUTPLUGI N_API voi d wo018( const i nt Nest edPl at eNo ,
const i nt RawPl at eNo ,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const char * Assembl y ,
const char * Pr oduct i onDat e ,
const i nt
Number Of Nest edPar t s) ;

TBLAYOUTPLUGI N_API voi d wo019( const i nt Nest edPl at eNo ,
const i nt Nest edPar t No ,
const i nt Par t No ,
const doubl e Dx ,
const doubl e Dy ,
const doubl e Angl e ,
const i nt Mi r r ) ;

TBLAYOUTPLUGI N_API i nt wo020 ( voi d) ;

TBLAYOUTPLUGI N_API voi d wo021( const i nt Remai nedPar t No ,
i nt & Par t No ,
i nt & Quant i t yNor mal ,
i nt & Quant i t yMi r r or ,
i nt & ReasonFl ag ) ;

TBLAYOUTPLUGI N_API voi d wo022( const i nt Nest edPl at eNo,
char * Nest i ngName,
i nt & Nest i ngType,
char * Dr awi ngNumber ) ;
AVEVA Marine 11 (59)

Autonestdoc
___________________________________________________________________________________



TBLAYOUTPLUGI N_API voi d wo023( const i nt Pl at ePar t No,
const i nt Cont our No,
const i nt Number Of Bevel s) ;

TBLAYOUTPLUGI N_API voi d wo024( const i nt Pl at ePar t No,
const i nt Cont our No,
const i nt Bevel I nt er val No,
const i nt SegPar t St ar t ,
const doubl e St ar t Poi nt [ 2] ,
const i nt SegPar t End,
const doubl e EndPoi nt [ 2] ,
const doubl e Bevel Code) ;

TBLAYOUTPLUGI N_API voi d wo025( const i nt Nest edPl at eNo,
doubl e& Lengt h,
doubl e& Wi dt h,
doubl e& Thi ckness,
char * Qual i t y,
doubl e& Densi t y) ;

#endi f / /
! def i ned( AFX_TBLAYOUTPLUGI N_H__259152F2_03E8_11D5_BD54_080009
0A4C97__I NCLUDED_)
AVEVA Marine 12 (59)

Autonestdoc
___________________________________________________________________________________



TBLayoutPlugin.cpp
/ / TBLayout Pl ugi n. cpp : Def i nes t he ent r y poi nt f or t he DLL
appl i cat i on.
/ /


#i ncl ude " wi ndows. h"
#i ncl ude " TBLayout Pl ugi n. h"
AVEVA Marine 13 (59)

Autonestdoc
___________________________________________________________________________________


2 Interface routines

WO001
NAME:
WO001 - Aut oNest I nt er f ace r out i ne - I s Ext er nal Aut oNest
Connect ed

PURPOSE:
The pr ocedur e checks i f an ext er nal Aut oNest al gor i t hmhas
been connect ed.

DECLARATI ON:

i nt wo001 ( voi d) ;


RESULT:

The pr ocedur e r et ur ns TRUE i f connect ed, ot her wi se FALSE.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo001
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
i nt wo001 ( voi d)
{
r et ur n 1;
}
}
AVEVA Marine 14 (59)

Autonestdoc
___________________________________________________________________________________


WO002
NAME:

WO002 - Aut oNest I nt er f ace r out i ne - Def i ne Number of Raw
Pl at es

PURPOSE:
The pr ocedur e def i nes t he number of r aw pl at es avai l abl e i n
t he aut onest sessi on.

DECLARATI ON:

voi d wo002 ( const i nt Number Of RawPl at es) ;

I NPUT:

Par amet er s:

Number Of RawPl at es The number of avai l abl e r aw pl at es


RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ **********************************************************************
*
* Mai n pr ocedur e - wo002
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo002 ( const i nt / * Number Of RawPl at es */ )
{
}
/*
* Allocate C++ structure for the given number of raw plates. Data will
* be added in the calls of wo003 and wo004.
*/
}
AVEVA Marine 15 (59)

Autonestdoc
___________________________________________________________________________________


WO003
NAME:

WO003 - Aut oNest I nt er f ace r out i ne - Add Raw Pl at e

PURPOSE:

The pr ocedur e adds t he dat a f or one r aw pl at e.


DECLARATI ON:

voi d wo003( const i nt RawPl at eNo,
const i nt Number Of SegPar t s,
const char *Qual i t y,
const i nt Quant i t yTot al ,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const i nt Fl angeSi de,
const doubl e Thi ckness,
const doubl e Par t Thi ckMi n,
const doubl e Par t Thi ckMax,
const doubl e Di st Par t Pl at e,
const doubl e Di st Par t Par t ,
const doubl e Di st Par t Pl at e2,
const doubl e Di st Par t Par t 2) ;

I NPUT:
Par amet er s:

RawPl at eNo The i dent i f i cat i on number f or t he r aw pl at e
Number Of SegPar t s The number of segment par t s i n t he r aw pl at e
geomet r y

Qual i t y The r aw pl at e qual i t y

Quant i t yTot al The t ot al number of i dent i cal nest i ngs
( Quant i t yTot al = Quant i t yNor mal +
Quant i t yMi r r or )

Quant i t yNor mal The number of nest i ngs bur ned nor mal

Quant i t yMi r r or The number of nest i ngs bur ned mi r r or ed

Fl angeSi de Code f or r ef l ect i ng par t s wi t h f ol ded
f l anges:
= - 1 For ce f ol ded f l ange t o be at t he ot her
si de
= 0 Aut omat i c
= +1 For ce f ol ded f l ange t o be at t hi s si de

AVEVA Marine 16 (59)

Autonestdoc
___________________________________________________________________________________


Thi ckness The r aw pl at e t hi ckness

Par t Thi ckMi n The mi ni mumal l owed pl at e par t t hi ckness
t hat can be nest ed on t he r aw pl at e

Par t Thi ckMax The maxi mumal l owed pl at e par t t hi ckness
t hat can be nest ed on t he r aw pl at e

Di st Par t Pl at e The mi ni mumdi st ance bet ween t he r aw pl at e
and a par t

Di st Par t Par t The mi ni mumdi st ance bet ween a par t and a
par t

Di st Par t Pl at e2 The mi ni mumdi st ance bet ween t he r aw pl at e
and a par t ( Nest t ype = 2)

Di st Par t Par t 2 The mi ni mumdi st ance bet ween a par t and a
par t ( Nest t ype = 2)

RESULT:

None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo003
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo003( const i nt / * RawPl at eNo */ ,
const i nt / * Number Of SegPar t s */ ,
const char * / * Qual i t y */ ,
const i nt / * Quant i t yTot al */ ,
const i nt / * Quant i t yNor mal */ ,
const i nt / * Quant i t yMi r r or */ ,
const i nt / * Fl angeSi de*/ ,
const doubl e / * Thi ckness */ ,
const doubl e / * Par t Thi ckMi n */ ,
const doubl e / * Par t Thi ckMax */ ,
AVEVA Marine 17 (59)

Autonestdoc
___________________________________________________________________________________


const doubl e / * Di st Par t Pl at e */ ,
const doubl e / * Di st Par t Par t */ ,
const doubl e / * Di st Par t Pl at e2 */ ,
const doubl e / * Di st Par t Par t 2 */ )
{
/* Store the given data in the C++ structure from wo002.
* Allocate C++ structure for the raw plate contour with the given
* number of segment parts. The contour will be added in wo004.
*/
}
}
AVEVA Marine 18 (59)

Autonestdoc
___________________________________________________________________________________


WO004
NAME:

WO004 - Aut oNest I nt er f ace r out i ne - Add Segment Par t f or Raw Pl at e

PURPOSE:

The pr ocedur e adds one segment par t f or t he r aw pl at e cont our . The
f i r st segment par t consi st s onl y of t he st ar t i ng poi nt . Each
successi ve segment par t cont ai ns t he ampl i t ude vect or and t he
endi ng poi nt . 2 consecut i ve segment par t s const i t ues one segment .

DECLARATI ON:

voi d wo004( const i nt RawPl at eNo,
const i nt SegPar t ,
const i nt SegType,
const doubl e AmpU,
const doubl e AmpV,
const doubl e EndU,
const doubl e EndV) ;

I NPUT:

Par amet er s:

RawPl at eNo The i dent i f i cat i on number f or t he r aw pl at e

SegPar t The segment par t number , st ar t i ng f r om0

SegType The segment par t t ype:
0 = The st ar t i ng poi nt
1 = Li ne
2 = Ar c

AmpU The ampl i t ude vect or
AmpV

EndU The endi ng poi nt
EndV

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 19 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo004
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo004( const i nt / * RawPl at eNo */ ,
const i nt / * SegPar t */ ,
const i nt / * SegType */ ,
const doubl e / * AmpU */ ,
const doubl e / * AmpV */ ,
const doubl e / * EndU */ ,
const doubl e / * EndV */ )
{
/* Store the given data in the C++ structure from wo003.
* Allocate C++ structure for the raw plate contour with the given
* number of segment parts. The contour will be added in wo004.
*/
}
}
AVEVA Marine 20 (59)

Autonestdoc
___________________________________________________________________________________


WO005
NAME:

WO005 - Aut oNest I nt er f ace r out i ne - Def i ne Number of Pl at e Par t s

PURPOSE:

The pr ocedur e def i nes t he number of avai l abl e pl at e par t s i n t he
aut onest sessi on.


DECLARATI ON:

voi d wo005 ( const i nt Number Of Pl at ePar t s) ;

I NPUT:

Par amet er s:

Number Of Pl at ePar t s The number of avai l abl e pl at e par t s

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo005
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo005 ( const i nt / * Number Of Pl at ePar t s */ )
{
}
}
AVEVA Marine 21 (59)

Autonestdoc
___________________________________________________________________________________


WO006
NAME:
WO006 - Aut oNest I nt er f ace r out i ne - Def i ne number of segment
par t s

PURPOSE:

The pr ocedur e def i nes t he number of segment par t s f or one cont our .

DECLARATI ON:

voi d wo006 ( const i nt Pl at ePar t No,
const i nt Cont our No,
const i nt Number Of SegPar t s,
const i nt Cont our Type,
const i nt Mar ki ngType,
const i nt Mar ki ngSi de) ;

I NPUT:

Par amet er s:

Pl at ePar t No The i dent i f i cat i on number f or t he pl at e
par t

Cont our No The cont our number , st ar t i ng at 1

Number Of SegPar t s The number of segment par t s f or t he
cont our

Cont our Type The t ype of cont our :
= 1 Out er cont our
= 2 Hol e
= 3 Mar ki ng
= 4 Bl ast i ng
= 5 GSD

Mar ki ngType The t ype of mar ki ng/ bl ast i ng/ GSD:
= 0 Hul l cur ve or no r ef er ence
= 1 Hol e
= 2 Br acket
= 3 I nner seami n PLCM
= 4 St i f f ener
= 5 Fl ange
= 6 Added cont our
= 7 Br acket not ch
= 8 Knuckl e l i ne
= 9 Ref er ence pl ane
= 10 Pi pe penet r at i on
= 11 Nomi nal cont our
= 12 Web wi t h f l ange geomet r y
AVEVA Marine 22 (59)

Autonestdoc
___________________________________________________________________________________


= 13 Fl ange wi t h web geomet r y
= 14 St r uct ur e
= 15 Swedgi ng
= 16 Met al t ouchi ng l i ne
= 17 Smal l hol e
= 18 Br acket over l ap
= 19 I nt er sect i ng panel
= 20 I nt er sect i ng br acket on anot her
panel
= 21 Cut out cr ossi ng
= 22 Abut t i ng pr of i l e
= 23 Abut t i ng shel l pr of i l e
= 24 Ref er ence l i ne i n PLCM
= 25 At t achment angl e, i nt er sect i ng
panel
= 26 At t achment angl e, i nt er sect i ng
br acket
= 27 At t achment angl e, pr of i l e
= 28 At t achment angl e, br acket
= 29 GSD at pl at e par t cor ner
= 30 GSD, manual l y added
= 31 GSD at not ches f or seams/ but t s i n
t he shel l
= 32 GSD at CL

Mar ki ngSi de The si de of mar ki ng/ bl ast i ng/ GSD:
= +1 Thi s si de
= 0 Bot h si des
= - 1 Ot her si de

I r r el evant f or bur ni ng cont our s.

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 23 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
*********************************************************************
*
* Mai n pr ocedur e - wo006
*
*********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo006 ( const i nt / * Pl at ePar t No */ ,
const i nt / * Cont our No */ ,
const i nt / * Number Of SegPar t s */ ,
const i nt / * Cont our Type */ ,
const i nt / * Mar ki ngType */ ,
const i nt / * Mar ki ngSi de */ )
{
}
}
AVEVA Marine 24 (59)

Autonestdoc
___________________________________________________________________________________


WO007
NAME:
WO007 - Aut oNest I nt er f ace r out i ne - Add Pl at e Par t

PURPOSE:

The pr ocedur e adds a pl at e par t .

DECLARATI ON:

voi d wo007( const i nt Pl at ePar t No,
const i nt Mi r r or Par t No,
const i nt Number Of Cont our s,
const char *Par t Name,
const char *Posi t i onNumber ,
const char *Qual i t y,
const doubl e Thi ckness,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const doubl e Par t Lengt h,
const doubl e Par t Wi dt h,
const doubl e Par t Angl e,
const doubl e Mi nCi r cRect Or i gi n[ 2] ,
const doubl e Cog[ 2] ,
const doubl e Per i met er ,
const doubl e Ef f ect i vePar t Ar ea,
const doubl e Boundar yPar t Ar ea,
const char *Assi d1,
const char *Assi d2,
const char *Assi d3,
const char *Assi d4,
const char *Assembl y,
const char *Pr oduct i onDat e,
const doubl e Rot at i onAngl e,
const i nt Mi r r or Fl ag) ;

I NPUT:
Par amet er s:
Pl at ePar t No The i dent i f i cat i on number f or t he pl at e
par t

Mi r r or Par t No The i dent i f i cat i on number f or t he pl at e
par t whi ch i s t he mi r r or ed i mage of t he
cur r ent pl at e par t . The dat a f or t he
symmt er i cal par t wi l l f ol l ow as t he
next par t . The dat a f or t he mi r r or ed par t
wi l l be used i n t he si ngl e nest i ng of t he
par t .

Thi s par amet er i s onl y gi ven when
symmet r i cal par t s ar e st or ed as
AVEVA Marine 25 (59)

Autonestdoc
___________________________________________________________________________________


i ndi vi dual obj ect s. Ot her wi se
Mi r r Par t No = 0.

Number Of Cont our s The number of cont our s

Par t Name The pl at e par t name

Posi t i onNumber The pl at e par t posi t i on number

Qual i t y The pl at e par t qual i t y

Thi ckness The pl at e par t t hi ckness

Quant i t yNor mal The number of nor mal par t s

Quant i t yMi r r or The number of mi r r or ed par t s

Par t Lengt h The l engt h of t he par t al ong t he l onger
si de of t he l east ci r cumscr i bed r ect angl e

Par t Wi dt h The wi dt h of t he par t al ong t he shor t er
si de of t he l east ci r cumscr i bed r ect angl e

Par t Angl e The angl e bet ween t he X- axi s and t he
l onger si de of t he l east ci r cumscr i bed
r ect angl e

Mi nCi r cRect Or i gi n The or i gi n of t he l east ci r cumscr i bed
r ect angl e

CoG The cent r e of gr avi t y of t he pl at e par t
boundar y

Per i met er The per i met er of t he pl at e par t

Ef f ect i vePar t Ar ea The pl at e par t ar ea wi t h t he ar ea of t he
hol es subt r act ed

Boundar yPar t Ar ea The ar ea of t he pl at e par t boundar y

Assi d1- The assembl y i d' s 1- 4 f r omt he Gener al
Assi d4 Pur pose St r i ngs ( GPS)

Assembl y The pl at e par t assembl y

Pr oduct i onDat e The pr oduct i on dat e

Rot at i onAngl e The r ot at i on angl e t o be used i n t he
nest i ng

Mi r r or Fl ag The mi r r or f l ag:
0 = No mi r r or i ng al l owed
1 = Mi r r or i ng al l owed
AVEVA Marine 26 (59)

Autonestdoc
___________________________________________________________________________________




RESULT:
None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
*********************************************************************
*
* Mai n pr ocedur e - wo007
*
*********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo007( const i nt / * Pl at ePar t No */ ,
const i nt / * Mi r r or Par t No */ ,
const i nt / * Number Of Cont our s */ ,
const char * / * Par t Name */ ,
const char * / * Posi t i onNumber */ ,
const char * / * Qual i t y */ ,
const doubl e / * Thi ckness */ ,
const i nt / * Quant i t yNor mal */ ,
const i nt / * Quant i t yMi r r or */ ,
const doubl e / * Par t Lengt h */ ,
const doubl e / * Par t Wi dt h */ ,
const doubl e / * Par t Angl e */ ,
const doubl e [ 2] / * Mi nCi r cRect Or i gi n */ ,
const doubl e [ 2] / * Cog */ ,
const doubl e / * Per i met er */ ,
const doubl e / * Ef f ect i vePar t Ar ea */ ,
const doubl e / * Boundar yPar t Ar ea */ ,
const char * / * Assi d1 */ ,
const char * / * Assi d2 */ ,
const char * / * Assi d3 */ ,
const char * / * Assi d4 */ ,
const char * / * Assembl y */ ,
const char * / * Pr oduct i onDat e */ ,
const doubl e / * Rot at i onAngl e */ ,
const i nt / * Mi r r or Fl ag */ )
{
}
}
AVEVA Marine 27 (59)

Autonestdoc
___________________________________________________________________________________


WO008
NAME:
WO008 - Aut oNest I nt er f ace r out i ne - Add Segment Par t f or Pl at e
Par t

PURPOSE:

The pr ocedur e adds one segment par t f or a pl at e par t cont our .
The f i r st segment par t consi st s onl y of t he st ar t i ng poi nt .
Each successi ve segment par t cont ai ns t he ampl i t ude vect or
and t he endi ng poi nt . 2 consecut i ve segment par t s const i t ues
one segment .

DECLARATI ON:

voi d wo008( const i nt Par t No,
const i nt Cont our No,
const i nt SegPar t ,
const i nt SegType,
const doubl e AmpU,
const doubl e AmpV,
const doubl e EndU,
const doubl e EndV) ;

I NPUT:
Par amet er s:

Par t No The i dent i f i cat i on number f or t he pl at e par t

Cont our No The pl at e par t cont our number , st ar t i ng f r om
1

SegPar t The segment par t number , st ar t i ng f r om0

SegType The segment par t t ype:
0 = The st ar t i ng poi nt
1 = Li ne
2 = Ar c

AmpU The ampl i t ude vect or
AmpV

EndU The endi ng poi nt
EndV


RESULT:
None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 28 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo008
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo008( const i nt / * Par t No */ ,
const i nt / * Cont our No */ ,
const i nt / * SegPar t */ ,
const i nt / * SegType */ ,
const doubl e / * AmpU */ ,
const doubl e / * AmpV */ ,
const doubl e / * EndU */ ,
const doubl e / * EndV */ )
{
}
}
AVEVA Marine 29 (59)

Autonestdoc
___________________________________________________________________________________


WO009
NAME:

WO009 - Aut oNest I nt er f ace r out i ne - Def i ne Number of
Qual i t i es


PURPOSE:

The pr ocedur e def i nes t he number of qual i t i es f or a base
qual i t y.


DECLARATI ON:

voi d wo009 ( const i nt BaseQual i t yNumber ,
const i nt Number Of Qual i t i es) ;


I NPUT:

Par amet er s:

BaseQual i t yNumber The or der number of t he base qual i t y,
st ar t i ng at 1

Number Of Qual i t i es The number of qual i t i es f or t he gi ve
base qual i t y

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 30 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo009
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo009 ( const i nt / * BaseQual i t yNumber */ ,
const i nt / * Number Of Qual i t i es */ )
{
}
}
AVEVA Marine 31 (59)

Autonestdoc
___________________________________________________________________________________


WO010
NAME:

WO010 - Aut oNest I nt er f ace r out i ne - Add Qual i t y f or Qual i t y
Exchange

PURPOSE:

The pr ocedur e adds one qual i t y t o t he qual i t y exchange.

DECLARATI ON:

voi d wo010 ( const i nt BaseQual i t yNumber ,
const char *BaseQual i t y,
const char *Qual i t y) ;

I NPUT:

Par amet er s:

BaseQual i t yNumber The number of t he cur r ent base qual i t y

BaseQual i t y The base qual i t y

Qual i t y A qual i t y on whi ch t he BaseQual i t y can
be nest ed

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 32 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo010
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo010 ( const i nt / * BaseQual i t yNumber */ ,
const char * / * BaseQual i t y */ ,
const char * / * Qual i t y */ )
{
}
}
AVEVA Marine 33 (59)

Autonestdoc
___________________________________________________________________________________


WO011
NAME:

WO011 - Aut oNest I nt er f ace r out i ne - Aut onest

PURPOSE:

The pr ocedur e st ar t s t he aut onest i ng.


DECLARATI ON:

i nt wo011 ( voi d) ;

I NPUT:

RESULT:

The pr ocedur e r et ur ns 1 when t he aut onest i ng i s f i ni shed,
ot her wi se 0.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo011
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
i nt wo011 ( voi d)
{
r et ur n 0;
}
}
AVEVA Marine 34 (59)

Autonestdoc
___________________________________________________________________________________


WO012
NAME:

WO012 - Aut oNest I nt er f ace r out i ne - Get Number of Nest ed
Pl at es

PURPOSE:

The pr ocedur e get s t he number of nest ed pl at es.


DECLARATI ON:

i nt wo012( voi d) ;

I NPUT:

RESULT:

The number of nest ed pl at es i s r et ur ned.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo012
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
i nt wo012( voi d)
{
r et ur n 0;
}
}
AVEVA Marine 35 (59)

Autonestdoc
___________________________________________________________________________________


NAME:

WO013 - Aut oNest I nt er f ace r out i ne - Get Number of Nest ed
Par t s


PURPOSE:

The pr ocedur e get s t he number of nest ed par t s f or t he gi ven
nest ed pl at e.

DECLARATI ON:

voi d wo013( const i nt Nest edPl at eNo,
i nt & RawPl at eNo,
i nt & Quant i t yNor mal ,
i nt & Quant i t yMi r r or ,
char * Assembl y,
char * Pr oduct i onDat e,
i nt & Number Of Nest edPar t s) ;

I NPUT:

Par amet er s:

Nest edPl at eNo The i dent i f i cat i on number f or t he
nest ed pl at e

RESULT:

Par amet er s:

RawPl at eNo The i dent i f i cat i on number f or t he used
r aw pl at e

Quant i t yNor mal The number of nest i ngs bur ned nor mal

Quant i t yMi r r or The number of nest i ngs bur ned mi r r or ed

Assembl y Assembl y f or most of t he par t s

Pr oduct i onDat e Pr oduct i on dat e f or most of t he par t s

Number Of Nest edPar t s The number of nest ed par t s


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
AVEVA Marine 36 (59)

Autonestdoc
___________________________________________________________________________________


#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo013
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo013( const i nt / * Nest edPl at eNo */ ,
i nt & / * RawPl at eNo */ ,
i nt & / * Quant i t yNor mal */ ,
i nt & / * Quant i t yMi r r or */ ,
i nt & / * Number Of Nest edPar t s */ )
{
}
}
AVEVA Marine 37 (59)

Autonestdoc
___________________________________________________________________________________


WO014
NAME:

WO014 - Aut oNest I nt er f ace r out i ne - Get Pl at e Par t
Tr ansf or mat i on


PURPOSE:

The pr ocedur e get s t he t r ansf or mat i on mat r i x f or t he nest ed
par t .


DECLARATI ON:

voi d wo014( const i nt Nest edPl at eNo,
const i nt Nest edPar t No,
i nt & Pl at ePar t No,
i nt & Nest ed,
doubl e& Dx,
doubl e& Dy,
doubl e& Angl e,
i nt & Mi r r ) ;

I NPUT:

Par amet er s:

Nest edPl at eNo The i dent i f i cat i on number f or t he nest ed
pl at e

Nest edPar t No The i dent i f i cat i on number f or t he nest ed
pl at e par t wi t hi n t he cur r ent nest i ng,
st ar t i ng f r om1


RESULT:

Par amet er s:

Pl at ePar t No The gl obal i dent i f i cat i on number f or t he
nest ed par t

Nest ed TRUE i f t he pl at e par t has been nest ed,
ot her wi se FALSE

The f ol l owi ng par amet er s descr i be t he
t r ansf or mat i on of t he pl at e par t f r omi t s
l ocal co- or di nat e syst emt o t he nest ed
pl at e. The t r ansf or mat i on i s appl i ed i n t he
f ol l owi ng or der :
AVEVA Marine 38 (59)

Autonestdoc
___________________________________________________________________________________


1. r ot at i on
2. r ef l ect i on
3. t r ansl at i on


Dx Pl at e par t t r ansl at i on
Dy

Angl e Pl at e par t r ot at i on

Mi r r Pl at e par t mi r r or code:
0 = Pl at e par t not mi r r or ed.
1 = Pl at e par t mi r r or ed i n t he x- axi s
2 = Pl at e par t mi r r or ed i n t he y- axi s

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo014
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo014( const i nt / * Nest edPl at eNo */ ,
const i nt / * Nest edPar t No */ ,
i nt & / * Pl at ePar t No */ ,
i nt & / *Nest ed */ ,
doubl e& / *Dx */ ,
doubl e& / *Dy */ ,
doubl e& / *Angl e */ ,
i nt & / *Mi r r */ )
{
}
}
AVEVA Marine 39 (59)

Autonestdoc
___________________________________________________________________________________


WO015
NAME:

WO015 - Aut oNest I nt er f ace r out i ne - Cl eanup

PURPOSE:

The pr ocedur e per f or ms t he necessar y cl eanup of l ocal
i nt er f ace dat a st r uct ur es.

DECLARATI ON:

voi d wo015 ( voi d) ;

I NPUT:

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo015
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo015 ( voi d)
{
}
}
AVEVA Marine 40 (59)

Autonestdoc
___________________________________________________________________________________


WO016
NAME:

WO016 - Aut oNest I nt er f ace r out i ne - Def i ne Maxi mumnumber of
Qual i t i es

PURPOSE:

The pr ocedur e def i nes t he number of base qual i t i es and t he
maxi mumnumber of qual i t i es f or one base qual i t y.

DECLARATI ON:

voi d wo016 ( const i nt Number Of BaseQual i t i es,
const i nt MaxNumber Of Qual i t i es) ;

I NPUT:

Par amet er s:

Number Of BaseQual i t i es The number of base qual i t i es

MaxNumber Of Qual i t i es The maxi mumnumber of qual i t i es f or
one base qual i t y

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f
AVEVA Marine 41 (59)

Autonestdoc
___________________________________________________________________________________



/ *
**********************************************************************
*
* Mai n pr ocedur e - wo016
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo016 ( const i nt / * Number Of BaseQual i t i es */ ,
const i nt / * MaxNumber Of Qual i t i es */ )
{
}
}
AVEVA Marine 42 (59)

Autonestdoc
___________________________________________________________________________________


WO017
NAME:

WO017 - Aut oNest I nt er f ace r out i ne - Nest i ng Par amet er s


PURPOSE:

The pr ocedur e def i nes t he par amet er s f or
aut onest sessi on.


DECLARATI ON:

voi d wo017 ( const i nt Nest Set ,
const i nt Pl at eFi l l ,
const doubl e MaxScr apSi ngl e,
const doubl e MaxScr apMi r r or ,
const doubl e MaxScr apMul t i ,
const i nt TypeOf Opt i mi zat i on,
const char *Nest Gps) ;


I NPUT:

Par amet er s:

Nest Set Type of nest i ng:
1 = nor mal ( nest i ng based on t hi ckness and
qual i t y)
2 = nest i ng based on assembl y
3 = nest i ng based on pr oduct i on dat e
4 = nest i ng based on assembl y and pr oduct i on
dat e

Pl at eFi l l Fi l l t ype of nest i ng:
1 = nor mal ( f i l l pl at e excusi vel y wi t h par t s
def i ned i n Nest Set )
2 = Add par t s f r omanot her set ( same t hi ckness
and qual i t y, but di f f er ent assembl y or
pr oduct i on dat e)

MaxScr apSi ngl e Maxi mumal l owed scr ap per cent age f or si ngl e
par t nest i ng

MaxScr apMi r r or Maxi mumal l owed scr ap per cent age f or mi r r or
nest i ng

MaxScr apMul t i Maxi mumal l owed scr ap per cent age f or mul t i
nest i ng

AVEVA Marine 43 (59)

Autonestdoc
___________________________________________________________________________________


TypeOf Opt i mi zat i on The t ype of opt i mi zat i on t o be
per f or med:

0 = no opt i mi zat i on
1 = pr ess down

Mor e act i vi t i es can be added.

Nest Gps Gener al Pur pose St r i ng val i d f or one aut onest
sessi on

RESULT:

None.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/

ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo017
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo017 ( const i nt / * Nest Set */ ,
const i nt / * Pl at eFi l l */ ,
const doubl e / * MaxScr apSi ngl e */ ,
const doubl e / * MaxScr apMi r r or */ ,
const doubl e / * MaxScr apMul t i */ ,
const i nt / * TypeOf Opt i mi zat i on */ ,
const char * / * Nest Gps */ )
{
}
}
AVEVA Marine 44 (59)

Autonestdoc
___________________________________________________________________________________


WO018
NAME:

WO018 - Aut oNest I nt er f ace r out i ne - Cr eat e Par t l y Fi l l ed
Nest


PURPOSE:

The pr ocedur e cr eat es one par t l y f i l l ed nest f or aut omat i c
f i l l i ng wi t h r emai ni ng par t s. Bef or e cal l i ng t hi s pr ocedur e
r aw pl at es and par t s must have been def i ned.


DECLARATI ON:

voi d wo018( const i nt Nest edPl at eNo,
const i nt RawPl at eNo,
const i nt Quant i t yNor mal ,
const i nt Quant i t yMi r r or ,
const char *Assembl y,
const char *Pr oduct i onDat e,
const i nt Number Of Nest edPar t s) ;

I NPUT:

Par amet er :

Nest edPl at eNo The i dent i f i cat i on number f or t he nest ed
pl at e

RawPl at eNo The i dent i f i cat i on number f or t he used
r aw pl at e

Quant i t yNor mal The number of nest i ngs bur ned nor mal i n
t he par t l y f i l l ed nest i ng

Quant i t yMi r r or The number of nest i ngs bur ned mi r r or ed i n
t he par t l y f i l l ed nest i ng

Assembl y Assembl y wher e most of t he par t s ar e
bel ongi ng

Pr oduct i onDat e Pr oduct i on dat e f or most of t he par t s

Number Of Nest edPar t s The number of nest ed par t s

AVEVA Marine 45 (59)

Autonestdoc
___________________________________________________________________________________


RESULT:

Par amet er s:

None


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo018
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo018( const i nt / * Nest edPl at eNo */ ,
const i nt / * RawPl at eNo */ ,
const i nt / * Quant i t yNor mal */ ,
const i nt / * Quant i t yMi r r or */ ,
const char * / * Assembl y */ ,
const char * / * Pr oduct i onDat e */ ,
const i nt / * Number Of Nest edPar t s */ )
{
}
}
AVEVA Marine 46 (59)

Autonestdoc
___________________________________________________________________________________


WO019
NAME:

WO019 - Aut oNest I nt er f ace r out i ne - Add Par t f or Par t l y
Fi l l ed Nest


PURPOSE:

The pr ocedur e i nput s t he t r ansf or mat i on mat r i x f or t he nest ed
par t
on a par t l y f i l l ed nest ed pl at e.


DECLARATI ON:

voi d wo019( const i nt Nest edPl at eNo,
const i nt Nest edPar t No,
const i nt Par t No,
const doubl e Dx,
const doubl e Dy,
const doubl e Angl e,
const i nt Mi r r ) ;

I NPUT:

Par amet er s:

Nest edPl at eNo The i dent i f i cat i on number f or t he nest ed
pl at e

Nest edPar t No The i dent i f i cat i on number f or a nest ed par t
( l ocal wi t hi n t he nest ed pl at e)

Par t No The i dent i f i cat i on number f or a nest ed pl at e
par t ( gl obal )

The f ol l owi ng par amet er s descr i be t he
t r ansf or mat i on of t he pl at e par t f r omi t s
l ocal co- or di nat e syst emt o t he nest ed pl at e.
The t r ansf or mat i on i s appl i ed i n
t he f ol l owi ng or der :
1. r ot at i on
2. r ef l ect i on
3. t r ansl at i on

Dx Pl at e par t t r ansl at i on
Dy

Angl e Pl at e par t r ot at i on

AVEVA Marine 47 (59)

Autonestdoc
___________________________________________________________________________________


Mi r r Pl at e par t mi r r or code:
0 = Pl at e par t not mi r r or ed.
1 = Pl at e par t mi r r or ed i n t he x- axi s
2 = Pl at e par t mi r r or ed i n t he y- axi s

RESULT:

Par amet er s:

None


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
*********************************************************************
*
* Mai n pr ocedur e - wo019
*
*********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo019( const i nt / * Nest edPl at eNo */ ,
const i nt / * Nest edPar t No */ ,
const i nt / * Par t No */ ,
const doubl e / * Dx */ ,
const doubl e / * Dy */ ,
const doubl e / * Angl e */ ,
const i nt / * Mi r r */ )
{
}
}
AVEVA Marine 48 (59)

Autonestdoc
___________________________________________________________________________________


WO020
NAME:

WO020 - Aut oNest I nt er f ace r out i ne - Get Number of Remai ned
Par t s

PURPOSE:

The pr ocedur e get s t he number of unnest ed par t s.


DECLARATI ON:

i nt wo020( voi d) ;


I NPUT:


RESULT:

The number of unnest ed par t s ( di f f er ent par t geomet r i es) i s
r et ur ned.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo020
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
i nt wo020 ( voi d)
{
r et ur n 0;
}
}
AVEVA Marine 49 (59)

Autonestdoc
___________________________________________________________________________________


WO021
NAME:

WO021 - Aut oNest I nt er f ace r out i ne - Get Unnest ed Par t s

PURPOSE:

The pr ocedur e get s t he par t s whi ch wer e not nest ed on t he
basi s of t he gi ven r eason.


DECLARATI ON:

voi d wo021( const i nt Remai nedPar t No,
i nt & Par t No,
i nt & Quant i t yNor mal ,
i nt & Quant i t yMi r r or ,
i nt & ReasonFl ag) ;


I NPUT:

Par amet er s:

Remai nedPar t No The i dent i f i cat i on number f or t he
r emai ned par t

RESULT:

Par amet er s:

Par t No The i dent i f i cat i on number f or t he par t

Quant i t yNor mal The quant i t y of r emai ned nor mal i mage
par t s

Quant i t yMi r r or The quant i t y of r emai ned mi r r or ed i mage
par t s

ReasonFl ag The r eason f l ag:

0 = unspeci f i ed
1 = no r aw pl at e exi st s f or t hi s pr oper t y
2 = not enough r aw pl at es f or t hi s
pr oper t y
3 = t he par t does not f i t on pl at e ( t oo
bi g)


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 50 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo021
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo021( const i nt / * Remai nedPar t No */ ,
i nt & / * Par t No */ ,
i nt & / * Quant i t yNor mal */ ,
i nt & / * Quant i t yMi r r or */ ,
i nt & / * ReasonFl ag */ )
{
}
}
AVEVA Marine 51 (59)

Autonestdoc
___________________________________________________________________________________


NAME:

WO022 - Aut oNest I nt er f ace r out i ne - Get Name and Type of
Nest ed Pl at e


PURPOSE:

The pr ocedur e get s t he number of nest ed par t s f or t he gi ven
nest ed pl at e.


DECLARATI ON:

voi d wo022( const i nt Nest edPl at eNo,
char * Nest i ngName,
i nt & Nest i ngType,
char * Dr awi ngNumber ) ;


I NPUT:

Par amet er s:

Nest edPl at eNo The i dent i f i cat i on number f or t he
nest ed pl at e


RESULT:

Par amet er s:

Nest i ngName The name of t he nest ed pl at e

Nest i ngType The t ype of t he nest ed pl at e:
= 0 Nor mal , no name r et ur ned
= 1 NC
= 2 FP

Dr awi ngNumber The dr awi ng number


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 52 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo022
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo022( const i nt / * Nest edPl at eNo */ ,
char * / * Nest i ngName */ ,
i nt & / * Nest i ngType */ ,
char * / * Dr awi ngNumber */ )
{
}
}
AVEVA Marine 53 (59)

Autonestdoc
___________________________________________________________________________________


WO023
NAME:

WO023 - Aut oNest I nt er f ace r out i ne - Def i ne Number of Bevel
I nt er val s


PURPOSE:

The pr ocedur e def i nes t he number of bevel i nt er val s f or t he
cur r ent cont our .


DECLARATI ON:

voi d wo023( const i nt Pl at ePar t No,
const i nt Cont our No,
const i nt Number Of Bevel s) ;


I NPUT:

Par amet er s:

Pl at ePar t No The i dent i f i cat i on number f or t he pl at e
par t

Cont our No The cont our number

Number Of Bevel s The number of bevel i nt er val s ( onl y
r el evant f or out er cont our s and hol es) .

RESULT:

None.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AVEVA Marine 54 (59)

Autonestdoc
___________________________________________________________________________________


/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo023
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo023( const i nt / * Pl at ePar t No */ ,
const i nt / * Cont our No */ ,
const i nt / * Number Of Bevel s */ )
{
}
}
AVEVA Marine 55 (59)

Autonestdoc
___________________________________________________________________________________


WO024
NAME:

WO024 - Aut oNest I nt er f ace r out i ne - Add Bevel I nt er val f or
Cont our


PURPOSE:

The pr ocedur e adds a bevel i nt er val f or t he cur r ent cont our .


DECLARATI ON:

voi d wo024( const i nt Pl at ePar t No,
const i nt Cont our No,
const i nt Bevel I nt er val No,
const i nt SegPar t St ar t ,
const doubl e St ar t Poi nt [ 2] ,
const i nt SegPar t End,
const doubl e EndPoi nt [ 2] ,
const doubl e Bevel Code) ;


I NPUT:

Par amet er s:

Pl at ePar t No The i dent i f i cat i on number f or t he pl at e
par t

Cont our No The cont our number

Bevel I nt er val No The bevel i nt er val number

SegPar t St ar t Segment par t number f or t he bevel
i nt er val st ar t

St ar t Poi nt I nt er val st ar t i ng poi nt

SegPar t End Segment par t number f or t he bevel
i nt er val end

EndPoi nt I nt er val endi ng poi nt

Bevel Code The bevel code ( < 0 i ndi cat es ot her si de)


RESULT:

None.
AVEVA Marine 56 (59)

Autonestdoc
___________________________________________________________________________________




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo024
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo024( const i nt / * Pl at ePar t No */ ,
const i nt / * Cont our No */ ,
const i nt / * Bevel I nt er val No */ ,
const i nt / * SegPar t St ar t */ ,
const doubl e [ 2] / * St ar t Poi nt */ ,
const i nt / * SegPar t End */ ,
const doubl e [ 2] / * EndPoi nt */ ,
const doubl e / * Bevel Code */ )
{
}
}
AVEVA Marine 57 (59)

Autonestdoc
___________________________________________________________________________________


WO025
NAME:

WO025 - Aut oNest I nt er f ace r out i ne - Get Opt i mi zed Raw Pl at e
Dat a


PURPOSE:

The pr ocedur e get s t he dat a f or t he sel ect ed r aw pl at e.



DECLARATI ON:

voi d wo025( const i nt Nest edPl at eNo,
doubl e& Lengt h,
doubl e& Wi dt h,
doubl e& Thi ckness,
char * Qual i t y,
doubl e& Densi t y) ;


I NPUT:

Par amet er s:

Nest edPl at eNo The i dent i f i cat i on number f or t he
nest ed pl at e

RESULT:

Par amet er s:

Lengt h The r aw pl at e l engt h

Wi dt h The r aw pl at e l engt h

Thi ckness The r aw pl at e l engt h

Qual i t y The r aw pl at e l engt h

Densi t y The r aw pl at e l engt h



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ *
* Ext er nal decl ar at i ons
*/
ext er n " C"
AVEVA Marine 58 (59)

Autonestdoc
___________________________________________________________________________________


{
#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API
#endi f

/ *
**********************************************************************
*
* Mai n pr ocedur e - wo025
*
**********************************************************************
*/
#i f def WI N32
TBLAYOUTPLUGI N_API
#endi f
voi d wo025( const i nt / * Nest edPl at eNo */ ,
doubl e& / * Lengt h */ ,
doubl e& / * Wi dt h */ ,
doubl e& / * Thi ckness */ ,
char * / * Qual i t y */ ,
doubl e& / * Densi t y */ )
{
}
}
AVEVA Marine 59 (59)

Autonestdoc
___________________________________________________________________________________