MoveRename
This commit is contained in:
@@ -535,45 +535,48 @@ Public Class ClassNIWindream
|
||||
ReDim Preserve VektorArray(0)
|
||||
VektorArray(0) = myArray(0)
|
||||
Case 2 'Anfügen
|
||||
_Logger.Debug("vektInsState = '2'")
|
||||
_Logger.Debug("vektInsState = '2'-538")
|
||||
VektorArray = Return_VektorArray(oDocument, aName, myArray, False, vType)
|
||||
Case 3 'Anfügen mit DuplikatCheck
|
||||
_Logger.Debug("vektInsState = '3'")
|
||||
VektorArray = Return_VektorArray(oDocument, aName, myArray, True, vType)
|
||||
End Select
|
||||
_Logger.Debug($"Vektortype is {vType} ...")
|
||||
If VektorArray Is Nothing = False Then
|
||||
ReDim myArray(VektorArray.Length - 1)
|
||||
Array.Copy(VektorArray, myArray, VektorArray.Length)
|
||||
|
||||
'Jetzt die Nachindexierung für Vektor-Felder
|
||||
If BS.Count = 1 Then
|
||||
If vType = 4097 Then
|
||||
Dim strArray()
|
||||
ReDim Preserve strArray(0)
|
||||
strArray(0) = myArray(0)
|
||||
temp_arr.Add(CStr(myArray(0)))
|
||||
'If BS.Count = 1 Then
|
||||
' If vType = 4097 Then
|
||||
' Dim strArray()
|
||||
' ReDim Preserve strArray(0)
|
||||
' strArray(0) = myArray(0)
|
||||
' temp_arr.Add(CStr(myArray(0)))
|
||||
|
||||
oDocument.SetVariableValue(aName, strArray)
|
||||
ElseIf vType = 4098 Then
|
||||
temp_arr.Add(CInt(myArray(0)))
|
||||
If temp_arr.Count > 0 Then
|
||||
If My.Settings.vLogErrorsonly = False Then ClassLoggerDI.Add("- Einträge in temp_arr also Speichern des Arrays in convertValue")
|
||||
convertValue = Nothing
|
||||
convertValue = temp_arr.ToArray
|
||||
Else
|
||||
convertValue = vbEmpty
|
||||
End If
|
||||
' den konvertierten Indexwert dem entsprechenden Index zuweisen
|
||||
oDocument.SetVariableValue(aName, convertValue)
|
||||
Else
|
||||
oDocument.SetVariableValue(aName, myArray(0))
|
||||
End If
|
||||
' oDocument.SetVariableValue(aName, strArray)
|
||||
' ElseIf vType = 4098 Then
|
||||
' temp_arr.Add(CInt(myArray(0)))
|
||||
' If temp_arr.Count > 0 Then
|
||||
' _Logger.Debug("'Einträge in temp_arr also Speichern des Arrays in convertValue")
|
||||
' convertValue = Nothing
|
||||
' convertValue = temp_arr.ToArray
|
||||
' Else
|
||||
' convertValue = vbEmpty
|
||||
' End If
|
||||
' ' den konvertierten Indexwert dem entsprechenden Index zuweisen
|
||||
' oDocument.SetVariableValue(aName, convertValue)
|
||||
' Else
|
||||
' _Logger.Debug($"Vektortype is {vType} therefore only storing first value [{myArray(0)}]!")
|
||||
' oDocument.SetVariableValue(aName, myArray(0))
|
||||
' End If
|
||||
|
||||
Else
|
||||
'Else
|
||||
_Logger.Debug($"Vektortype is {vType}: Indexing with [{VektorArray.Length} values]!")
|
||||
oDocument.SetVariableValue(aName, myArray)
|
||||
End If
|
||||
'End If
|
||||
|
||||
_Logger.Debug("'SetVariableValue' für VEKTOR mit einem Wert erfolgreich")
|
||||
_Logger.Debug("'SetVariableValue' für VEKTOR erfolgreich")
|
||||
|
||||
'Die Änderungen festsschreiben/speichern
|
||||
oDocument.Save()
|
||||
@@ -633,7 +636,7 @@ Public Class ClassNIWindream
|
||||
End If
|
||||
Next
|
||||
Case 2 'Anfügen
|
||||
_Logger.Debug("vektInsState = '2'")
|
||||
_Logger.Debug("vektInsState = '2'-638")
|
||||
VektorArray = Return_VektorArray(oDocument, aName, myArray, False, vType)
|
||||
Case 3 'Anfügen mit DuplikatCheck
|
||||
_Logger.Debug("vektInsState = '3'")
|
||||
@@ -997,14 +1000,17 @@ Public Class ClassNIWindream
|
||||
_Logger.Info($"targetpath ({targetpath})")
|
||||
_Logger.Info($"sourcepath ({sourcepath})")
|
||||
End If
|
||||
|
||||
|
||||
Dim sw As New ClassStopwatch("NEW_MOVE_FILE")
|
||||
targetpath = targetpath.Replace("\\windream\objects", "")
|
||||
targetpath = targetpath.Replace("W:\", "\")
|
||||
Dim oTargetpath = System.IO.Path.GetDirectoryName(targetpath)
|
||||
|
||||
|
||||
oTargetpath = oTargetpath.Replace("\\windream\objects", "")
|
||||
oTargetpath = oTargetpath.Replace("W:\", "\")
|
||||
|
||||
|
||||
targetpath = targetpath.Replace("\\windream\objects", "")
|
||||
targetpath = targetpath.Replace("W:\", "\")
|
||||
|
||||
sourcepath = sourcepath.Replace("\\windream\objects", "")
|
||||
sourcepath = sourcepath.Replace("W:\", "\")
|
||||
Const WMEntityDocument = 1
|
||||
|
||||
Reference in New Issue
Block a user