ObjectDCL Banner

BlockView_Zoom Method

Description

This method will recalculate the zoom scale by the zoom factor provided.   For example a zoom factor setting of 1.1 will zoom in on the block object, and a zoom factor setting of 0.9 will recalculate the zoom scale based on the current zoom setting.

Parameters

MyControlReference
Reference to the control in the form of MyProject_MyForm_MyControl.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.
ControlName
String identifying the control by name.
rZoomFactor
Real identifying the zoom factor to apply.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the control is not found or does not support this function.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_BlockView_Zoom 
		MyControlReference [as Reference]
		rZoomFactor [as Float]
	)

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_BlockView_Zoom
		ProjectFile [as String]
		DialogName [as String]
		ControlName [as String]
		rZoomFactor [as Float]
	)

Applies For

BlockView.

Example

CopyCode imageCopy Code
; Zoom in
(Odcl_BlockView_Zoom MyProject_MyForm_MyControl 1.1)