ObjectDCL Banner

GetBlockSize Method

Description

This method will return the size of the block.

Parameters

BlockName
String identifying the block by name.

Return Values

Returns the following according to the situation:

  • A list that specifies the width and height properties, all integers.
  • Nil if the block is not found.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetBlockSize 
		BlockName [as String])

Example

CopyCode imageCopy Code
; Get the block bounding box dimension
(Setq rValue (Odcl_GetBlockSize "Block1"))