CreateRegularPolyhedron

Creates a regular polyhedron.

UI Access Draw > Regular Polyhedron.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:PolyhedronParameters",

"XCenter:=" , <string>,

"YCenter:=" , <string>,

"ZCenter:=" , <string>,

"XStart:=" , <string>,

"YStart:=" , <string>,

"ZStart:=" , <string>,

"Height:=" , <string>,

"NumSides:=" , <string containing number greater than 2>,

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

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

Python Syntax

CreateRegularPolyhedron(<Parameters>, <Attributes>)

Python Example

oEditor.CreateRegularPolyhedron(

["NAME:PolyhedronParameters",

"XCenter:=" , "40000mm",

"YCenter:=" , "-80000mm",

"ZCenter:=" , "0mm",

"XStart:=" , "50000mm",

"YStart:=" , "-70000mm",

"ZStart:=" , "0mm",

"Height:=" , "50000mm",

"NumSides:=" , "8",

"WhichAxis:=" , "Z"

],

["NAME:Attributes",

"Name:=" , "RegularPolyhedron1",

"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

])