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
Truview markup.xml not load automatically
-
- 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
- Phill
- 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
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 = "ΔX:";
Mark3DYNameTxt.innerHTML = "ΔY:";
Mark3DZNameTxt.innerHTML = "Δ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
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 = "ΔX:";
Mark3DYNameTxt.innerHTML = "ΔY:";
Mark3DZNameTxt.innerHTML = "Δ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
-
- 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)
Thank you phill your solution seems to work well for me.
Thanks again
Thanks again