Truview markup.xml not load automatically

3DUserNet, Cintoo, GeoSignum Pointer, Pillr, Pointbox, Pointerra, Pointly, PointSharePlus, Pythagoras, Potree, Vercator, WebShareCloud, Etc.
Post Reply
cerene_olivier
V.I.P Member
V.I.P Member
Posts: 171
Joined: Mon May 04, 2009 12:36 pm
14
Full Name: olivier boissard
Company Details: GGC
Company Position Title: laserscanning surveyor
Country: France
Linkedin Profile: No

Truview markup.xml not load automatically

Post by cerene_olivier »

Hi,

I have a truview where I have prepared some measure, annotation, hotlink... I want to send it to my client on DVD so to keep the markup I have export markup for each station and place the markup.xml file in the station directory. But when I load the truview on another PC the makup aren't loaded, I have to import them manualy.

How can I force the markup.xml file to load when I open the truview station?

I thought I just have to save the markup.xml file in the truview station directory, is that right or do I miss something ?

Thanks
User avatar
Phill
V.I.P Member
V.I.P Member
Posts: 653
Joined: Wed Feb 06, 2008 7:19 am
16
Full Name: Phillip Nixon
Company Details: SKM
Company Position Title: Surveyor
Country: Australia
Location: Sydney
Has thanked: 7 times
Been thanked: 45 times

Re: Truview markup.xml not load automatically

Post by Phill »

Olivier

My understanding is the markups are sort of like a cookie, and are stored somewhere in your temp directory. As a solution to this problem if you add the following code to your CycloneXUI.xslt at line 134, on loading the truview will load the Markup.xml file from the local truview folder. What I mean is markup the truview and then save the markups to a file called "Markup.xml" under the folder the truview is stored in (with all the dat, jpg and png files). If you then add the following line of code

CX_Control.LoadMarks("Markup.xml", true )

in the CycloneXUI.xslt file as shown below it should autoload the markups on the way in.

<script language="javascript" for="CX_Control" event="ControlInitialized()">
if ( !controlLoading )
{
controlLoading = true;
loadingStarted = true;
CX_Control.src = "CubeMapMeta.xml";
activateTab('Measure');
CX_Control.LoadMarks(markupFilename, false ); // Do not force server version of markup to load

if ( CX_Control.MarksLocal )
MarkupFileNameText.innerHTML = "Client side marks: " + markupFilename;
else
MarkupFileNameText.innerHTML = "Server side marks: " + markupFilename;
Mark3DXNameTxt.innerHTML = "&#916;X:";
Mark3DYNameTxt.innerHTML = "&#916;Y:";
Mark3DZNameTxt.innerHTML = "&#916;Z:";
updateToolBar();
setMaxNeighborsFromCookie();
CX_Control.LoadMarks("Markup.xml", true )


}
</script>

Good luck, and p.s. I only did minimal testing to get this to work, and I am not a java guru.

Cheers

Phill
cerene_olivier
V.I.P Member
V.I.P Member
Posts: 171
Joined: Mon May 04, 2009 12:36 pm
14
Full Name: olivier boissard
Company Details: GGC
Company Position Title: laserscanning surveyor
Country: France
Linkedin Profile: No

Re: Truview markup.xml not load automatically (Resolved)

Post by cerene_olivier »

Thank you phill your solution seems to work well for me.

Thanks again
Post Reply

Return to “Web Based Software”