View Orientation
Functions Introduced:
The orientation type for a drawing view is given by the enumerated type ProDrawingViewOrientationType. The view orientation can be of the following types:
• PRO_VIEW_ORIENT_NAME—The drawing view is oriented using saved views from the model.
• PRO_VIEW_ORIENT_GEOM_REF—The drawing view is oriented using geometric references from the model.
• PRO_VIEW_ORIENT_ANGLE—The drawing view is oriented using angles of selected references or custom angles.
|
Note:
|
The drawing view must be displayed before applying any orientation to it.
|
The function
ProDrawingViewOrientationFromNameSet() assigns the orientation of a specified drawing view according to the following input arguments:
• mdl_view_name—Specifies the name of the saved view in the model.
• orientation_name—Specifies the name of the user-defined orientation for the saved view.
• x_angle—Specifies the X angle in degrees for the user-defined orientation.
• y_angle—Specifies the Y angle in degrees for the user-defined orientation.
The function
ProDrawingViewOrientationFromReferenceSet() assigns the orientation of a specified drawing view according to the following input arguments:
• ref_name_1—Specifies the name of the first geometric reference.
• ref_sel_1—Specifies the first reference selection on the model in terms of the ProSelection object.
• ref_name_2—Specifies the name of the second geometric reference.
• ref_sel_2—Specifies the second reference selection on the model in terms of the ProSelection object.
The function
ProDrawingViewOrientationFromAngleSet() assigns the orientation of a specified drawing view according to the following input arguments:
• sel—Specifies the reference selection in terms of the ProSelection object. It can be an axis or NULL for other type.
• angle—Specifies the angle in degrees with the selected reference.
• rot_ref_name—Specifies the name of the rotational angle.
• index—Specifies the index of the angle setting.