!***********************************************************************
! HowickSetup                                               08/07/2019 *
!***********************************************************************
!
charset= latin1
!
!***********************************************************************
! WRITER VERSION
!     1.0     Truss tool named TRUSSTOOL
!     2.0     Truss tool named END_TRUSS
writer_version= 2.0
!
!***********************************************************************
! FRAMESET DEFINITION
!    PROREG.XXX    Any field from project datacard
!    P~XXX         Any project parameter
! frameset_format= "#PANELID#,#P~BOM_PHASE#,#PROREG.PROJ_ID#"
frameset_format= "#PROREG.PROJ_ID#,#PANELID#"
!
!***********************************************************************
! PIECE ELEVATION COORDINATES OUTPUT
!     Use one option from below
!
!write_coord_file= 1
!write_coord_to_csv= 1

! New howick advanced output format
! howick_coord_to_csv= 1
!
!***********************************************************************
! DIALOG SETTINGS
!
! dlg_fields= 0|1|2    dialog field numbers
! errfile_mode= 1      opens if errors occurs
!
! dialog_fields= 2|4|7|8|11|3|5|14
dialog_fields= 2|3|4|7|8|11|5|14
errfile_mode= 1
!
!***********************************************************************
! FREE ITEM GROUPING
!
! item_group= "1 FLOOR JOIST" 
!
! item_group= FLR-G  "GF_Pieces"   BOM_PHASE = "Ground_Floor" and ITEM_ID <> ""
! item_group= FLR-1  "1F_Pieces"   BOM_PHASE = "1st_Floor" and ITEM_ID <> ""
! item_group= FLR-2  "2F_Pieces"   BOM_PHASE = "2nd_Floor" and ITEM_ID <> ""
! item_group= FLR-3  "3F_Pieces"   BOM_PHASE = "3rd_Floor" and ITEM_ID <> ""
! item_group= FLR-4  "4F_Pieces"   BOM_PHASE = "4th_Floor" and ITEM_ID <> ""
! item_group= FLR-5  "5F_Pieces"   BOM_PHASE = "5th_Floor" and ITEM_ID <> ""
! item_group= FLR-6  "6F_Pieces"   BOM_PHASE = "6th_Floor" and ITEM_ID <> ""
! item_group= FLR-7  "7F_Pieces"   BOM_PHASE = "7th_Floor" and ITEM_ID <> ""
! item_group= FLR-8  "8F_Pieces"   BOM_PHASE = "8th_Floor" and ITEM_ID <> ""
! item_group= FLR-9  "9F_Pieces"   BOM_PHASE = "9th_Floor" and ITEM_ID <> ""
! item_group= FLR-10 "10F_Pieces"  BOM_PHASE = "10th_Floor" and ITEM_ID <> ""
! item_group= ROOF   "Roof Pieces" BOM_PHASE = "Roof" and ITEM_ID <> ""
item_group= LOS    "Profielen"   BOM_PHASE = "*" and ITEM_ID = "*"
!
!***********************************************************************
! WRITE_MODE
!
! write_mode= +1 -> frame members
!             +2 -> nailers
!             +4 -> cladding boards
!
!
write_mode= 1
!
!***********************************************************************
! PANEL TYPES TO WRITE
!
!panel_types= 1|2 .... panel types
! 1= COMMON
! 2= AREA
! 3= TRUSS
! 4= FRMLINE
! 5= WALL
!
panel_types= 2|5
!
!***********************************************************************
! MULTIPLIER MODE
!
!multiplier_mode= +1 ->use multiplier for panel pieces
!                 +2 ->use multiplier for free pieces
!
multiplier_mode= 1+2
!
!***********************************************************************
!
! write_charset=  roman8   
!                 latin1   
!                 latin2   
!                 utf8     
!                 unicode16
!                 cyrillic
!                 big5
!
write_charset= latin1

!*****************************************************************************
! TARGET DIRECTORY
!
output_folder= "#ACTPROJPATH#Howick"
!
!*****************************************************************************
! Valid Piece shapes
!
valid_pce_shape= "SHAPE"
!
!*****************************************************************************
! TARGET FILENAME
!
add_project_to_filename= 0
add_profcode_to_filename= 1
!
!*****************************************************************************
! RFM Converter Setup
!output_type= C150-45-1.6 .rfm
!
!*****************************************************************************
! Output features   1 - yes
!                   0 - no
!
write_features= 1

!*****************************************************************************
! Output swages     1 - yes
!                   0 - no
!
ignore_swage= 0
!
!*****************************************************************************
! Sort output by label     1 - yes
!                          0 - no
!
sort_by_label= 0

