CreateRectangle Method
Description
Creates a rectangular Polygon item. If a Group is open, then graphics are added to the Group, otherwise a new Item is created.
Syntax
| Visual Basic | 
|---|
| Public Function CreateRectangle( _ ByVal x1 As Double, _ ByVal y1 As Double, _ ByVal x2 As Double, _ ByVal y2 As Double _ ) As Integer | 
Parameters
- x1
- The first x coordinate of the rectangular extent of the Polygon item.
- y1
- The first y coordinate of the rectangular extent of the Polygon item.
- x2
- The second x coordinate of the rectangular extent of the Polygon item.
- y2
- The second y coordinate of the rectangular extent of the Polygon item.
Remarks
This API method respects the axes angle setting. This means that the x, y, and z values are interpreted within the axes and all new items creates will align to the axes angle.
If a group is open, graphics are added to the group, otherwise a new item is created.
Available: GEO D OM OD OV SISpy
Group:
Example
sis.CreateRectangle (10, 10, 30, 30)
 Search Tips
Search Tips