#
# This is used with fabmaster out command to generate Allegro to fabmaster file
#
#A!REFDES!COMP_CLASS!COMP_PART_NUMBER!COMP_HEIGHT!COMP_DEVICE_LABEL!COMP_INSERTION_CODE!SYM_TYPE
#!SYM_NAME!SYM_MIRROR!SYM_ROTATE!SYM_X!SYM_Y!COMP_VALUE!COMP_TOL!COMP_VOLTAGE!
COMPONENT

REFDES
COMP_CLASS
COMP_PART_NUMBER
COMP_HEIGHT
COMP_DEVICE_LABEL
COMP_INSERTION_CODE
SYM_TYPE
SYM_NAME
SYM_MIRROR
SYM_ROTATE
SYM_X
SYM_Y
COMP_VALUE
COMP_TOL
COMP_VOLTAGE
END

#A!NET_NAME!REFDES!PIN_NUMBER!PIN_NAME!PIN_GROUND!PIN_POWER!
COMPONENT_PIN

NET_NAME
REFDES
PIN_NUMBER
PIN_NAME
PIN_GROUND
PIN_POWER
END

#A!CLASS!SUBCLASS!
GEOMETRY

CLASS!="VIA CLASS"
CLASS!="PIN"
CLASS!="PACKAGE GEOMETRY"
CLASS!="ETCH"
OR
CLASS="ETCH"
CLASS
SUBCLASS
END

#A!PAD_NAME!REC_NUMBER!LAYER!FIXFLAG!VIAFLAG!PADSHAPE1!PADWIDTH!PADHGHT!PADXOFF!PADYOFF!
#PADFLASH!PADSHAPENAME!TRELSHAPE1!TRELWIDTH!TRELHGHT!TRELXOFF!TRELYOFF!TRELFLASH!TRELSHAPENAME!
#APADSHAPE1!APADWIDTH!APADHGHT!APADXOFF!APADYOFF!APADFLASH!APADSHAPENAME!
PAD_DEF
END

#A!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!GRAPHIC_DATA_2!GRAPHIC_DATA_3!GRAPHIC_DATA_4
#!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7!GRAPHIC_DATA_8!GRAPHIC_DATA_9!SUBCLASS!SYM_NAME!REFDES!
GEOMETRY
CLASS="PACKAGE GEOMETRY"

GRAPHIC_DATA_NAME
GRAPHIC_DATA_NUMBER
RECORD_TAG
GRAPHIC_DATA_1
GRAPHIC_DATA_2
GRAPHIC_DATA_3
GRAPHIC_DATA_4
GRAPHIC_DATA_5
GRAPHIC_DATA_6
GRAPHIC_DATA_7
GRAPHIC_DATA_8
GRAPHIC_DATA_9
SUBCLASS
SYM_NAME
REFDES
END

#A!SYM_NAME!SYM_MIRROR!PIN_NAME!PIN_NUMBER!PIN_X!PIN_Y!PAD_STACK_NAME!REFDES!PIN_ROTATION!TEST_POINT!
COMPOSITE_PAD
CLASS!="VIA CLASS"

SYM_NAME
SYM_MIRROR
PIN_NAME
PIN_NUMBER
PIN_X
PIN_Y
PAD_STACK_NAME
REFDES
PIN_ROTATION
TEST_POINT
END

#A!VIA_X!VIA_Y!PAD_STACK_NAME!NET_NAME!TEST_POINT!VIA_MIRROR!

COMPOSITE_PAD
CLASS="VIA CLASS"

VIA_X
VIA_Y
PAD_STACK_NAME
NET_NAME
TEST_POINT
VIA_MIRROR
END

#A!CLASS!SUBCLASS!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!
#GRAPHIC_DATA_2!GRAPHIC_DATA_3!GRAPHIC_DATA_4!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7!
#GRAPHIC_DATA_8!GRAPHIC_DATA_9!NET_NAME!
GEOMETRY
CLASS!="VIA CLASS"
CLASS!="PIN"
CLASS!="PACKAGE GEOMETRY"
CLASS!="ETCH"
OR
CLASS="ETCH"

CLASS
SUBCLASS
GRAPHIC_DATA_NAME
GRAPHIC_DATA_NUMBER
RECORD_TAG
GRAPHIC_DATA_1
GRAPHIC_DATA_2
GRAPHIC_DATA_3
GRAPHIC_DATA_4
GRAPHIC_DATA_5
GRAPHIC_DATA_6
GRAPHIC_DATA_7
GRAPHIC_DATA_8
GRAPHIC_DATA_9
NET_NAME
END

#A!SUBCLASS!PAD_SHAPE_NAME!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!
#GRAPHIC_DATA_2!GRAPHIC_DATA_3!GRAPHIC_DATA_4!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7!GRAPHIC_DATA_8!
#GRAPHIC_DATA_9!PAD_STACK_NAME!REFDES!PIN_NUMBER!
FULL_GEOMETRY
REFDES!=""
PAD_STACK_NAME!=""
GRAPHIC_DATA_NAME="LINE"  
OR 
REFDES!=""
PAD_STACK_NAME!=""
GRAPHIC_DATA_NAME="ARC"  

SUBCLASS
PAD_SHAPE_NAME
GRAPHIC_DATA_NAME
GRAPHIC_DATA_NUMBER
RECORD_TAG
GRAPHIC_DATA_1
GRAPHIC_DATA_2
GRAPHIC_DATA_3
GRAPHIC_DATA_4
GRAPHIC_DATA_5
GRAPHIC_DATA_6
GRAPHIC_DATA_7
GRAPHIC_DATA_8
GRAPHIC_DATA_9
PAD_STACK_NAME
REFDES
PIN_NUMBER
