How to change settings for just a few readings?

Olly Betts olly at
Mon Sep 27 21:53:44 CEST 2004

I'm looking at how to convert from .svx format to .th format.  Mostly
working, except I can't see how to handle this cleanly (the situation
modelled here is that the tape is too short, and for one leg is was
measured from a different point - in the example this was distilled
from because 2-3 was a plumb and we needed more tape to tie a crab on):

  *begin test

  *calibrate tape 1
  1 2 10 0 0

  *calibrate tape 2
  2 3 10 0 0
  ; *calibrate 1 is now be back in effect

  3 4 10 0 0

  *end test

The nearest I can get is:

  encoding iso8859-1
  survey test -title "test"
  calibrate tape 1
  1 2 10 0 0
  calibrate tape 2
  2 3 10 0 0
  3 4 10 0 0

However this doesn't restore the "calibrate tape 1" of course (the
survey length is 27m).  I can't omit the survey name for a survey
command, or pass an empty name.  And I can't nest centreline commands.

The only solution I can see is to track which settings are in effect and
reset them all after the *end.  That's just about OK for automated
conversion if nobody's going to want to edit the result, but it must be
a right headache for anyone who has tried to hand convert a dataset so
I'm wondering if there's some way to express this situation.


More information about the Therion mailing list