Integration 2.1g3 :

- corretta esportazione contorno libero chiuso
- corretta esportazione contorno libero con ultima entità un arco.
This commit is contained in:
Dario Sassi
2019-07-03 17:57:26 +00:00
parent 3855fedbfa
commit c7ac8bacf9
2 changed files with 12 additions and 6 deletions
+10 -4
View File
@@ -119,7 +119,13 @@ namespace ib.essetre.integration.egaltech
if ( singleFeature.sag1 == "")
return ;
string[] arrParam = singleFeature.sag1.Split( new string[] { "POLY([", "),", ")],'P','O')" }, StringSplitOptions.RemoveEmptyEntries) ;
string[] arrParam = singleFeature.sag1.Split( new string[] { "POLY([", "),", ")]" }, StringSplitOptions.RemoveEmptyEntries) ;
// Se chiusa, copio il primo punto nell'ultimo elemento
if ( arrParam[arrParam.Length-1] == ",'P','C')")
arrParam[arrParam.Length-1] = arrParam[0] ;
// altrimenti aperta, quindi elimino l'ultimo elemento
else
Array.Resize( ref arrParam, arrParam.Length-1) ;
// Se il parametro Q10 è 1, l'ordine dell'array viene invertito
if ( singleFeature.processParameters[35] == "1")
@@ -140,9 +146,9 @@ namespace ib.essetre.integration.egaltech
tw.Write("P01:" + MultAndConvertTo8(parts[1]) + " "); // x
tw.Write("P02:" + MultAndConvertTo8(parts[2]) + " "); // y
tw.Write("P03:" + MultAndConvertTo8(parts[3]) + " "); // z
tw.Write("P05:" + Constants.EIGHT_ZEROS + " ");
tw.Write("P05:" + MultAndConvertTo8(singleFeature.processParameters[4]) + " ");
tw.Write("P06:" + Constants.EIGHT_ZEROS + " ");
tw.Write("P07:" + Constants.EIGHT_ZEROS + " ");
tw.Write("P07:" + MultAndConvertTo8(singleFeature.processParameters[6]) + " ");
tw.Write("P08:" + Constants.EIGHT_ZEROS + " ");
if ( i == arrParam.Length - 1) // Verifica se ci troviamo all'ultimo parametro di POLY
tw.Write("P09:" + Constants.EIGHT_ZEROS + " "); // L'ultimo elemento di POLY deve avere "P09: 00000000"
@@ -200,7 +206,7 @@ namespace ib.essetre.integration.egaltech
tw.Write("P06:" + Constants.EIGHT_ZEROS + " ");
tw.Write("P07:" + Constants.EIGHT_ZEROS + " ");
tw.Write("P08:" + "00000200" + " ");
if ( i == arrParam.Length - 1)
if ( i == arrParam.Length - 2)
tw.Write("P09:" + Constants.EIGHT_ZEROS + " ");
else
tw.Write("P09:" + MultAndConvertTo8((Convert.ToDouble(singleFeature.processParameters[8]) + i - count).ToString()) + " ");
@@ -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.1.7.2")]
[assembly: AssemblyFileVersion("2.1.7.2")]
[assembly: AssemblyVersion("2.1.7.3")]
[assembly: AssemblyFileVersion("2.1.7.3")]