Cadcorp SIS API Methods

CreateBlock Method

Description

Creates a named Block in a Named Object Library from the Items in a Named List, replacing any existing Block with the same name.

Syntax

Visual Basic
Public Function CreateBlock( _
   ByVal list As String, _
   ByVal blk As String, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal z As Double _
) As Integer

Parameters

list
The Named List containing the Items to be inserted into the Block.

blk
The named Block to create, or replace.

x
The origin of the Block.

y
The origin of the Block.

z
The origin of the Block.

Remarks

Available: GEO MD ME OD SISpy

Group:

Example

sis.CreateBlock ("BlockList", "NewBlockName", 10, 10, 0)

creates a block from the list BlockList with the name NewBlockName.


Send comments on this topic.

Click to return to www.cadcorp.com

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