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 MD MM ME OD OM SISpy

Group:

Example

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

creates an assembly from the list called Lines.


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).