Import E57 in 3DR script does not show in Tree-View

Discuss Leica Cyclone 3DR software here.
Post Reply
amir_mizrachi
I have made <0 posts
I have made <0 posts
Posts: 4
Joined: Wed May 11, 2022 2:29 pm
Full Name: Amir Mizrachi
Company Details: onsight
Company Position Title: CTO
Country: Israel
Linkedin Profile: Yes
Has thanked: 2 times
Been thanked: 1 time

Import E57 in 3DR script does not show in Tree-View

Post by amir_mizrachi »

Hello,

I am a newbie to Cyclone 3DR javascript.
Why do the following code - which should only suppose to import an E57 file - ended successfully but I cannot see the point cloud data in 3dr tree view?

Code: Select all

/// <reference path="C:\Program Files\Leica Geosystems\Cyclone 3DR\Script\JsDoc\Reshaper.d.ts" />

var res = SSurveyingFormat.ImportCloud("C:/Test.e57", 0, true);
if (res.ErrorCode == 0)
{
    print("\nThe import of the object succeeded.");
} 
else
{
    throw new Error("The import of the object failed.");
}
Thanks!
User avatar
gilles_3DR
V.I.P Member
V.I.P Member
Posts: 235
Joined: Mon Dec 08, 2014 11:41 am
7
Full Name: Gilles Monnier
Company Details: Hexagon
Company Position Title: 3DR Technical Manager
Country: France
Linkedin Profile: Yes
Has thanked: 2 times
Been thanked: 28 times

Re: Import E57 in 3DR script does not show in Tree-View

Post by gilles_3DR »

Hi,

by default, none of the results (from import or data processing or...) are added into the 3dr tree view.
You need to define what needs to be added or not.

For this SSurveying.ImportCloud() function, you need to loop over the elements in res.CloudTbl and add them into the document: AddToDoc() function
Post Reply

Return to “Leica Cyclone 3DR”