CreateSphere

Creates a sphere.

UI Access Draw > Sphere.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:SphereParameters",

"XCenter:=", <string>,

"YCenter:=", <string>,

"ZCenter:=", <string>,

"Radius:=", <string>)

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

Python Syntax

CreateSphere(<Parameters>, <Attributes>)

Python Example

oEditor.CreateSphere(

["NAME:SphereParameters",

"XCenter:=" , "-40000mm",

"YCenter:=" , "-130000mm",

"ZCenter:=" , "0mm",

"Radius:=" , "22360.6797749979mm"

],

["NAME:Attributes",

"Name:=" , "Sphere1",

"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

CreateSphere <Parameters>, <Attributes>

VB Example

oEditor.CreateSphere Array("NAME:SphereParameters", "XCenter:=", "-120000mm", "YCenter:=", _

"90000mm", "ZCenter:=", "0mm", "Radius:=", "10000mm"), Array("NAME:Attributes", "Name:=", _

"Sphere2", "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)