Category Sketches and sections, Object ProSection

Function ProSectionEntityParamEval


Description
Finds the corresponding normalized parameter value on the curve, given the XY point. Its value ranges from 0 to 1.
Synopsis
#include <ProSection.h>
ProErrorProSectionEntityParamEval(
ProSection section
/* (In)
The section
*/
int ent_id
/* (In)
The entity identifier
*/
Pro2dPnt xy_point
/* (In)
The XY point. The point does not necessarily have to lie on the entity. If the point is off the entity, the function finds the closest point.
*/
double* p_param
/* (Out)
The corresponding normalized parameter on the entity geometry.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully evaluated the point.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_AMBIGUOUSMore than one param value found.

Manual References:

  1. Element Trees: Sections: Modifying Entities
  2. Element Trees: Sections: Modifying Entities