Hi Rich, 

first of all, thanks a lot for the great work on SexyTopo! I like your app a lot.

Unfortunately, there is no documentation, but the attributes are the following:

xth_me_area_adjust <Xmin> <Ymin> <Xmax> <Ymax> - where Xmin, Ymin and Xmax, Ymax are cartesian coordinates of lower left and upper right corners of drawing area
xth_me_area_zoom_to <zoom> - where <zoom> is the default zoom factor, when drawing is open in xtherion. Should be 25,50,100,200,400.
xth_me_image_insert {<Xpos> <visibility> <gamma>} {<Ypos> <root>} {<filename>} 0 {}
  <Xpos> <Ypos> is the position of the 0,0 point of XVI coordinate system
  <visibility> - 0 image is hidden / 1 image is shown
  <gamma> - image gamma
  <root> - root station name (if XVI is changed during compilation, this station keeps its position relative to the entire drawing). Can be omitted.
  <filename> - name of image file
  0 {} - image identifiers, can be 0 {} for all images - if it is like this, it will be calculated automatically

HTH, S.


On Fri, 26 Jan 2024 at 14:12, Rich Smith <rls@hwyl.org> wrote:
Hi Therion

I'm the author of cave surveying app SexyTopo, and I'm trying to write a better Therion exporter. Previously I'd kind of hacked an exporter that did an approximate job, but I'm rewriting it and trying to do a better job.

I understand I should generate an XVI file for each projection that represents the sketch. I then need to set this in the th2 file with some commands. For example:

##XTHERION## xth_me_area_adjust -132.0 -156.10532659555793 1768.2371519518056 726.0
##XTHERION## xth_me_area_zoom_to 100
##XTHERION## xth_me_image_insert {950.6824683592552 1 1.0} {267.841199967364 5} {blaengwynlais plan.xvi} 0 {}

Are these documented anywhere? It seems like xth_me_area_adjust sets the dimensions of the image, and xth_me_image_insert specifies the position and filename, but I'm not clear what all the values represent.

Many thanks for any pointers!
Rich
_______________________________________________
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion