API 文档 > Feature element trees > Object ProElement > Function ProElementDirectionGet
Function ProElementDirectionGet
Description
Calculates direction vector and origin point based on direction reference and flip orientation stored inside Direction element.
Synopsis
#include <ProElement.h>
ProElementDirectionGet
(
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
The function succeeded.
Element is not of type PRO_E_DIRECTION_COMPOUND
One or more inputs was invalid or direction was not calculated.
User Guide References
这对您有帮助吗?