!*****************************************************************************
! Sort output optimized for production speed   1 - yes
!                                              0 - no
!
! Trusses: 
! 1) The end pieces (the heel piece, the 'over the wall' piece) 
! 2) The bottom chord 
! 3) The top chord(s) 
! 4) Webs in order from left to right (as per the piece labeling on the drawing). 
! 
! Walls: 
! - From left to right 
! - From bottom to top 
!   
! 1) BOTTOM PLATE 
! 2) All horizontal below the opening excluding SILL 
! 3) STUDS until first horizontal excluding TOP PLATE 
! 4) CRIPPLEs below the opening 
! 5) Horizontals and STUDS in the order they come from left to right 
! 6) TOP PLATE is the last one
!
sort_optimized= 1

!*****************************************************************************
! quantity methods         1 - output each panel to its own file
!                          0 - merge same panels to one file
!
qty_method = 1
!
!*****************************************************************************
! Howick tool sizes 
!
! Default sizes
lip_cut_size= 46
notch_size= 48
swage_size= 55
!        
!                        Lipcut     Notch     Swage   (Old) Truss Notch    (New) LGS Truss Notch  
!tool_size=Code            X          X         X            X                     X
tool_size=C45-65-0.75     66         66        50           80.0                  53.0
tool_size=C45-65-0.95     66         66        50           80.0                  53.0
tool_size=C75-150-1.6    152        152       160           80.0                  53.0
tool_size=C75-150-2.0    152        152       160           80.0                  53.0

merge_dist= 10
!
!*****************************************************************************
! punch overlap factor
!
punch_lap_factor= 0.95
!
!*****************************************************************************
! Minimum Piece Length 
!
pce_minlen= 110
!
!*****************************************************************************
! Length of filler piece used for truss tool and similar 
!
filler_size = 0

