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

])