CreateCylinder

Creates a cylinder.

UI Access Draw > Cylinder.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:CylinderParameters",

"XCenter:=", <string>,

"YCenter:=", <string>,

"ZCenter:=", <string>,

"Radius:=", <string>,

"Height:=", <string>,

"WhichAxis:=", <string>,

"NumSides:=", <string containing integer>)

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

Python Syntax

CreateCylinder(<Parameters>, <Attributes>)

Python Example

oEditor.CreateCylinder(

["NAME:CylinderParameters",

"XCenter:=" , "6mm",

"YCenter:=" , "-4.5mm",

"ZCenter:=" , "0mm",

"Radius:=" , "0.5mm",

"Height:=" , "4.5mm",

"WhichAxis:=" , "Z",

"NumSides:=" , "0"

],

["NAME:Attributes",

"Name:=" , "Cylinder1",

"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

])