Category Feature element trees, Object ProElement

Function ProElementDirectionGet


Description
Calculates direction vector and origin point based on direction reference and flip orientation stored inside Direction element.
Synopsis
#include <ProElement.h>
ProErrorProElementDirectionGet(
ProElement element
/* (In)
The PRO_E_DIRECTION_COMPOUND element. This is a compound element that contains 2 sub-elements inside: PRO_E_DIRECTION_REFERENCE and PRO_E_DIRECTION_FLIP.
*/
ProVector vector
/* (Out)
calculated ProVector direction vector.
*/
Pro3dPnt origin
/* (Out)
calculated Pro3dPnt direction origin point.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_INVALID_TYPEElement is not of type PRO_E_DIRECTION_COMPOUND
PRO_TK_BAD_INPUTSOne or more inputs was invalid or direction was not calculated.

Manual References:

  1. Element Trees: Principles of Feature Creation: Feature Element Values
  2. Element Trees: Principles of Feature Creation: Feature Element Values
  3. Technical Summary of Changes for Creo 11.0.0.0: Element Trees: Feature Creation