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

])

VB Syntax

CreateTorus <Parameters>, <Attributes>

VB Example

oEditor.CreateTorus Array("NAME:TorusParameters", "XCenter:=", "0.6mm", "YCenter:=", _

"-2mm", "ZCenter:=", "0mm", "MajorRadius:=", "0.365028153987288mm", "MinorRadius:=", _

"0.0821854415126694mm", "WhichAxis:=", "Z"), Array("NAME:Attributes", "Name:=", _

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