OK, now using the latest version of the inkscape plug-in. Much improved thanks! Having worked out how inkscape labels lines, I was able to bulk label my line types as follows:
Wall
lines and survey lines need to be labelled as such. I did this using
search and replace in a plain text editor. All my wall lines had the
property: class="c0"
So I replaced class="c0" with: class="c0" inkscape:label="line wall "
I don't know if the trailing space is needed, but I noticed it got created in labels when I imported th2 files into inkscape so I just went with that. All my survey lines were class="c4" so I was also able to label them by search/replace in the svg file in a text editor too. Opening the edited svg file in inkscape I can now export as th2. With this latest version of the plug-in my scraps are labelled correctly using the layer names from inkscape. To fix the coordinate range problem I found the following worked.
Before
exporting from inkscape as th2, I scaled the area I was working with to
fit on an A2 page so that the coordinate range was suitable for
Therion.
So now I have a workable th2 file containing a few scraps. I'll try to put on some survey points and generate some output next.
Footleg
On Mar 8, 2011, at 10:22 AM, Footleg wrote:do you have an old version of th2_output.inx and th2_output.py? Sorry for the hassle, my new set of plugin files replaces the previously published export plugin (available from http://therion.speleo.sk/wiki/doku.php?id=inkscape). The new output plugin does not have a "Line Type" option anymore in favour of on-canvas annotation.
- Regardless of what I name my layers in inkscape, my scraps get names like 'layer1', 'layer2', etc. when I convert to th2 with the layers as scraps option.
- If I select the line type to be 'survey' in the plug-in options, the th2 file created contains wall lines.
I'll have look at that, thanks.
- When working with sketches which have not come from Therion in the first place, you have to be careful what coordinate scale you export your inkscape drawing from. If the coordinates are in the range 0-10 for the entire sketch then it is not possible to zoom in very far in the therion editor to edit the sketch, even if you scale the sketch in therion by setting survey points. If the coordinates are in the range 0-5000 for the entire sketch then things look fine in the sketch editor in therion, but the lox files get created so that when you open them in Loch the scale bars are set to show very large areas (~250km) and the actual cave model is lost somewhere in this massive bounding box. I have found that coordinates in the range 0-500 seem to work best. So scale the entire sketch in inkscape in that coordinate range before converting to th2.
Cheers,
Thomas
_______________________________________________
Therion mailing list
Therion@speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion