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

])

VB Syntax

CreateRegularPolyhedron <Parameters>, <Attributes>

VB Example

oEditor.CreateRegularPolyhedron Array("NAME:PolyhedronParameters", "XCenter:=", _

"-10000mm", "YCenter:=", "-50000mm", "ZCenter:=", "0mm", "XStart:=", "0mm", "YStart:=", _

"-50000mm", "ZStart:=", "0mm", "Height:=", "90000mm", "NumSides:=", "8", "WhichAxis:=", _

"Z"), Array("NAME:Attributes", "Name:=", "RegularPolyhedron2", "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)