All Cadcorp SIS API Methods

CreateBoxLabel Method

Description

Creates a Label item, which has a line pointing to a labelled location.

Label text is similar to box text as it is created in real world units and when printed maintains its actual proportions to the surrounding graphics.

This method respects the axes angle setting. This means that the x, y and z values are interpreted within the aces and all new items created will align to the axes angle.

Syntax

Visual Basic
Public Function CreateBoxLabel( _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal z1 As Double, _
   ByVal h As Double, _
   ByVal text As String, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal z2 As Double _
) As Integer

Parameters

x1
The x position of the alignment point of the Label item.

y1
The y position of the alignment point of the Label item.
 
z1
The z position of the alignment point of the Label item.
 
h
The height in metres of the Label item.
 
text
The text of the Label item.
 
x2
The x position to draw the label pointer line to.
 
y2
The y position to draw the label pointer line to.
 
z2
The z position to draw the label pointer line to.

Remarks

If a Group is open, then graphics are added to the Group, otherwise a new Item is created.

Available: GEO D   OD OM SISpy

Group:

Example

sis.CreateBoxLabel (10, 10, 0, 3, "Box Label Text", 20, 20, 0)