Académique Documents
Professionnel Documents
Culture Documents
End If
'Si mi nudo final de la linea que estoy revisando no esta definido
(PosStart=0) entonces lo asigno a un nuevo nudo
If PosEnd = 0 Then
'Aunmento el numero de nudos
nNodos = nNodos + 1
'Asigno coordenadas al nudo nuevo
CoorPoint(nNodos, 1) = Format(CoorEnd(0), "0.0000")
CoorPoint(nNodos, 2) = Format(CoorEnd(1), "0.0000")
CoorPoint(nNodos, 3) = Format(CoorEnd(2), "0.0000")
'Asigno el nuevo nudo, para definir la geometria del elemento "Ni"
NodesElements(nElements, 2) = nNodos
Else
'Asigno el nudo ya definido, correspondiente a la linea que estoy revisando
"Nj"
NodesElements(nElements, 2) = PosEnd
End If
End If
End If
Next Frame
'CAMBIO ORDEN DE COORDENADAS SEGUN CRITERIOS DE MANUAL DE
USUARIO
For j4 = 1 To nElements
n1Temp = NodesElements(j4, 1)
n2Temp = NodesElements(j4, 2)
x1 = CoorPoint(n1Temp, 1)
y1 = CoorPoint(n1Temp, 2)
z1 = CoorPoint(n1Temp, 3)
x2 = CoorPoint(n2Temp, 1)
y2 = CoorPoint(n2Temp, 2)
z2 = CoorPoint(n2Temp, 3)
If x1 <> x2 Then
If x1 > x2 Then
NodesElements(j4, 1) = n2Temp
NodesElements(j4, 2) = n1Temp
End If
Else
If y1 <> y2 Then
If y1 > y2 Then
NodesElements(j4, 1) = n2Temp
NodesElements(j4, 2) = n1Temp
End If
Else
If z1 > z2 Then
NodesElements(j4, 1) = n2Temp
NodesElements(j4, 2) = n1Temp
End If
End If
End If
Next j4
'GUARDO LAS COORDENADAS Y LOS ELEMENTOS EN UN ARCHIVO LLAMADO
COORDINATES.TXT
'SE PUEDE CAMBIAR LA UBICACION Y EL NOMBRE DEL ARCHIVO
Open "C:\COORDINATES.txt" For Output As #1