Dim oHfssApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
Set oHfssApp = CreateObject("AnsoftHfss.HfssScriptInterface")
Set oDesktop = oHfssApp.GetAppDesktop()
oDesktop.NewProject
Set oProject = oDesktop.GetActiveProject()
oProject.InsertDesign "HFSS", "simple_dipole", "DrivenModal", ""
Set oDesign = oProject.SetActiveDesign("simple_dipole")
Set oEditor = oDesign.SetActiveEditor("3D Modeler")


oEditor.SetModelUnits Array("NAME:Units Parameter", "Units:=", "cm", "Rescale:=",false)
oProject.AddMaterial Array("NAME: plastic", _ 
"permittivity:=", "2.5") 
oEditor.CreateCylinder _
Array("NAME:CylinderParameters", _
"XCenter:=", "0.000000cm", "YCenter:=", "0.000000cm", "ZCenter:=", "0.000000cm", _
"Radius:=", "29.400000cm", _
"Height:=", "47.500000cm", "WhichAxis:=", "Z"), _
Array("NAME:Attributes", _
"Name:=", "cylinder1", "Flags:=", "", _
"Color:=", "(132 132 193)", "Transparency:=", 0.7, _
"PartCoordinateSystem:=", "Global", "MaterialName:=", "plastic", "SolveInside:=", true)
oEditor.CreateCylinder _
Array("NAME:CylinderParameters", _
"XCenter:=", "0.000000cm", "YCenter:=", "0.000000cm", "ZCenter:=", "0.000000cm", _
"Radius:=", "29.250000cm", _
"Height:=", "47.500000cm", "WhichAxis:=", "Z"), _
Array("NAME:Attributes", _
"Name:=", "cylinder2", "Flags:=", "", _
"Color:=", "(132 132 193)", "Transparency:=", 0.7, _
"PartCoordinateSystem:=", "Global", "MaterialName:=", "plastic", "SolveInside:=", true)
oEditor.Subtract _
Array("NAME:Selections", "Blank Parts:=", "cylinder1", _
"Tool Parts:=", "cylinder2"), _
Array("NAME:SubtractParameters", "KeepOriginals:=", false)


oEditor.CreateRelativeCS _
Array("NAME:RelativeCSParameters", _
"OriginX:=", "0.000000cm", "OriginY:=", "11.250000cm", "OriginZ:=", "0.000000cm", _
"XAxisXvec:=", "1.000000cm", "XAxisYvec:=", "0.000000cm", "XAxisZvec:=", "0.000000cm", _
"YAxisXvec:=", "0.000000cm", "YAxisYvec:=", "1.000000cm", "YAxisZvec:=", "0.000000cm"), _
Array("NAME:Attributes", _
"Name:=", "RelativeCS1")
oEditor.SetWCS Array("NAME:SetWCS Parameter", "Working Coordinate System:=","RelativeCS1")
oEditor.Split Array("NAME:Selections", "Selections:=","cylinder1"), _
Array("NAME:SplitToParameters", "SplitPlane:=","ZX", "WhichSide:=","PositiveOnly")


oEditor.DuplicateMirror Array("NAME:Selections", "Selections:=","cylinder1"), _
Array("NAME:DuplicateToMirrorParameters", _
"DuplicateMirrorBaseX:=","0.000000cm","DuplicateMirrorBaseY:=","0.000000cm","DuplicateMirrorBaseZ:=","0.000000cm", _
"DuplicateMirrorNormalX:=","0.000000cm","DuplicateMirrorNormalY:=","-5.000000cm","DuplicateMirrorNormalZ:=","0.000000cm"), _
Array("NAME:Options", "DuplicateBoundaries:=", false)
oEditor.Unite Array("NAME:Selections", "Selections:=","cylinder1,cylinder1_1"),Array("NAME:UniteParameters", "KeepOriginals:=",false)


