CreateRectangle

Creates a rectangle.

UI Access Draw > Rectangle.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:RectangleParameters",

"IsCovered:=" , <boolean>,

"XStart:=" , <string>,

"YStart:=" , <string>,

"ZStart:=" , <string>,

"Width:=" , <string>,

"Height:=" , <string>,

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

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

Python Syntax

CreateRectangle(<Parameters>, <Attributes>)

Python Example

oEditor.CreateRectangle(

["NAME:RectangleParameters",

"IsCovered:=" , True,

"XStart:=" , "-80000mm",

"YStart:=" , "-90000mm",

"ZStart:=" , "0mm",

"Width:=" , "20000mm",

"Height:=" , "30000mm",

"WhichAxis:=" , "Z"

],

["NAME:Attributes",

"Name:=" , "Rectangle1",

"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

CreateRectangle <Parameters>, <Attributes>

VB Example

oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _

"10000mm", "YStart:=", "-40000mm", "ZStart:=", "0mm", "Width:=", "40000mm", "Height:=", _

"10000mm", "WhichAxis:=", "Z"), Array("NAME:Attributes", "Name:=", "Rectangle2", "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)