[Therion] Import a scrap into another scrap (or th2-file)

torstein finnesand torstein.finnesand at gmail.com
Mon Aug 10 21:15:31 CEST 2015


Thanks to Xavier, Adam and Martin for the answers.

Yes, I do copy/paste from one file to the other using text editor, - the 
problem is that the pasted objects are not positioned in the correct 
place. Actually, my situation is described in chapter 5.2.5 in this page:

http://therion.speleo.sk/wiki/doku.php/tbe:wiki5?s[]=pdftex

The text says that copy/paste is not enough: "...  the graphical 
elements have coordinates in different frames of reference. Even if the 
two scraps have the same ”-scale”, the frame is given by the positions 
of the points of type “station”."

After the copy/paste, the text says "Now you can open the second file 
with the map editor of xtherion and position the elements that you 
pasted in in the proper places." The keyword for me is "position". But I 
haven't found a simple way to move all the new objects into their proper 
places. It takes a lot of time If have to move the objects one by one, 
in particular for the lines.

The cave we are drawing is a maze. Many scraps and many connections. Not 
always easy to get good scraps & joins,  :-)

Torstein




Den 10.05.2015 21:18, skrev Adam Sampson:
> Can you open the .th2 file in a text editor and copy/paste the relevant features from one file to the other?
>
> On May 10, 2015, at 2:10 PM, Xavier Pennec <Xavier.Pennec at inria.fr> wrote:
>
> Hi Torstein,
>
> There is an undocumented feature which can help you that I am using once in a while to redraw an elevation with a new projection from the same scraps or to redraw a passage that has been too distorted: you can export the morphed th2 files so that they are consistent with the coordinates with the xvi file. This is working essentially as an xvi export (see eample below).
>
> HOWEVER, you should be careful that this feature is not documented for a good reason: most of the th2 options are missing in the exported th2 (eg label location and text, id of lines or points) so that the generated th2 file will not work properly. What I am doing , is comparing the two th2 files (original and warped) using notepad++ compare plugin and reput all the options where they should be. This may take a while for a large drawing, but it is way more efficient than redrawing everything.
>
> Hope that help
>
> Xavier
>
> %%%%%%%%%%%%%%%%%%
>
> layout th2-export
> scale 1 100
> grid-size 1 1 1  m
> sketches on  ## rewarped also sketches exported in th2 now
> endlayout
>
> ## Exports the maps and the images rewarped
> # Do it only when needed!
> export map -fmt th2 -o Elevation10_ReWarped.th2 -projection [elevation 10] -layout th2-export
> export map -fmt xvi -o Elevation10_ReWarped.xvi -projection [elevation 10] -layout xvi-export
>
>
>
> Le 10/05/2015 04:47, torstein finnesand a écrit :
>> Hi fellows,
>>
>> Sometimes I realize that two scraps should have been one (for instance scrap A in A.th2 should have been a part of scrap B in B.th2), in particular when it's difficult to join them. It's easy to insert the xvi file into the scrap B file. But I have to draw it again.
>>
>> Is there any workaround here?
>>
>> Torstein Finnesand
>> Norway
>>
>>
>> _______________________________________________
>> Therion mailing list
>> Therion at speleo.sk
>> http://mailman.speleo.sk/mailman/listinfo/therion




More information about the Therion mailing list