Click or drag to resize

IObjectsAddRectangle Method

Add a rectangle that is parallel to the active plane of the active coordinates system. The dimensions that width and height are defined in depend on the active plane i.e. width is always defined in the first dimension and height in the second. For example, if the active plane is YZ plane, then width is defined in Y dimension and height is defined in Z dimension. The rectangle face name is "Rectangle". width and height can have either positive or negative values.

Namespace:  EMInvent.InventSim.COMServer
Assembly:  InventSim (in InventSim.exe) Version: 5.1.12.6+develop
Syntax
ISimObject AddRectangle(
	string name,
	string p0,
	string width,
	string height
)

Parameters

name
Type: SystemString
Name of the rectangle.
p0
Type: SystemString
Starting point.
width
Type: SystemString
Length in the first dimension.
height
Type: SystemString
Length in the second dimension.

Return Value

Type: ISimObject
Reference to the rectangle.
See Also