EgtUILib 2.3a3 :

- aggiunta interfaccia per funzione EgtImport3MF
- aggiunta costante FT._3MF per tipo di file 3MF
- aggiunta gestione importazione file 3MF.
This commit is contained in:
Dario Sassi
2021-01-28 19:35:48 +00:00
parent 3a7644a0dd
commit 2a1673fa1e
3 changed files with 23 additions and 5 deletions
+5 -2
View File
@@ -479,6 +479,7 @@ Public Class Controller
.Title = "Import",
.Filter = "Drawing Exchange Fmt(*.dxf)|*.dxf" &
"|Stereolithography (*.stl)|*.stl" &
"|3D Manufacturing Format (*.3mf)|*.3mf" &
"|Building parts (*.btl)|*.btl" &
"|Part program ISO (*.cnc;*.xpi;*.mpf;*.iso;*.eia)|*.cnc;*.xpi;*.mpf;*.iso;*.eia" &
"|Point files (*.pnt;*.xyz)|*.pnt;*.xyz" &
@@ -486,7 +487,7 @@ Public Class Controller
"|Cms files (*.hed;*.ent;*.ens)|*.hed;*.ent;*.ens" &
sOptionalExts &
"|All Files (*.*)|*.*",
.FilterIndex = 8 + nOptionalExts,
.FilterIndex = 9 + nOptionalExts,
.InitialDirectory = sDir
}
If OpenFileDialog.ShowDialog <> Windows.Forms.DialogResult.OK Then
@@ -498,7 +499,7 @@ Public Class Controller
Dim nFileType As Integer = EgtGetFileType(sFile)
Dim bOkType = (nFileType = FT.BTL Or nFileType = FT.BTLX Or nFileType = FT.CNC Or
nFileType = FT.CSF Or nFileType = FT.DXF Or nFileType = FT.IMG Or
nFileType = FT.PNT Or nFileType = FT.STL Or
nFileType = FT.PNT Or nFileType = FT.STL Or nFileType = FT._3MF Or
nFileType = FT.IGES Or nFileType = FT.STEP_ Or nFileType = FT.ACIS Or
nFileType = FT.PARASOLID Or nFileType =Ft.JT Or nFileType = FT.VRML Or
nFileType = FT.C3D)
@@ -529,6 +530,8 @@ Public Class Controller
bOk = bOk AndAlso EgtImportPnt(sFile, nFlag)
Case FT.STL
bOk = bOk AndAlso EgtImportStl(sFile, m_dStlScale)
Case FT._3MF
bOk = bOk AndAlso EgtImport3MF(sFile)
Case FT.IGES, FT.STEP_, FT.ACIS, FT.PARASOLID, FT.JT, FT.VRML, FT.C3D
bOk = bOk AndAlso EgtAdvancedImport( sFile, m_dEpsStm)
End Select
+15
View File
@@ -1990,6 +1990,20 @@ Public Function EgtImportStl(sFilePath As String, dScaleFactor As Double) As Boo
End If
End Function
<DllImport(EgtIntDll32, CharSet:=CharSet.Unicode, EntryPoint:="EgtImport3MF"), SuppressUnmanagedCodeSecurity()>
Private Function EgtImport3MF_32(sFilePath As String) As Boolean
End Function
<DllImport(EgtIntDll64, CharSet:=CharSet.Unicode, EntryPoint:="EgtImport3MF"), SuppressUnmanagedCodeSecurity()>
Private Function EgtImport3MF_64(sFilePath As String) As Boolean
End Function
Public Function EgtImport3MF(sFilePath As String) As Boolean
If IntPtr.Size = 4 Then
Return EgtImport3MF_32(sFilePath)
Else
Return EgtImport3MF_64(sFilePath)
End If
End Function
<DllImport(EgtIntDll32, CharSet:=CharSet.Unicode, EntryPoint:="EgtAdvancedImportIsEnabled"), SuppressUnmanagedCodeSecurity()>
Private Function EgtAdvancedImportIsEnabled_32() As Boolean
End Function
@@ -13369,6 +13383,7 @@ Public Enum FT As Integer
PNT = 17
SVG = 18
BTLX = 19
_3MF = 20
IGES = 31
STEP_ = 32
ACIS = 33
+3 -3
View File
@@ -17,7 +17,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("EgalTech s.r.l.")>
<Assembly: AssemblyProduct("EgtUILib")>
<Assembly: AssemblyCopyright("Copyright © 2014-2020 by EgalTech s.r.l.")>
<Assembly: AssemblyCopyright("Copyright © 2014-2021 by EgalTech s.r.l.")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
@@ -35,5 +35,5 @@ Imports System.Runtime.InteropServices
' È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
' utilizzando l'asterisco (*) come descritto di seguito:
<Assembly: AssemblyVersion("2.3.1.2")>
<Assembly: AssemblyFileVersion("2.3.1.2")>
<Assembly: AssemblyVersion("2.3.1.3")>
<Assembly: AssemblyFileVersion("2.3.1.3")>