!*****************************************************************************
! all panels in one writing session   1 - write all panels in one session
!                                         (NOTE! qty_method must be 1)
!                                     0 - write each panel in its own session
!                                         (or same panels merged to one file
!                                         if used with qty_method 0)
!
all_in_one_session = 0
!
!*****************************************************************************
! write_by_stack                      1 - write panels in order of panel stack
!                                      used with all_in_one_session = 1
write_by_stack = 0
!*****************************************************************************
! XML tracing        1 - generate xml file describing the "all_in_one_session"
!                    0 - do not generate
!
xml_tracing = 0
!
!*****************************************************************************
! Dimple hole protection - turn on dimple protection warning
!                         
dimple_protection = 1
!
!*****************************************************************************
! Dimple End Tolernace - distance in mm to warn if dimple hole near piece end
!                        normally dimple_size divided by 2
!                         
!dimple_end_tolerance = 8
!
!*****************************************************************************
! Feature protection - distance in mm to warn if feature near piece end
!                         
check_feat_to_prof_end_distance= SERVICE_HOLE      0
!
!*****************************************************************************
! Web notch size limit - distance in mm to warn if web notch is too big
!                         
notch_size_limit= 100
!
!*****************************************************************************
! No Notches allowed - warning if any web notch is found in piece by USE field
!       
no_notches_allowed= "TOP CHORD"
!
!*****************************************************************************
! Minium gap between pieces
!                         
stud_mingap= 0
!
!*****************************************************************************
!
skip_connection_check= "COMPOUND STUD"
skip_connection_check= "BOXED PLATE"
skip_connection_check= "WIND BRACE"
skip_overlap_check=    "COMPOUND STUD"
skip_overlap_check=    "BOX STUD"
skip_overlap_check=    "SPLICE JOINER" 
!
!*****************************************************************************
! Ignore pieces with given use values
!
ignore_pieces_with_use= "BOXED REINFORCEMENT"
!*****************************************************************************
! Feature map
!
! Can be used to map features to custom types/NC-names.
! NC-writer needs to support this map for it to work.
!
!                    NC-name Out      Custom Type Out  Object Type In  Custom Type In   Location       Feature Params To Match
custom_feature_map = "BOLT" 	 	       66 		   	   22 		     	 0           BACK  		   	   DIA=17|QTYX=3
!
custom_feature_map = "WEB"                 66              22                0           BACK              TYPE=CGX|QTYX=3
custom_feature_map = "BOLT"            	   42              22              147           BACK              DIA=13.0       
!
custom_feature_map = "FLANGE2"		   	  128 		   	   22		   	   128		 	 FLANGE			   DIA=13
custom_feature_map = "FLANGE2" 	           66		   	   22		     	 0		  	 FLANGE 		   DIA=13
!
custom_feature_map = "FLANGE1"		 	  128 		   	   22		       128		 	 FLANGE			   DIA=9
custom_feature_map = "FLANGE1" 	           66		   	   22		     	 0		  	 FLANGE 		   DIA=9
!
custom_feature_map = "FLANGE1"		  	  128 		 	   22		       128		 	 FLANGE			   DIA=17
custom_feature_map = "FLANGE1" 	           66		   	   22		     	 0		  	 FLANGE 		   DIA=17
!
custom_feature_map = "DIMPLE"		      128 		 	   22		   	   128		 	 FLANGE			   DIA=3.5
custom_feature_map = "DIMPLE" 	           66		 	   22		     	 0		  	 FLANGE 		   DIA=3.5
!
custom_feature_map = "WEB" 		   		   66 		       22 		     	 0 		     BACK 			   DIA=13|QTYX=3
custom_feature_map = "BOLTIN"              42              22                0           BACK              DIA=13.1|TYPE=CGX|QTYX=2|SX=0
custom_feature_map = "BOLTIN"              42              22                0           BACK              DIA=13.1|TYPE=CGX|QTYX=2|SX=50
custom_feature_map = "BOLTOUT"             42              22                0           BACK              DIA=13.1|TYPE=CGX|QTYX=2|SX=176
custom_feature_map = "2BOLT" 		       66 			   22 		     	 0 		     BACK 			   DIA=13|QTYX=2
custom_feature_map = "2BOLT" 		       66 			   22 		     	 0 		     BACK 			   DIA=13|QTYX=2
!
custom_feature_map = "NOTCH"               36              23              120           BACK
custom_feature_map = "NOTCH"               36              46              120           BACK
custom_feature_map = "LIP_CUT"             32              23              121           FRONT
custom_feature_map = "LIP_CUT"             32              46              121           FRONT
custom_feature_map = "NOTCH"               36              23                0           BACK
custom_feature_map = "NOTCH"               36              46                0           BACK
custom_feature_map = "LIP_CUT"             32              23                0           FRONT
custom_feature_map = "LIP_CUT"             32              46                0           FRONT
custom_feature_map = "SIDE_TRUSS_L|SIDE_TRUSS_R"      0             440                0           FLANGE
custom_feature_map = "TAB"                  0             439                0           BACK
custom_feature_map = "IGNORE"               0              22                0           BACK             TYPE=RT|H=16|W=16
custom_feature_map = "END_TRUSS"           67             121                0           UNDEFINED
custom_feature_map = "END_TRUSS"           67              71                0           UNDEFINED
custom_feature_map = "SWAGE"               34             424                0           UNDEFINED
custom_feature_map = "5DIMPLE"             33             115                0           FLANGE           TYPE=1|DIMX=35
custom_feature_map = "5DIMPLE"             33             115                0           FLANGE           TYPE=2|DIMX=35
custom_feature_map = "DIMPLE"              33             115                0           FLANGE           TYPE=1
custom_feature_map = "DIMPLE"              33             115                0           FLANGE           TYPE=2
custom_feature_map = "DIMPLE_SLOT"         63             115                0           FLANGE           TYPE=4
custom_feature_map = "SERVICE_HOLE"        35              22              147           BACK             DIA=34.1
custom_feature_map = "SERVICE_60"          35              22              147           BACK             DIA=60.0
custom_feature_map = "SERVICE_HOLE120"     55              22              147           BACK             DIA=120.0
custom_feature_map = "SERVICE_HOLEA"       55              22              147           BACK             DIA=140.0
custom_feature_map = "TRIPLE WEB HOLE"     66              22              147           BACK             DIA=10.1
custom_feature_map = "WEB"                 42              22                0           BACK             TYPE=CGX|QTYX=1
custom_feature_map = "TRIPLEWEB"           66              22                0           BACK             TYPE=CGX|QTYX=3
!
custom_feature_map = "DIMPLE"               0             115                0           WEB              TYPE=1
!******************************************************************************
custom_feature_map = "BOLT"                 42              22                0           BACK             DIA=10
custom_feature_map = "2BOLT"                42              22                0           BACK             DIA=10.1
custom_feature_map = "BOLT"                 42              22                0           BACK             DIA=14
custom_feature_map = "BOLT"                 42              22                0           BACK             DIA=13
custom_feature_map = "SERVICE_HOLE"         42              22                0           BACK             DIA=34
custom_feature_map = "SERVICE_HOLE"         42              22                0           BACK             DIA=34.1

custom_feature_map = "HEX"                 100              72              100           FLANGE
custom_feature_map = "CLIP"                101              72              101           FLANGE
custom_feature_map = "HEX"                 100              72                0           UNDEFINED        MODEL=HEX_punch.vxm
custom_feature_map = "CLIP"                101              72                0           UNDEFINED        MODEL=Clip_punch.vxm


!combined_tool_map= 2BOLT BOLT|BOLT
combined_tool_map_by_y= BOLTLINE BOLTIN,X=0,Y=0|BOLTOUT,X=0,Y=0
