VERSION 5.00 Begin VB.Form FormConductor AutoRedraw = -1 'True BorderStyle = 1 'Fixed Single Caption = "Nuevo conductor" ClientHeight = 3810 ClientLeft = 45 ClientTop = 435 ClientWidth = 5745 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3810 ScaleWidth = 5745 StartUpPosition = 1 'CenterOwner Begin VB.Frame Frame4 Caption = "Fase Simple" Height = 3615 Left = 120 TabIndex = 0 Top = 120 Width = 5535 Begin VB.CommandButton Command1 Caption = "Aceptar" Height = 375 Left = 1200 TabIndex = 19 Top = 3120 Width = 1215 End Begin VB.CommandButton Command2 Caption = "Cancelar" Height = 375 Left = 2760 TabIndex = 18 Top = 3120 Width = 1215 End Begin VB.Frame Frame1 Caption = "Datos Geométricos" Height = 1575 Left = 2280 TabIndex = 8 Top = 240 Width = 3135 Begin VB.TextBox Text1 Height = 285 Left = 960 TabIndex = 13 Top = 300 Width = 495 End Begin VB.TextBox Text2 Height = 285 Left = 960 TabIndex = 12 Top = 720 Width = 495 End Begin VB.TextBox Text3 Height = 285 Left = 2400 TabIndex = 11 Top = 1140 Width = 375 End Begin VB.OptionButton Option1 Caption = "1" Height = 255 Left = 2400 TabIndex = 10 Top = 360 Value = -1 'True Width = 495 End Begin VB.OptionButton Option2 Caption = "2" Height = 255 Left = 2400 TabIndex = 9 Top = 660 Width = 495 End Begin VB.Label Label1 Caption = "X (m) :" Height = 195 Left = 240 TabIndex = 17 Top = 360 Width = 690 End Begin VB.Label Label2 Caption = "Y (m) :" Height = 195 Left = 240 TabIndex = 16 Top = 780 Width = 690 End Begin VB.Label Label3 Caption = "Diámetro prohibido (m.):" Height = 195 Left = 120 TabIndex = 15 Top = 1200 Width = 2265 End Begin VB.Label Label4 AutoSize = -1 'True Caption = "Línea :" Height = 195 Left = 1680 TabIndex = 14 Top = 360 Width = 510 End End Begin VB.Frame Frame2 Caption = "Ejemplo" Height = 2775 Left = 120 TabIndex = 6 Top = 240 Width = 2055 Begin VB.PictureBox Picture1 Height = 2390 Left = 120 Picture = "nuevoConductor.frx":0000 ScaleHeight = 2325 ScaleWidth = 1755 TabIndex = 7 Top = 240 Width = 1815 End End Begin VB.Frame Frame3 Caption = "Datos Eléctricos" Height = 1095 Left = 2280 TabIndex = 1 Top = 1920 Width = 3135 Begin VB.TextBox Text4 Height = 285 Left = 2040 TabIndex = 3 Top = 300 Width = 495 End Begin VB.TextBox Text5 Height = 285 Left = 2040 TabIndex = 2 Top = 660 Width = 495 End Begin VB.Label Label6 Caption = "I fase (A, rms) :" Height = 195 Left = 240 TabIndex = 5 Top = 360 Width = 1575 End Begin VB.Label Label7 Caption = "Fase (°) :" Height = 195 Left = 240 TabIndex = 4 Top = 720 Width = 1095 End End Begin VB.Label Editando AutoSize = -1 'True Caption = "NO" Height = 195 Left = 840 TabIndex = 21 Top = 3120 Visible = 0 'False Width = 240 End Begin VB.Label Label5 AutoSize = -1 'True Caption = "Editando:" Height = 195 Left = 120 TabIndex = 20 Top = 3120 Visible = 0 'False Width = 675 End End End Attribute VB_Name = "FormConductor" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Sub Command1_Click() If (Len(Text1.Text) = 0 Or Len(Text2.Text) = 0 Or Len(Text3.Text) = 0 Or _ Len(Text4.Text) = 0 Or Len(Text5.Text) = 0) Then If Principal.idioma = "Español" Then MsgBox "No puede haber casillas en blanco.", vbExclamation, "MitLoop" Else MsgBox "Please fill in all required fields", vbExclamation, "MitLoop" End If ElseIf (InStr(1, Text1.Text, ".") <> 0 Or InStr(1, Text2.Text, ".") <> 0 Or _ InStr(1, Text3.Text, ".") <> 0 Or InStr(1, Text4.Text, ".") <> 0 Or _ InStr(1, Text5.Text, ".") <> 0) Then If Principal.idioma = "Español" Then MsgBox "Utilize ',' como separador decimal", vbInformation, "MitLoop" Else MsgBox "Please use ',' as decimal separator", vbInformation, "MitLoop" End If ElseIf Not (IsNumeric(Text1.Text) And IsNumeric(Text2.Text) And IsNumeric(Text3.Text) And _ IsNumeric(Text4.Text) And IsNumeric(Text5.Text)) Then If Principal.idioma = "Español" Then MsgBox "Ha introducido cantidades no válidas", vbExclamation, "MitLoop" Else MsgBox "There are invalid numbers.", vbExclamation, "MitLoop" End If ElseIf (CSng(Text3.Text) < 0) Then If Principal.idioma = "Español" Then MsgBox "El diámetro debe ser mayor que 0.", vbExclamation, "MitLoop" Else MsgBox "Diameter must be positive.", vbExclamation, "MitLoop" End If ElseIf (CSng(Text2.Text) < 0) Then If Principal.idioma = "Español" Then MsgBox "La fase no puede estar bajo tierra.", vbExclamation, "MitLoop" Else MsgBox "Phase cannot be underground.", vbExclamation, "MitLoop" End If ElseIf (CSng(Text2.Text) < 7) Then If Principal.idioma = "Español" Then MsgBox "La fase no cumple la restricción de distancia mínima al terreno", vbInformation, "MitLoop" Else MsgBox "Phase height is below minimum height to ground.", vbExclamation, "MitLoop" End If Else ' Si estamos editando no hay que cerrar el formulario If (Editando = "NO") Then Module1.añadeConductor Else Me.Hide End If End If ' NOTA: El formulario se cierra desde Module1 End Sub Private Sub Command2_Click() Unload Me Module1.HaCancelado = True End Sub Private Sub Form_Load() Text1.Text = 10 Text2.Text = 15 Text3.Text = 8 Text4.Text = 500 Text5.Text = 0 Option1.Value = True If (Principal.idioma = "Español") Then Me.Caption = "Nueva Fase Símplex" Frame1.Caption = "Parámetros Geométricos" Frame2.Caption = "Ejemplo" Frame3.Caption = "Parámetros Eléctricos" Frame4.Caption = "Fase Símplex" Label3.Caption = "Diámetro Prohibido (m.) :" Label4.Caption = "Línea: " Label6.Caption = "I fase (A, rms) :" Label7.Caption = "Fase (º) :" Command1.Caption = "Aceptar" Command2.Caption = "Cancelar" Else Me.Caption = "New Simplex Phase" Frame1.Caption = "Geometric Parameters" Frame2.Caption = "Example" Frame3.Caption = "Electric Parameters" Frame4.Caption = "Simplex Phase" Label3.Caption = "Forbidden Diameter (m.) :" Label4.Caption = "Line: " Label6.Caption = "Phase I (A, rms) :" Label7.Caption = "Phase (º) :" Command1.Caption = "OK" Command2.Caption = "Cancel" End If End Sub e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


PROGRAMA DE DISEÑO DE LAZOS ACTIVOS/PASIVOS PARA AMORTIGUAMIENTO DEL CAMPO MAGNÉTICO EN LÃNEAS ELÉCTRICAS AÉREAS DE ALTA TENSIÓN

: Casas Pérez, José Eduardo De Las
: Ingeniería Industrial
Contenido del proyecto: