Integration 2.4g1 :
- aggiunta gestione esportazione FreeContour di tipo Nail con solo Start.
This commit is contained in:
@@ -309,8 +309,12 @@ namespace ib.essetre.integration.egaltech
|
||||
public void WriteFreeContour( Feature singleFeature, String TaskId, StreamWriter tw)
|
||||
{
|
||||
// Se non ci sono dati, esco
|
||||
if ( singleFeature.sag1 == "")
|
||||
if ( singleFeature.sag1 == "") {
|
||||
if ( singleFeature.processParameters[12] == "20" && VerifyReference( singleFeature)) {
|
||||
WriteOnePoint( singleFeature, TaskId, tw) ;
|
||||
}
|
||||
return ;
|
||||
}
|
||||
// Verifico se c'è un secondo percorso
|
||||
bool bTwo = ( singleFeature.sag2 != "") ;
|
||||
// Se singolo contorno
|
||||
@@ -370,7 +374,40 @@ namespace ib.essetre.integration.egaltech
|
||||
}
|
||||
return nCount ;
|
||||
}
|
||||
|
||||
|
||||
private void WriteOnePoint( Feature singleFeature, String TaskId, StreamWriter tw)
|
||||
{
|
||||
++ _FcEnt ;
|
||||
tw.WriteLine(Constants.PROCESS_KEY + singleFeature.processKey + " " + singleFeature.designation);
|
||||
// Eventuale sistema di riferimto
|
||||
WriteReference( singleFeature, tw) ;
|
||||
tw.Write(Constants.PROCESS_PARAMETERS);
|
||||
tw.Write("P01:" + Constants.EIGHT_ZEROS + " ") ; // x
|
||||
tw.Write("P02:" + Constants.EIGHT_ZEROS + " ") ; // y
|
||||
tw.Write("P03:" + Constants.EIGHT_ZEROS + " ") ; // z
|
||||
tw.Write("P05:" + Constants.EIGHT_ZEROS + " ") ;
|
||||
tw.Write("P06:" + Constants.EIGHT_ZEROS + " ") ;
|
||||
tw.Write("P07:" + Constants.EIGHT_ZEROS + " ") ;
|
||||
tw.Write("P08:" + Constants.EIGHT_ZEROS + " ") ;
|
||||
tw.Write("P09:" + Constants.EIGHT_ZEROS + " ") ;
|
||||
tw.Write("P13:" + MultAndConvertTo8(singleFeature.processParameters[12]) + " ");
|
||||
tw.Write("P14:" + MultAndConvertTo8(singleFeature.processParameters[13]) + " ");
|
||||
tw.Write("P15:" + MultAndConvertTo8(singleFeature.processParameters[14]) + " ");
|
||||
tw.WriteLine(" ");
|
||||
tw.WriteLine(Constants.PROCESS_IDENT + _FcEnt.ToString());
|
||||
tw.WriteLine(Constants.PROCESS + singleFeature.process);
|
||||
// Parametri speciali Q diversi da 0, preceduti da "USERATTRIBUTE:"
|
||||
for ( int j = 1 ; j <= 20 ; ++ j) {
|
||||
string singleParameter = singleFeature.processParameters[j+25] ;
|
||||
if ( ! singleParameter.Equals( "0")) {
|
||||
singleParameter = singleParameter.Replace( ",", ".") ;
|
||||
tw.WriteLine( Constants.USERATTRIBUTE + "\"Q" + j.ToString( "D2") + "\":\"" + singleParameter + "\" ") ;
|
||||
}
|
||||
}
|
||||
// TaskId
|
||||
tw.WriteLine( Constants.USERATTRIBUTE + "\"TASKID\":" + "\"" + TaskId + "\"") ;
|
||||
}
|
||||
|
||||
private void WriteOneContour( Feature singleFeature, ref string[] arrParam, String TaskId, int nInd, StreamWriter tw)
|
||||
{
|
||||
// Ciclo sugli elementi
|
||||
@@ -494,10 +531,9 @@ namespace ib.essetre.integration.egaltech
|
||||
}
|
||||
}
|
||||
|
||||
// Se definito, scrittura del riferimento
|
||||
public void WriteReference( Feature singleFeature, StreamWriter tw)
|
||||
// Verifico se riferimento definito
|
||||
public bool VerifyReference( Feature singleFeature)
|
||||
{
|
||||
// Verifico se definito e quindi da emettere
|
||||
bool bToEmit = false ;
|
||||
for ( int i = 1 ; i <= 9 ; ++ i) {
|
||||
string singleParameter = singleFeature.processReference[i-1].Trim() ;
|
||||
@@ -506,8 +542,14 @@ namespace ib.essetre.integration.egaltech
|
||||
break ;
|
||||
}
|
||||
}
|
||||
return bToEmit ;
|
||||
}
|
||||
|
||||
// Se definito, scrittura del riferimento
|
||||
public void WriteReference( Feature singleFeature, StreamWriter tw)
|
||||
{
|
||||
// Se non definito esco
|
||||
if ( ! bToEmit)
|
||||
if ( ! VerifyReference( singleFeature))
|
||||
return ;
|
||||
// Eseguo emissione
|
||||
tw.Write( Constants.REFERENCE_PLANE) ;
|
||||
|
||||
@@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
||||
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
|
||||
// usando l'asterisco '*' come illustrato di seguito:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.4.4.5")]
|
||||
[assembly: AssemblyFileVersion("2.4.4.5")]
|
||||
[assembly: AssemblyVersion("2.4.7.1")]
|
||||
[assembly: AssemblyFileVersion("2.4.7.1")]
|
||||
|
||||
Reference in New Issue
Block a user