CreateCone

Creates a cone.

UI Access Draw > Cone.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:ConeParameters",

"XCenter:=", <string>,

"YCenter:=", <string>,

"ZCenter:=", <string>,

"WhichAxis:=", <string>,

"Height:=", <string>,

"BottomRadius:=", <string>,

"TopRadius:=", <string>)

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

Python Syntax

CreateCone(<Parameters>, <Attributes>)

Python Example

oEditor.CreateCone(

["NAME:ConeParameters",

"XCenter:=" , "3mm",

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

"ZCenter:=" , "0mm",

"WhichAxis:=" , "Z",

"Height:=" , "2.5mm",

"BottomRadius:=" , "2.82842712474619mm",

"TopRadius:=" , "2.23606797749979mm"

],

["NAME:Attributes",

"Name:=" , "Cone1",

"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

])