Truview markup.xml not load automatically • Laser Scanning Forum Ltd
 
 
 

Truview markup.xml not load automatically

Truview, LFM, Octree, VRML, Etc.

Truview markup.xml not load automatically

Postby cerene_olivier » Mon Jul 26, 2010 1:18 pm

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
cerene_olivier
Forum Supporter
Forum Supporter
 
Posts: 128
Joined: Mon May 04, 2009 11:36 am
Full Name: olivier boissard
Company Details: cerene services
Company Position Title: IT developper

Re: Truview markup.xml not load automatically

Postby Phill » Wed Jul 28, 2010 11:19 pm

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
User avatar
Phill
Forum Supporter
Forum Supporter
 
Posts: 156
Joined: Wed Feb 06, 2008 7:19 am
Location: Sydney
Full Name: Phillip Nixon
Company Details: SKM
Company Position Title: Surveyor
Country: Australia

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

Postby cerene_olivier » Thu Jul 29, 2010 2:30 pm

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

Thanks again
cerene_olivier
Forum Supporter
Forum Supporter
 
Posts: 128
Joined: Mon May 04, 2009 11:36 am
Full Name: olivier boissard
Company Details: cerene services
Company Position Title: IT developper


Return to Web Based Software

Who is online

Users browsing this forum: No registered users and 1 guest


cron
 
Stay in touch    RSS feed    Twitter    Youtube    Flickr    Facebook    Linkedin


FORUM SPONSORS

Home | About Us | Accessibility | Terms of Use | Privacy Policy | Site Map | Contacts
DouZa Webdesign