hello all,
I want to use the function mdlMeasure_closestPointOnElement() to get the closest Point of a linestring element to my cursor Point.
But I don't know how to get the pHandle, which I need for this function.
StatusInt mdlMeasure_closestPointOnElement ( DPoint3d* pClosePoint , OUT ElemHandleCP pHandle , IN DisplayPathP pPath , IN DPoint3d const* pSpacePoint IN );
Any suggestions or code example ?
best regards,
Martin
Martin: I want to use the function mdlXxx. But I don't know how to get the ElemHandleCP pHandle, which I need for this function.
In the excitement of moving towards C++ in V8i, documentation and cross-referencing have suffered. ElemHandle is part of the MicroStationAPI C++ interface. You will find <ElemHandle.h> in \MicroStationAPI\interface.
<mstypes.h> (in \mdl\include) uses a macro ELEMENT_TYPEDEFS to derive various typedefs from a root typedef. That macro is used to generate various typedefs from ElemHandle, so when you search for a definition of ElemHandleCP you won't find one.
If you look at the MicroStationAPI help file, you will find a section on Element Handler. For example:
ElemHandle ( ElementRef elRef, DgnModelRefP modelRef )
Regards, Jon Summers LA Solutions