Is it possible to rotate a view in CFX-Post 11.0 by a set amount, instead of using the predefined views and the free-pan or free-rotate cursors? For example, instead of looking with the x axis towards me is it possible to move the origin and rotate around the x axis by exactly 2.5 degrees?


Within CFX-Post (and CFX-Pre too) you can click in the viewer window (so that it is the subject of focus) and then press hotkeys z or y or x to orientate the views (and hold shift for the opposite view). You can also use the arrow keys to rotate the view by 15 degree increments. The amount is not user-definable. Instead you have to use a macro to set the view: goto Tools tab/Macro Calculator and load the attached file (see below). Then you can specify the orientation of the model in terms of absolute angles (rather than increments).

The macro file should look like:

# Macro GUI begin
#
# macro name = viewangles
# macro subroutine = angles
#
# macro parameter = Angle1
# type = Real
# range = -180, 180
# default = 0
#
# macro parameter = Angle2
# type = Real
# range = -180, 180
# default = 0
#
# macro parameter = Angle3
# type = Real
# range = -180, 180
# default = 0
#
#
# Macro GUI end


! sub angles {
! my ( $a1, $a2, $a3 ) = @_;

VIEW:View 1
Camera Mode = User Specified
CAMERA:
Option = Pivot Point and Rotation
Pivot Point = 0, 0, 0
Rotation = $a1, $a2, $a3
Send To Viewer = True
END

END

!}
**** Entered By: dsclarke @ 12/29/2007 11:09 AM ****





Show Form
No comments yet. Be the first to add a comment!