Hello All,
How to call this lidar tmodel function
//how to bind Dpoint3d and int to form a expression to evaluate using mdlCExpression_getvalue int FnSurfaceZ( Dpoint3d *Pt, int I) ; // with parameters mdlCExpression_getValue( &Val, &Res, Expr, VISIBILITY_CALCULATOR); //For Example in my previous case int FnSurfaceName( char *Str, int I) ; sprintf( Expr, "FnSurfaceName(%ld,%d)", (long) Name, 0) ; mdlCExpression_getValue( &Val, &Res, Expr, VISIBILITY_CALCULATOR);
Please follow the MicroStation Programming forum best practices.
Please identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation CONNECT or MicroStation V8i. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?
If you're using MicroStation in a ProjectWise (PW) managed environment, let us know that too.
The APIs supplied with MicroStation CONNECT are different to those supplied with MicroStation V8i. Consequently, our answers are likely to be different.
Are you using Visual Studio or Bentley Make (bmake) to build your project? What version of Visual Studio are you using?
Please tell us where the FnSurfaceZ function comes from?
FnSurfaceZ
Regards, Jon Summers LA Solutions
Hello Sir,
I am using microstation v8 2004 Edition(version:08.05.01.25) and building tools using Microstation Development Shell.
FnSurfaceZ is lidar tmodel function.
/*------------------------------------------------------------------- Calculate elevation Pt->z at location Pt->x,Pt->y from surface with id I. The elevation can not be calculated if: - the surface id is invalid - the surface is empty - the point is outside surface - the point is inside an excluded triangle Return 1 if successful. Return 0 if the elevation could not be calculated. */ int FnSurfaceZ( Dpoint3d *Pt, int I) ;
Thanks in Advance,
Kanmani K.
Unknown said:I am using microstation v8 2004 Edition(version:08.05.01.25) and building tools using Microstation Development Shell
You're writing MDL pseudo code, not C++?
Please provide more details of the LIDAR library:
Hi Kanmani,
as Jon wrote, to provide more detail answer or advice, more information is missing:
How to call a function available in library always depends on what compiler is used (is it pseudocode or native code?) and also how the function is published (visible to an external code) by its author.
Because "lidar tmodel" is not a standard part of MicroStation, but probably a 3rd party application, the software developer should provide a proper answer.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Kanmani,
It appears you are using MicroStation V8 2004 based TerraSolid 3rd party products and trying to get started using their Lidar tmodel APIs. Though Bentley programming forums may not be able to provide direct support on these 3rd party vendor APIs, you may be able to ask more generic/common MDL programming and build related questions here.
For more information on the TerraSolid Lidar API, please refer to Chapter 21 (page 270) in the tmodel.pdf document below on the TerraSolid web site where you could possibly ask for additional programming training and assistance related to their APIs.
https://www.terrasolid.com/download/tmodel.pdf
http://www.terrasolid.com/training.php
https://www.terrasolid.com/support/support.php
HTH,Bob
Thank you so much for your reply Jon Summers,Jan Šlegr,Robert Hook.
I will try to find some help from Terrasolid!