Name:"Kuhnle"

# Please note that Output:File *must* be passed a filename. Otherwise the following text line will be eaten/interpreted as filename
# Example: Output:File	"CuttingList.csv"
Output:File	"interiorcad-Stückliste.c2h"
EXTENSION:.c2h
FILEFILTER:"Kuhnle-Übergabedateien (*.c2h)|*.c2h|Alle Dateitypen (*.*)|*.*||"

FieldDelimiter:,
RecordDelimiter:CRLF
Strings:'"'
DecPoint:.
CollectBoards:Position
Optional:STIBelag1
Optional:STIBelag2
Optional:STILaminate1
Optional:STILaminate2
Optional:STILaminate3
Optional:STIKante1
Optional:STIKante2
Optional:STIKante3
Optional:STIKante4

Connect:STIBelag1 STIBelag2 STILaminate1 STILaminate2 STILaminate3
Connect:STIKante1 STIKante2 STIKante3 STIKante4
DefaultPath:"C:\\interiorcad-Stückliste.c2h"

CODESTART
JobStart
JobEnd
PositionStart
PositionPrefix:"\"P\", "
PositionField:STIPositionNummer			"s"
PositionFieldPostfix:STIPositionNummer:"\"1\", \"\", "
PositionFieldPrefix:STIPositionName:"\"\", \"1\", "
PositionField:STIPositionName			"s"
PositionField:STIPositionName		"s"
PositionPostfix:"\r\n"
BoardStart
BoardPrefix:"\"T\", "
BoardFieldPrefix:STITeileNummer:"\""
BoardField:STITeileNummer				"d\""
BoardFieldPrefix:STIAnzahl:"\""
BoardField:STIAnzahl					"d\""
BoardField:STIName						"s"
BoardField:STIBestellOderArtikelNr					"s"

BoardFieldPrefix:STILaenge:"\""
BoardField:STILaenge					".1f\""
BoardFieldPrefix:STIBreite:"\""
BoardField:STIBreite					".1f\""
BoardFieldPrefix:STIHoehe:"\""
BoardField:STIHoehe						".1f\""
BoardField:STIBemerkung					"s"

BoardFieldINPrefix:STIBelag1:"v"
BoardField:STIBelag1					"s"
BoardFieldINPrefix:STIBelag2:"h"
BoardField:STIBelag2					"s"
BoardFieldINPrefix:STILaminate1:"b"
BoardField:STILaminate1					"s"
BoardFieldINPrefix:STILaminate2:"b"
BoardField:STILaminate2					"s"
BoardFieldINPrefix:STILaminate3:"b"
BoardField:STILaminate3					"s"
BoardFieldINPrefix:STIKante1:"l"
BoardField:STIKante1					"s"
BoardFieldINPrefix:STIKante2:"r"
BoardField:STIKante2					"s"
BoardFieldINPrefix:STIKante3:"o"
BoardField:STIKante3					"s"
BoardFieldINPrefix:STIKante4:"u"
BoardField:STIKante4					"s"
BoardPostfix:				",\"\", \"\""
BoardEnd
PositionEnd
CODEEND
