Auto Nest Documentation
Transcript of Auto Nest Documentation
-
8/12/2019 Auto Nest Documentation
1/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 crosof 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}"
Proj ect Sect i on( Pr oj ect Dependenci es) = post Pr oj ectEndPr oj ect Sect i on
EndPr oj ectGl obal
Gl obal Sect i on( Sol ut i onConf i gur at i on) = pr eSol ut i onDebug = DebugRel ease = Rel ease
EndGl obal Sect i onGl 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 onGl obal Sect i on( Ext ensi bi l i t yGl obal s) = post Sol ut i onEndGl obal Sect i onGl obal Sect i on( Ext ensi bi l i t yAddI ns) = post Sol ut i onEndGl obal Sect i on
EndGl obal
TbLayoutPlugin.vcproj
-
8/12/2019 Auto Nest Documentation
2/59
AVEVA Marine 2 (59)
Autonestdoc___________________________________________________________________________________
Name="Wi n32" / >
-
8/12/2019 Auto Nest Documentation
3/59
AVEVA Marine 3 (59)
Autonestdoc___________________________________________________________________________________
Modul eDef i ni t i onFi l e=". \ TBLayout Pl ugi n. def "
Generat eDebugI nf or mat i on="TRUE"
Progr amDatabaseFi l e=" . \ Debug/ TBLayout Pl ugi n. pdb"
I mpor t Li br ar y=" . \ Debug/ TBLayout Pl ugi n. l i b"Tar getMachi ne="1"/ >
-
8/12/2019 Auto Nest Documentation
4/59
AVEVA Marine 4 (59)
Autonestdoc___________________________________________________________________________________
-
8/12/2019 Auto Nest Documentation
5/59
AVEVA Marine 5 (59)
Autonestdoc___________________________________________________________________________________
Addi t i onal Li br aryDi r ector i es=""
I gnor eDef aul t Li br aryNames="l i bc. l i b, l i bcmt . l i b, l i bcd. l i b, l i bcmtd. l i b, msvcr t d. l i b"
Modul eDef i ni t i onFi l e=". \ TBLayout Pl ugi n. def "
Progr amDatabaseFi 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 getMachi ne="1"/ >
-
8/12/2019 Auto Nest Documentation
6/59
AVEVA Marine 6 (59)
Autonestdoc___________________________________________________________________________________
-
8/12/2019 Auto Nest Documentation
7/59
AVEVA Marine 7 (59)
Autonestdoc___________________________________________________________________________________
-
8/12/2019 Auto Nest Documentation
8/59
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_0800090A4C97__ I NCLUDED_)#def i neAFX_TBLAYOUTPLUGI N_H__259152F2_03E8_11D5_BD54_0800090A4C97__INCLUDED_
#i f def TBLAYOUTPLUGI N_EXPORTS#def i ne TBLAYOUTPLUGI N_API __decl spec( dl l export )#el se#def i ne TBLAYOUTPLUGI N_API __decl spec( dl l i mport )#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 NumberOf RawPl at es) ;
TBLAYOUTPLUGI N_API voi d wo003( const i nt RawPl at eNo,const i nt NumberOf 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 ntNumber Of Pl atePar t s) ;
TBLAYOUTPLUGI N_API voi d wo006 ( const i nt Pl at ePar t No,
-
8/12/2019 Auto Nest Documentation
9/59
AVEVA Marine 9 (59)
Autonestdoc___________________________________________________________________________________
const i nt Cont our No,const i nt NumberOf 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 NumberOf 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 eMi nCi r cRectOr i gi n[ 2] ,const doubl e Cog[ 2] ,const doubl e Per i meter,const doubl e
Ef f ecti vePar t Ar ea,const doubl e BoundaryPar t Ar ea,const char * Assembl y,const char * Pr oduct i onDate,const doubl e Rotat i onAngl e,const i nt Mi r rorFl 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 ateNo ,i nt & Quant i t yNormal ,i nt & Quant i t yMi r r or ,char* Assembl y ,char* Product i onDate ,
-
8/12/2019 Auto Nest Documentation
10/59
AVEVA Marine 10 (59)
Autonestdoc___________________________________________________________________________________
i nt & NumberOf 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 rr ) ;
TBLAYOUTPLUGI N_API voi d wo015 ( voi d) ;
TBLAYOUTPLUGI N_API voi d wo016 ( const i ntNumberOf BaseQual i t i es ,
const i nt
MaxNumberOf Qual i t i es ) ;
TBLAYOUTPLUGI N_API voi d wo017 ( const i nt Nest Set ,const i nt Pl ateFi 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 zati on ) ;
TBLAYOUTPLUGI N_API voi d wo018( const i nt Nest edPl at eNo ,const i nt RawPl ateNo ,const i nt Quant i t yNor mal ,const i nt Quant i t yMi r r or ,
const char * Assembl y ,const char * Product i onDate ,const i nt
NumberOf 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 rr ) ;
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 yNormal ,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 ) ;
-
8/12/2019 Auto Nest Documentation
11/59
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 NumberOf 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 dth,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_0800090A4C97__ I NCLUDED_)
-
8/12/2019 Auto Nest Documentation
12/59
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 DLLappl i cat i on./ /
#i ncl ude "wi ndows. h"#i ncl ude "TBLayout Pl ugi n. h"
-
8/12/2019 Auto Nest Documentation
13/59
AVEVA Marine 13 (59)
Autonestdoc___________________________________________________________________________________
2 Interface routines
WO001
NAME:WO001 - Aut oNest I nt erf ace r out i ne - I s External Aut oNest
Connect ed
PURPOSE:The procedure checks i f an ext er nal Aut oNest al gor i t hm hasbeen connect ed.
DECLARATI ON:
i nt wo001 ( voi d) ;
RESULT:
The procedure r et urns TRUE i f connect ed, ot herwi se FALSE.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo001************************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
i nt wo001 ( voi d){
r et ur n 1;}
}
-
8/12/2019 Auto Nest Documentation
14/59
AVEVA Marine 14 (59)
Autonestdoc___________________________________________________________________________________
WO002
NAME:
WO002 - Aut oNest I nter f ace r out i ne - Def i ne Number of RawPl at es
PURPOSE:The procedure def i nes t he number of r aw pl at es avai l abl e i nt he aut onest sessi on.
DECLARATI ON:
voi d wo002 ( const i nt Number Of RawPl ates) ;
I NPUT:
Par ameters:
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 ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************ Mai n procedure - wo002*
***********************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo002 ( const i nt / * NumberOf RawPl ates */ ){}
/*
* Allocate C++ structure for the given number of raw plates. Data will
* be added in the calls of wo003 and wo004.
*/}
-
8/12/2019 Auto Nest Documentation
15/59
AVEVA Marine 15 (59)
Autonestdoc___________________________________________________________________________________
WO003
NAME:
WO003 - AutoNest I nt er f ace r out i ne - Add Raw Pl at e
PURPOSE:
The procedur e adds t he data f or one r aw pl at e.
DECLARATI ON:
voi d wo003( const i nt RawPl ateNo,
const i nt NumberOf 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 ameters:
RawPl ateNo The i dent i f i cat i on number f or t he r aw pl at eNumber 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 yNormal +Quant i t yMi r r or )
Quant i t yNormal 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 ored
Fl angeSi de Code f or r ef l ect i ng par t s wi t h f ol dedf l anges:= - 1 For ce f ol ded f l ange to be at t he other
si de= 0 Automat i c= +1 For ce f ol ded f l ange to be at t hi s si de
-
8/12/2019 Auto Nest Documentation
16/59
AVEVA Marine 16 (59)
Autonestdoc___________________________________________________________________________________
Thi ckness The r aw pl at e t hi ckness
Par t Thi ckMi n The mi ni mum al l owed pl ate part t hi cknesst hat can be nest ed on t he raw pl ate
Par t Thi ckMax The maxi mum al l owed pl ate part t hi cknesst hat can be nest ed on t he raw pl ate
Di st Par t Pl ate The mi ni mum di st ance between t he r aw pl ateand a par t
Di st Par t Par t The mi ni mum di st ance between a part and apart
Di st Par t Pl ate2 The mi ni mum di st ance between t he r aw pl ate
and a par t ( Nest t ype = 2)
Di st Par t Par t 2 The mi ni mum di st ance between a part and apart ( Nest t ype = 2)
RESULT:
None.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"
{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo003************************************************************************/
#i f def WI N32
TBLAYOUTPLUGI N_API#endi fvoi d wo003( const i nt / * RawPl ateNo */ ,
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 */ ,
-
8/12/2019 Auto Nest Documentation
17/59
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.
*/}
}
-
8/12/2019 Auto Nest Documentation
18/59
AVEVA Marine 18 (59)
Autonestdoc___________________________________________________________________________________
WO004
NAME:
WO004 - AutoNest I nt er f ace r out i ne - Add Segment Part f or Raw Pl at e
PURPOSE:
The procedure adds one segment part f or t he r aw pl at e cont our. Thef i r st segment par t consi st s onl y of t he st ar t i ng poi nt . Eachsuccessi ve segment part cont ai ns t he ampl i t ude vector and t heendi ng poi nt . 2 consecut i ve segment part s const i t ues one segment .
DECLARATI ON:
voi d wo004( const i nt RawPl ateNo,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 ameters:
RawPl ateNo The i dent i f i cat i on number f or t he r aw pl ate
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 art i ng poi nt1 = Li ne2 = Arc
AmpU The ampl i t ude vect orAmpV
EndU The endi ng poi nt
EndV
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
19/59
AVEVA Marine 19 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo004***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo004( const i nt / * RawPl ateNo */ ,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.
*/}
}
-
8/12/2019 Auto Nest Documentation
20/59
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 ate Par t s
PURPOSE:
The procedur e def i nes t he number of avai l abl e pl at e par t s i n t heaut onest sessi on.
DECLARATI ON:
voi d wo005 ( const i nt NumberOf Pl atePart s) ;
I NPUT:
Par ameters:
NumberOf Pl atePar t s The number of avai l abl e pl ate par t s
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/ ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo005
************************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo005 ( const i nt / * NumberOf Pl at ePart s */ ){}
}
-
8/12/2019 Auto Nest Documentation
21/59
AVEVA Marine 21 (59)
Autonestdoc___________________________________________________________________________________
WO006
NAME:WO006 - Aut oNest I nter f ace rout i ne - Def i ne number of segment
parts
PURPOSE:
The procedure def i nes t he number of segment part 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 NumberOf SegPar t s,const i nt Cont our Type,const i nt Marki ngType,const i nt Mar ki ngSi de) ;
I NPUT:
Par ameters:
Pl at ePar t No The i dent i f i cat i on number f or t he pl at epart
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 hecont our
Cont our Type The t ype of cont our := 1 Outer contour= 2 Hol e= 3 Mar ki ng= 4 Bl ast i ng= 5 GSD
Marki ngType The t ype of marki ng/ bl ast i ng/ GSD:= 0 Hul l cur ve or no r ef erence
= 1 Hol e= 2 Br acket= 3 I nner seam i 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 contour= 12 Web wi t h f l ange geomet r y
-
8/12/2019 Auto Nest Documentation
22/59
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 Metal t ouchi ng l i ne= 17 Smal l hol e= 18 Br acket over l ap= 19 I nt ersect i ng panel= 20 I nt ersect i ng br acket on another
panel= 21 Cutout 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 erence l i ne i n PLCM
= 25 At t achment angl e, i nt ersect i ngpanel
= 26 At t achment angl e, i nt ersect i ngbr acket= 27 At t achment angl e, pr of i l e= 28 At t achment angl e, bracket= 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
Marki ngSi de The si de of marki 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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
23/59
AVEVA Marine 23 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************ Mai n procedure - wo006**********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo006 ( const i nt / * Pl at ePar t No */ ,const i nt / * Cont our No */ ,const i nt / * NumberOf SegPar t s */ ,const i nt / * Cont our Type */ ,const i nt / * Mar ki ngType */ ,const i nt / * Mar ki ngSi de */ )
{}
}
-
8/12/2019 Auto Nest Documentation
24/59
AVEVA Marine 24 (59)
Autonestdoc___________________________________________________________________________________
WO007
NAME:WO007 - Aut oNest I nt erf ace r out i ne - Add Pl ate Part
PURPOSE:
The procedur e adds a pl at e part .
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 NumberOf 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 meter ,const doubl e Ef f ect i vePar t Ar ea,
const doubl e BoundaryPar 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 onDate,const doubl e Rotat i onAngl e,const i nt Mi r r or Fl ag) ;
I NPUT:Par ameters:
Pl at ePar t No The i dent i f i cat i on number f or t he pl at e
part
Mi r r or Par t No The i dent i f i cat i on number f or t he pl at epart whi ch i s t he mi r r ored i mage of t hecur r ent pl at e par t . The dat a f or t hesymmt er i cal par t wi l l f ol l ow as t henext par t . The dat a f or t he mi r r or ed par twi l l be used i n t he si ngl e nest i ng of t hepart .
Thi s paramet er i s onl y gi ven whensymmetr i cal part s ar e st or ed as
-
8/12/2019 Auto Nest Documentation
25/59
AVEVA Marine 25 (59)
Autonestdoc___________________________________________________________________________________
i ndi vi dual obj ect s. Ot her wi seMi r r Par t No = 0.
NumberOf Contours The number of cont ours
Par t Name The pl at e part name
Posi t i onNumber The pl ate part 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 part 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 ored part s
Par t Lengt h The l engt h of t he part al ong t he l ongersi de of t he l east ci r cumscri bed rect angl e
Par t Wi dt h The wi dt h of t he part al ong t he short ersi de of t he l east ci r cumscri bed rect angl e
Par t Angl e The angl e bet ween t he X- axi s and t hel onger si de of t he l east ci r cumscr i bedr ect angl e
Mi nCi r cRect Or i gi n The or i gi n of the 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 ate partboundar y
Per i meter The peri meter of t he pl ate part
Ef f ect i vePar t Ar ea The pl at e par t area wi t h t he ar ea of t hehol es subt r act ed
BoundaryPar t Ar ea The area of the pl ate par t boundary
Assi d1- The assembl y i d' s 1- 4 f r om t he Gener al
Assi d4 Pur pose St r i ngs ( GPS)
Assembl y The pl at e par t assembl y
Product i onDate The pr oduct i on date
Rotat i onAngl e The r otat i on angl e t o be used i n t henest 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 owed1 = Mi r r ori ng al l owed
-
8/12/2019 Auto Nest Documentation
26/59
AVEVA Marine 26 (59)
Autonestdoc___________________________________________________________________________________
RESULT:None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************ Mai n procedure - wo007***********************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo007( const i nt / * Pl at ePar t No */ ,const i nt / * Mi r rorPar t No */ ,const i nt / * NumberOf 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 ecti vePar t Ar ea */ ,
const doubl e / * BoundaryPar 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 rorFl ag */ )
{}
}
-
8/12/2019 Auto Nest Documentation
27/59
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 ate
Part
PURPOSE:
The procedure adds one segment part f or a pl at e part cont our.The f i r st segment part 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 vectorand the endi ng poi nt . 2 consecut i ve segment par t s const i t uesone 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 ameters:
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 ate part cont our number, st ar t i ng f r om1
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 art i ng poi nt1 = Li ne2 = Arc
AmpU The ampl i t ude vect orAmpV
EndU The endi ng poi ntEndV
RESULT:None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
28/59
AVEVA Marine 28 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo008***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI 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 */ )
{
}}
-
8/12/2019 Auto Nest Documentation
29/59
AVEVA Marine 29 (59)
Autonestdoc___________________________________________________________________________________
WO009
NAME:
WO009 - AutoNest I nter f ace r out i ne - Def i ne Number ofQual i t i es
PURPOSE:
The procedure def i nes t he number of qual i t i es f or a basequal 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 ameters:
BaseQual i t yNumber The order 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 vebase qual i t y
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
30/59
AVEVA Marine 30 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo009***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo009 ( const i nt / * BaseQual i t yNumber */ ,const i nt / * Number Of Qual i t i es */ )
{}
}
-
8/12/2019 Auto Nest Documentation
31/59
AVEVA Marine 31 (59)
Autonestdoc___________________________________________________________________________________
WO010
NAME:
WO010 - Aut oNest I nt erf ace rout i ne - Add Qual i t y f or Qual i t yExchange
PURPOSE:
The procedure 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 ameters:
BaseQual i t yNumber The number of t he curr 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 canbe nest ed
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
32/59
AVEVA Marine 32 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo010***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI 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 */ )
{}
}
-
8/12/2019 Auto Nest Documentation
33/59
AVEVA Marine 33 (59)
Autonestdoc___________________________________________________________________________________
WO011
NAME:
WO011 - Aut oNest I nt er f ace r out i ne - Aut onest
PURPOSE:
The procedure st ar t s t he autonest i ng.
DECLARATI ON:
i nt wo011 ( voi d) ;
I NPUT:
RESULT:
The procedure r et urns 1 when t he autonest i ng i s f i ni shed,ot her wi se 0.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"
{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo011************************************************************************/
#i f def WI N32
TBLAYOUTPLUGI N_API#endi f
i nt wo011 ( voi d){
r et ur n 0;}
}
-
8/12/2019 Auto Nest Documentation
34/59
AVEVA Marine 34 (59)
Autonestdoc___________________________________________________________________________________
WO012
NAME:
WO012 - AutoNest I nter f ace rout i ne - Get Number of Nest edPl at es
PURPOSE:
The procedure gets 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 urned.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"
{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo012************************************************************************/
#i f def WI N32
TBLAYOUTPLUGI N_API#endi f
i nt wo012( voi d){
r et ur n 0;}
}
-
8/12/2019 Auto Nest Documentation
35/59
AVEVA Marine 35 (59)
Autonestdoc___________________________________________________________________________________
NAME:
WO013 - AutoNest I nter f ace rout i ne - Get Number of Nest edParts
PURPOSE:
The procedure gets t he number of nest ed part s f or t he gi vennest ed pl at e.
DECLARATI ON:
voi d wo013( const i nt Nest edPl ateNo,i nt & RawPl ateNo,
i nt & Quant i t yNormal ,i nt & Quant i t yMi r r or ,char* Assembl y,char* Product i onDate,i nt & NumberOf Nest edPar t s) ;
I NPUT:
Par ameters:
Nest edPl at eNo The i dent i f i cat i on number f or t henested pl ate
RESULT:
Par ameters:
RawPl ateNo The i dent i f i cat i on number f or t he usedr 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 ored
Assembl y Assembl y f or most of t he par t s
Product i onDate Product i on date f or most of t he part s
Number Of Nest edPart s The number of nest ed par t s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API
-
8/12/2019 Auto Nest Documentation
36/59
AVEVA Marine 36 (59)
Autonestdoc___________________________________________________________________________________
#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo013************************************************************************/
#i f def WI N32TBLAYOUTPLUGI 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 & / * NumberOf NestedPar t s */ )
{}
}
-
8/12/2019 Auto Nest Documentation
37/59
AVEVA Marine 37 (59)
Autonestdoc___________________________________________________________________________________
WO014
NAME:
WO014 - Aut oNest I nt erf ace rout i ne - Get Pl ate PartTr ansf or mat i on
PURPOSE:
The procedure gets t he t r ansf or mat i on mat r i x f or t he nest edpart .
DECLARATI ON:
voi d wo014( const i nt Nest edPl ateNo,const i nt Nest edPar t No,i nt & Pl at ePar t No,i nt & Nested,doubl e& Dx,doubl e& Dy,doubl e& Angl e,i nt & Mi rr ) ;
I NPUT:
Par ameters:
Nest edPl at eNo The i dent i f i cat i on number f or t he nestedpl at e
Nest edPar t No The i dent i f i cat i on number f or t he nestedpl at e par t wi t hi n t he cur r ent nest i ng,start i ng f rom 1
RESULT:
Par ameters:
Pl at ePar t No The gl obal i dent i f i cat i on number f or t henested part
Nest ed TRUE i f t he pl ate part has been nest ed,ot herwi se FALSE
The f ol l owi ng paramet er s descr i be t het r ansf or mat i on of t he pl at e par t f r om i t sl ocal co- or di nat e syst em t o t he nest edpl at e. The t r ansf or mat i on i s appl i ed i n t hef ol l owi ng or der :
-
8/12/2019 Auto Nest Documentation
38/59
AVEVA Marine 38 (59)
Autonestdoc___________________________________________________________________________________
1. r ot at i on2. ref l ect i on
3. t r ansl at i on
Dx Pl at e par t t r ansl at i onDy
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 s2 = 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 ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************
* Mai n procedure - wo014************************************************************************/
#i f def WI N32TBLAYOUTPLUGI 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 * / ){}
}
-
8/12/2019 Auto Nest Documentation
39/59
AVEVA Marine 39 (59)
Autonestdoc___________________________________________________________________________________
WO015
NAME:
WO015 - Aut oNest I nt er f ace r out i ne - Cl eanup
PURPOSE:
The procedure perf or ms t he necessar y cl eanup of l ocali nt er f ace dat a st r uctures.
DECLARATI ON:
voi d wo015 ( voi d) ;
I NPUT:
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{
#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo015************************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API
#endi fvoi d wo015 ( voi d){}
}
-
8/12/2019 Auto Nest Documentation
40/59
AVEVA Marine 40 (59)
Autonestdoc___________________________________________________________________________________
WO016
NAME:
WO016 - AutoNest I nter f ace rout i ne - Def i ne Maxi mum number ofQual i t i es
PURPOSE:
The procedure def i nes t he number of base qual i t i es and t hemaxi mum number of qual i t i es f or one base qual i t y.
DECLARATI ON:
voi d wo016 ( const i nt NumberOf BaseQual i t i es,const i nt MaxNumberOf Qual i t i es) ;
I NPUT:
Par ameters:
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 orone base qual i t y
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
-
8/12/2019 Auto Nest Documentation
41/59
AVEVA Marine 41 (59)
Autonestdoc___________________________________________________________________________________
/ *
************************************************************************ Mai n procedure - wo016************************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo016 ( const i nt / * NumberOf BaseQual i t i es */ ,const i nt / * MaxNumberOf Qual i t i es */ )
{}
}
-
8/12/2019 Auto Nest Documentation
42/59
AVEVA Marine 42 (59)
Autonestdoc___________________________________________________________________________________
WO017
NAME:
WO017 - Aut oNest I nt er f ace r out i ne - Nest i ng Par ameters
PURPOSE:
The procedure def i nes t he paramet er s f oraut onest sessi on.
DECLARATI ON:
voi d wo017 ( const i nt Nest Set ,const i nt Pl ateFi 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 *NestGps) ;
I NPUT:
Par ameters:
Nest Set Type of nest i ng:1 = normal ( nest i ng based on t hi ckness and
qual i t y)2 = nest i ng based on assembl y3 = nest i ng based on pr oduct i on dat e4 = nest i ng based on assembl y and pr oduct i on
date
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 omanother set ( same thi ckness
and qual i t y, but di f f er ent assembl y orpr oduct i on dat e)
MaxScr apSi ngl e Maxi mum al l owed scr ap percent age f or si ngl epar t nest i ng
MaxScr apMi r r or Maxi mum al l owed scr ap percent age f or mi r r ornest i ng
MaxScr apMul t i Maxi mum al l owed scr ap percent age f or mul t inest i ng
-
8/12/2019 Auto Nest Documentation
43/59
AVEVA Marine 43 (59)
Autonestdoc___________________________________________________________________________________
TypeOf Opt i mi zat i on The t ype of opt i mi zat i on t o beper f ormed:
0 = no opt i mi zat i on1 = pr ess down
More act i vi t i es can be added.
Nest Gps General Pur pose St r i ng val i d f or one aut onestsessi on
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ***********************************************************************
** Mai n procedure - wo017************************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo017 ( const i nt / * Nest Set */ ,cons t i nt / * Pl ateFi 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 */ ){}
}
-
8/12/2019 Auto Nest Documentation
44/59
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 edNest
PURPOSE:
The procedure cr eat es one part l y f i l l ed nest f or automat i cf 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 er aw pl at es and par t s must have been def i ned.
DECLARATI ON:
voi d wo018( const i nt Nest edPl ateNo,const i nt RawPl ateNo,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 onDate,const i nt NumberOf Nest edPar t s) ;
I NPUT:
Par ameter:
Nest edPl at eNo The i dent i f i cat i on number f or t he nestedpl at e
RawPl ateNo The i dent i f i cat i on number f or t he usedr aw pl ate
Quant i t yNormal The number of nest i ngs bur ned nor mal i nt he par t l y f i l l ed nesti ng
Quant i t yMi r r or The number of nest i ngs bur ned mi r r ored i nt he part l y f i l l ed nest i ng
Assembl y Assembl y wher e most of t he par t s arebel ongi ng
Product i onDate Product i on dat e f or most of t he par t s
Number Of Nest edPart s The number of nest ed par t s
-
8/12/2019 Auto Nest Documentation
45/59
AVEVA Marine 45 (59)
Autonestdoc___________________________________________________________________________________
RESULT:
Par ameters:
None
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API
#endi f
/ ************************************************************************* Mai n procedure - wo018************************************************************************/
#i f def WI N32TBLAYOUTPLUGI 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 * / * Product i onDat e */ ,const i nt / * NumberOf Nest edPar t s */ )
{}
}
-
8/12/2019 Auto Nest Documentation
46/59
AVEVA Marine 46 (59)
Autonestdoc___________________________________________________________________________________
WO019
NAME:
WO019 - Aut oNest I nt erf ace r out i ne - Add Par t f or Par t l yFi l l ed Nest
PURPOSE:
The procedure i nput s t he t r ansf or mat i on mat r i x f or t he nest edparton 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 ateNo,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 rr ) ;
I NPUT:
Par ameters:
Nest edPl at eNo The i dent i f i cat i on number f or t he nestedpl at e
Nest edPar t No The i dent i f i cat i on number f or a nest ed part( 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 epar t ( gl obal )
The f ol l owi ng paramet er s descr i be t het r ansf or mat i on of t he pl at e par t f r om i t s
l ocal co- or di nat e syst em t o t he nest ed pl at e.The t r ansf or mat i on i s appl i ed i nt he f ol l owi ng or der :1. rotati on2. ref l ect i on3. t r ansl at i on
Dx Pl at e par t t r ansl at i onDy
Angl e Pl at e par t r ot at i on
-
8/12/2019 Auto Nest Documentation
47/59
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 s2 = Pl at e par t mi r r or ed i n t he y- axi s
RESULT:
Par ameters:
None
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************ Mai n procedure - wo019**********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI 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 rr * / )
{}
}
-
8/12/2019 Auto Nest Documentation
48/59
AVEVA Marine 48 (59)
Autonestdoc___________________________________________________________________________________
WO020
NAME:
WO020 - AutoNest I nter f ace rout i ne - Get Number of Remai nedParts
PURPOSE:
The procedure gets t he number of unnest ed part s.
DECLARATI ON:
i nt wo020( voi d) ;
I NPUT:
RESULT:
The number of unnest ed part s ( di f f er ent par t geomet r i es) i sr et ur ned.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// *
* Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo020*
***********************************************************************/
#i f def WI N32TBLAYOUTPLUGI N_API#endi f
i nt wo020 ( voi d){
r et ur n 0;}
}
-
8/12/2019 Auto Nest Documentation
49/59
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 procedure gets t he part s whi ch wer e not nest ed on t hebasi 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 yNormal ,i nt & Quant i t yMi r r or ,i nt & ReasonFl ag) ;
I NPUT:
Par ameters:
Remai nedPar t No The i dent i f i cat i on number f or t her emai ned par t
RESULT:
Par ameters:
Par t No The i dent i f i cat i on number f or t he par t
Quant i t yNormal The quant i t y of r emai ned normal i mageparts
Quant i t yMi r r or The quant i t y of r emai ned mi r r ored i mageparts
ReasonFl ag The r eason f l ag:
0 = unspeci f i ed1 = no raw pl at e exi st s f or t hi s pr oper t y2 = not enough r aw pl ates f or t hi s
pr oper t y3 = t he par t does not f i t on pl at e ( t oo
bi g)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
50/59
AVEVA Marine 50 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo021***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI 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 */ )
{}
}
-
8/12/2019 Auto Nest Documentation
51/59
AVEVA Marine 51 (59)
Autonestdoc___________________________________________________________________________________
NAME:
WO022 - AutoNest I nter f ace rout i ne - Get Name and Type ofNest ed Pl ate
PURPOSE:
The procedure gets t he number of nest ed part s f or t he gi vennest ed pl at e.
DECLARATI ON:
voi d wo022( const i nt Nest edPl ateNo,
char* Nest i ngName,i nt & Nest i ngType,char* Dr awi ngNumber ) ;
I NPUT:
Par ameters:
Nest edPl at eNo The i dent i f i cat i on number f or t henest ed pl ate
RESULT:
Par ameters:
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 ate:= 0 Nor mal , no name r et ur ned= 1 NC= 2 FP
Dr awi ngNumber The dr awi ng number
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
52/59
AVEVA Marine 52 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo022***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI 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 */ )
{}
}
-
8/12/2019 Auto Nest Documentation
53/59
AVEVA Marine 53 (59)
Autonestdoc___________________________________________________________________________________
WO023
NAME:
WO023 - Aut oNest I nt er f ace rout i ne - Def i ne Number of BevelI nt erval s
PURPOSE:
The procedure def i nes t he number of bevel i nt er val s f or t hecur 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 NumberOf Bevel s) ;
I NPUT:
Par ameters:
Pl at ePar t No The i dent i f i cat i on number f or t he pl at epart
ContourNo The cont our number
Number Of Bevel s The number of bevel i nt erval s ( onl yr el evant f or out er cont our s and hol es) .
RESULT:
None.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
8/12/2019 Auto Nest Documentation
54/59
AVEVA Marine 54 (59)
Autonestdoc___________________________________________________________________________________
/ ** Ext er nal decl ar at i ons
*/ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo023***********************************************************************
*/#i f def WI N32TBLAYOUTPLUGI N_API#endi f
voi d wo023( const i nt / * Pl at ePar t No */ ,const i nt / * Cont our No */ ,const i nt / * NumberOf Bevel s */ )
{}
}
-
8/12/2019 Auto Nest Documentation
55/59
AVEVA Marine 55 (59)
Autonestdoc___________________________________________________________________________________
WO024
NAME:
WO024 - Aut oNest I nt erf ace rout i ne - Add Bevel I nt erval f orCont our
PURPOSE:
The procedure 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 ameters:
Pl at ePar t No The i dent i f i cat i on number f or t he pl at epart
ContourNo The cont our number
Bevel I nt er val No The bevel i nt erval number
SegPar t Star t Segment par t number f or t he beveli nt erval s tar t
St ar t Poi nt I nt er val st art i ng poi nt
SegPar t End Segment par t number f or t he beveli nt er val end
EndPoi nt I nt er val endi ng poi nt
Bevel Code The bevel code ( < 0 i ndi cates other si de)
RESULT:
None.
-
8/12/2019 Auto Nest Documentation
56/59
AVEVA Marine 56 (59)
Autonestdoc___________________________________________________________________________________
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"{#i f ! def i ned TBLAYOUTPLUGI N_API#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************
* Mai n procedure - wo024************************************************************************/
#i f def WI N32TBLAYOUTPLUGI 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 */ ){}
}
-
8/12/2019 Auto Nest Documentation
57/59
AVEVA Marine 57 (59)
Autonestdoc___________________________________________________________________________________
WO025
NAME:
WO025 - Aut oNest I nt er f ace rout i ne - Get Opt i mi zed Raw Pl ateDat a
PURPOSE:
The procedure gets t he data f or t he sel ect ed r aw pl at e.
DECLARATI ON:
voi d wo025( const i nt Nest edPl ateNo,doubl e& Lengt h,doubl e& Wi dth,doubl e& Thi ckness,char * Qual i t y,doubl e& Densi t y) ;
I NPUT:
Par ameters:
Nest edPl at eNo The i dent i f i cat i on number f or t henest ed pl ate
RESULT:
Par ameters:
Lengt h The r aw pl ate l engt h
Wi dt h The r aw pl ate 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 ate l engt h
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// ** Ext er nal decl ar at i ons*/
ext ern "C"
-
8/12/2019 Auto Nest Documentation
58/59
AVEVA Marine 58 (59)
Autonestdoc___________________________________________________________________________________
{#i f ! def i ned TBLAYOUTPLUGI N_API
#def i ne TBLAYOUTPLUGI N_API#endi f
/ ************************************************************************* Mai n procedure - wo025************************************************************************/
#i f def WI N32TBLAYOUTPLUGI 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 */ )
{}
}
-
8/12/2019 Auto Nest Documentation
59/59
AVEVA Marine 59 (59)
Autonestdoc___________________________________________________________________________________