
This method will set the block view display properties. Specifically, it sets the target position, the camera position, the up director vector, the camera field width and height and is the view being displayed in perspective.
If the last argument isPerspective is not supplied, false or Nil is assumed.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_BlockView_SetView MyControlReference [as Reference] 3dTargetPoint [as 3dPoint] 3dCameraPoint [as 3dPoint] 3dUpVector [as 3dPoint] rFieldWidth [as Float] rFieldHeight [as Float] [Optional] bIsPerspective [as Boolean] ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_BlockView_SetView ProjectFile [as String] DialogName [as String] ControlName [as String] 3dTargetPoint [as 3dPoint] 3dCameraPoint [as 3dPoint] 3dUpVector [as 3dPoint] rFieldWidth [as Float] rFieldHeight [as Float] [Optional] bIsPerspective [as Boolean] ) |
Copy Code |
|---|
; Set the camera (Odcl_BlockView_SetView MyProject_MyForm_MyControl (list 1 0 0) (list 0 0 0) (list 0 1 0) 320 180 Nil) |