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

])

VB Syntax

CreateCone <Parameters>, <Attributes>

VB Example

oEditor.CreateCone Array("NAME:ConeParameters", "XCenter:=", "3mm", "YCenter:=", _

"-3mm", "ZCenter:=", "0mm", "WhichAxis:=", "Z", "Height:=", "4mm", "BottomRadius:=", _

"1.11803398874989mm", "TopRadius:=", "2.06155281280883mm"), Array("NAME:Attributes", "Name:=", _

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