Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

Please help me in solving the problem encountered by me while programming in c++ in MicroStation Development Shell employing MictStation v8i PointCloudAPI

$
0
0

At first, I make example from SDK (I use mssdk081109357en), which name is "PointClouds". I built the project using command "bmake -dMDL_NO_SIGN -dMSJ_SKIP_SIGNRSCS -dDEBUG=1 pointclouds.mke" in "MicroStation Developer Shell". Then I've opened MicroStation (V8i Ss3), next I've opened DGN-file in it, and I've opened menu "Utilities->MDLApplication". In the open window "MDL" I've chosen my created application "POINTCLOUDS" from "Available Applications" (it creates in directory "$(MSFolder)\mdlapps\" itselves) and then pushed button "Load". In the open window I typed filename of POD-file (for example, "D:\Work\Data\LAS_2563.pod") in textedit. When I pressed button "Attach File", MS had crashed: it threw error window with proposition to send log file to Bentley. I tried to find error by debuging. I changed code of file attaching the next way:

"...

case DITEM_MESSAGE_QUEUECOMMAND:

{

Bentley::Ustn::Element::EditElemHandle eeh;

Bentley::WString fn = Bentley::WString(dlogBoxInfo.fileName);

DgnModelRefP dgn_rf = ACTIVEMODEL;

StatusInt stat_pcHand = Bentley::Ustn::Element::PointCloudHandler::CreateElement(eeh, dgn_rf, fn);

// Attach the point cloud file specified in the dialog box

if (SUCCESS == stat_pcHand)

{

eeh.AddToModel (ACTIVEMODEL);

..."

I have got error on line: "StatusInt stat_pcHand = Bentley::Ustn::Element::PointCloudHandler::CreateElement(eeh, dgn_rf, fn);".

"Bentley::Ustn::Element::PointCloudHandler::Initialize()" calls in the code early than the written code above.

May be, we are not providing the filename correctly. Or may be are not using the commands correctly. Could you please go through the above method and code and let us know where we are going wrong.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>