oEditor.SetWCS Array("NAME:SetWCS Parameter", "Working Coordinate System:=","Global")
oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole11", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole12", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole13", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole14", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole15", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","28.135195cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","27.791930cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","27.963563cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole16", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole21", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole22", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole23", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole24", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole25", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","18.799144cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","17.790731cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","18.294938cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole26", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole81", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole82", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole83", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole84", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole85", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","28.135195cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","27.791930cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","27.963563cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole86", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole71", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole72", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole73", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole74", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole75", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","18.799144cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","17.790731cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","18.294938cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole76", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreateRelativeCS _
Array("NAME:RelativeCSParameters", _
"OriginX:=", "0.000000cm", "OriginY:=", "22.500000cm", "OriginZ:=", "0.000000cm", _
"XAxisXvec:=", "1.000000cm", "XAxisYvec:=", "0.000000cm", "XAxisZvec:=", "0.000000cm", _
"YAxisXvec:=", "0.000000cm", "YAxisYvec:=", "1.000000cm", "YAxisZvec:=", "0.000000cm"), _
Array("NAME:Attributes", _
"Name:=", "RelativeCS2")
oEditor.SetWCS Array("NAME:SetWCS Parameter", "Working Coordinate System:=","RelativeCS2")
oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole41", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole42", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole43", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole44", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole45", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","7.029283cm", "Y:=","-28.135195cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","8.283032cm", "Y:=","-27.791930cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","7.656157cm", "Y:=","-27.963563cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole46", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole31", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole32", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole33", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole34", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole35", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","22.081489cm", "Y:=","-18.799144cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","22.901745cm", "Y:=","-17.790731cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","22.491617cm", "Y:=","-18.294938cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole36", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole51", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole52", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole53", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole54", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole55", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-7.029283cm", "Y:=","-28.135195cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-8.283032cm", "Y:=","-27.791930cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-7.656157cm", "Y:=","-27.963563cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole56", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","2.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","8.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole61", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","15.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","9.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole62", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","17.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","23.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole63", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","30.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","24.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole64", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","32.500000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","38.400000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole65", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.CreatePolyline _
Array("NAME:PolylineParameters", _
"IsPolylineCovered:=", true, _
"IsPolylineClosed:=", true, _
Array("NAME:PolylinePoints", _
Array("NAME:PLPoint", "X:=","-22.081489cm", "Y:=","-18.799144cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.901745cm", "Y:=","-17.790731cm", "Z:=","45.000000cm"), _
Array("NAME:PLPoint", "X:=","-22.491617cm", "Y:=","-18.294938cm", "Z:=","39.100000cm")), _
Array("NAME:PolylineSegments", _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",0,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",1,"NoOfPoints:=",2), _
Array("NAME:PLSegment", "SegmentType:=","Line","StartIndex:=",2,"NoOfPoints:=",2))), _
Array("NAME:Attributes", _
"Name:=","dipole66", _
"Flags:=","", _
"Color:=","(125 125 195)", _
"Transparency:=",0, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=",true)


oEditor.SetWCS Array("NAME:SetWCS Parameter", "Working Coordinate System:=","RelativeCS1")
oEditor.CreateBox _
Array("NAME:BoxParameters", _
"XPosition:=", "0.500000meter", _
"YPosition:=", "0.500000meter", _
"ZPosition:=", "-0.250000meter", _
"XSize:=", "-1.000000meter", _
"YSize:=", "-1.000000meter", _
"ZSize:=", "1.000000meter"), _
Array("NAME:Attributes", _
"Name:=", "RadBox", _
"Flags:=", "", _
"Color:=","(125 125 195)", _
"Transparency:=",8.0e-1, _
"PartCoordinateSystem:=","Global", _
"MaterialName:=","vacuum", _
"SolveInside:=","true")


Set oModule = oDesign.GetModule("BoundarySetup")
oModule.AssignRadiation _
Array("NAME:RadABC", _
"Objects:=", Array("RadBox"))


Set oModule = oDesign.GetModule("AnalysisSetup")
 oModule.InsertSetup "HfssDriven", _
 Array("NAME:setup100", _
 "Frequency:=", "0.1GHz", _
 "PortsOnly:=",false, _
 "MaxDeltaS:=", 0.010000, _
 "UseMatrixConv:=",false,_
 "MaximumPasses:=", 6, _
 "MinimumPasses:=",1, _
 "MinimumConvergedPasses:=", 1, _
 "PercentRefinement:=", 20, _
 "ReducedSolutionBasis:=", false, _
 "DoLambdaRefine:=", true, _
 "DoMaterialLambda:=", true, _
 "Target:=", 0.050000, _
 "PortAccuracy:=", 2, _
 "SetPortMinMaxTri:=", false)


oProject.SaveAs "SigmaEyeFinal.hfss", true 
oProject.Save 
