CreateEllipse

Creates an ellipse.

UI Access Draw > Ellipse.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:EllipseParameters",

"IsCovered:=", <string>,

"XCenter:=", <string>,

"YCenter:=", <string>,

"ZCenter:=", <string>,

"MajRadius:=", <string>,

"Ratio:=", <string>,

"WhichAxis:=", <string>,

"NumSegments:=", <string>)

<AttributesArray> Array Structured array. See: AttributesArray.
Return Value None.

Python Syntax

CreateEllipse(<Parameters>, <Attributes>)

Python Example

oEditor.CreateEllipse(

["NAME:EllipseParameters",

"IsCovered:=" , True,

"XCenter:=" , "0.6mm",

"YCenter:=" , "-0.6mm",

"ZCenter:=" , "0mm",

"MajRadius:=" , "0.2mm",

"Ratio:=" , "7",

"WhichAxis:=" , "Z",

"NumSegments:=" , "0"

],

["NAME:Attributes",

"Name:=" , "Ellipse1",

"Flags:=" , "",

"Color:=" , "(143 175 143)",

"Transparency:=" , 0,

"PartCoordinateSystem:=", "Global",

"UDMId:=" , "",

"MaterialValue:=" , "\"copper\"",

"SurfaceMaterialValue:=", "\"\"",

"SolveInside:=" , False,

"ShellElement:=" , False,

"ShellElementThickness:=", "0mm",

"IsMaterialEditable:=" , True,

"UseMaterialAppearance:=", False,

"IsLightweight:=" , False

])

VB Syntax

CreateEllipse <Parameters>, <Attributes>

VB Example

oEditor.CreateEllipse Array("NAME:EllipseParameters", "IsCovered:=", true, "XCenter:=", _

"-0.4mm", "YCenter:=", "-3.2mm", "ZCenter:=", "0mm", "MajRadius:=", "0.4mm", "Ratio:=", _

"0.5", "WhichAxis:=", "Z", "NumSegments:=", "0"), Array("NAME:Attributes", "Name:=", _

"Ellipse2", "Flags:=", "", "Color:=", "(143 175 143)", "Transparency:=", 0, "PartCoordinateSystem:=", _

"Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SurfaceMaterialValue:=", _

"" & Chr(34) & "" & Chr(34) & "", "SolveInside:=", false, "ShellElement:=", _

false, "ShellElementThickness:=", "0mm", "IsMaterialEditable:=", true, "UseMaterialAppearance:=", _

false, "IsLightweight:=", false)