CreateTorus

Creates a torus.

UI Access Draw > Torus.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:TorusParameters",

"XCenter:=" , <string>,

"YCenter:=" , <string>,

"ZCenter:=" , <string>,

"MajorRadius:=" , <string>,

"MinorRadius:=" , <string>,

"WhichAxis:=" , <string "X", "Y", or "Z">)

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

Python Syntax

CreateTorus(<Parameters>, <Attributes>)

Python Example

oEditor.CreateTorus(

["NAME:TorusParameters",

"XCenter:=" , "0.6mm",

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

"ZCenter:=" , "0mm",

"MajorRadius:=" , "0.365028153987289mm",

"MinorRadius:=" , "0.0821854415126694mm",

"WhichAxis:=" , "Z"

],

["NAME:Attributes",

"Name:=" , "Torus1",

"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

])