CreateBox

Creates a box.

UI Access Draw > Box.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:BoxParameters",

"XPosition:=", <string>,

"YPosition:=", <string>,

"ZPosition:=", <string>,

"XSize:=" , <string>,

"YSize:=" , <string>,

"ZSize:=" , <string>)

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

 

Python Syntax

CreateBox(<Parameters>, <Attributes>)

Python Example

oEditor.CreateBox(

["NAME:BoxParameters",

"XPosition:=" , "0.5mm",

"YPosition:=" , "-6.5mm",

"ZPosition:=" , "0mm",

"XSize:=" , "2mm",

"YSize:=" , "1.5mm",

"ZSize:=" , "1.5mm"

],

["NAME:Attributes",

"Name:=" , "Box3",

"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

CreateBox <Parameters>, <Attributes>

VB Example

oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "0mm", "YPosition:=", _

"4mm", "ZPosition:=", "0mm", "XSize:=", "-4mm", "YSize:=", "1mm", "ZSize:=", _

"2mm"), Array("NAME:Attributes", "Name:=", "Box4", "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)