All Cadcorp SIS API Methods

CreateAssembly Method

Description

Creates an Assembly item from the items in a Named List.

Syntax

Visual Basic
Public Function CreateAssembly( _
   ByVal list As String, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal z As Double, _
   ByVal shape As String, _
   ByVal a As Double, _
   ByVal s As Double _
) As Integer

Parameters

list
The Named List containing the Items to be added to the Assembly.

x
The x position of the Assembly.

y
The y position of the Assembly.

z
The z position of the Assembly.

shape
The shape of the Assembly.

a
The angle, in radians, of the Assembly.

s
The scale of the Assembly.

Remarks

If a group is open, graphics are added to the group, otherwise a new item is created.

Available: GEO D  OD OM SISpy

Group:

Example

sis.CreateAssembly ("Lines", 123, 5, 237, "GXF.005", 1.273, 1250)

creates an assembly from the list called Lines.