 | 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
SyntaxISimObject AddRectangle(
string name,
string p0,
string width,
string height
)
Function AddRectangle (
name As String,
p0 As String,
width As String,
height As String
) As ISimObject
Dim instance As IObjects
Dim name As String
Dim p0 As String
Dim width As String
Dim height As String
Dim returnValue As ISimObject
returnValue = instance.AddRectangle(name,
p0, width, 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:
ISimObjectReference to the rectangle.
See Also