An scrap is a unit from which all Therion's output are created. 

So all objects of particular scrap MUST be between lines scrap - endsrap in th2 files. Of they are outside, they will not be drawn. 

It is not simple work, all active objects of an active scrap are in blue. On top right corner of map editor is a window where is structure of your th2 file. Above it are buttons for selecting different parts of overall th2 file. Select the particular scrap by that button and check on map window if everything of that scrap is selected. If not check the line number of endscrap command of that scrap. There is a button "Move to" just bellow  of window with th2 structure. Write there line number of endscrap, select missing objects on by one and press "Move to". 

Repeat it untill all objects will be in their particular scraps. 

Sorry, but no more simple way. 

Recommendation: Create small scraps  from beginning. 

m.s. 

Odesláno z iPhonu

2. 7. 2017 v 9:20, Saeid Bostandoust via Therion <therion@speleo.sk>:

Im resolve the problem by split my scrap into small scraps but another problems occurs.
1- scrap outline intersects itself
2- most of pit lines, slope lines, rock-border lines and etc... not exported to pdf
What should i do?

####################### metapost log file ########################
This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31)  2 JUL 2017 09:52
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1] [2]
[Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur]
[Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur] [3]
[4] [5] [6] [7] [8]
[Warning: scrap outline intersects itself in scrap Cave-Plan2@Shapur] [9]
[10] [11]
[Warning: scrap outline intersects itself in scrap Cave-Plan1@Shapur] [12]
[13] [14] (./mptextmp.mp) [15] )


On Sunday, July 2, 2017 10:31 AM, Saeid Bostandoust via Therion <therion@speleo.sk> wrote:


Thanks for answering.
I found the problem nearly, my project plan is very large and a th2 file of plan is about 23000 lines, im delete most of lines and reduce it to near 5000 lines and all done without errors... what should i do now?
maybe 23000 lines cannot be parsed and processed with metapost...


On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion <therion@speleo.sk> wrote:


Hi
I had this error recently and solved it by changing the scale of the output from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable for the pdf document?
 
Michael
 
From: Therion [mailto:therion-bounces@speleo.sk] On Behalf Of Saeid Bostandoust via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2
 
Thanks Bruce, but i dont understand how can i found the problem and what is that realy...
 
On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> wrote:
 
Saeid
 
Bruce
 
From: Therion [mailto:therion-bounces@speleo.sk] On Behalf Of Saeid Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbostan@yahoo.com>
Subject: [Therion] Metapost exit code -- 2
 
Hi, What is this exit code? and why it happen? and how to correct that?
Thanks.
 
This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31)  1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
                                                s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
                                                  ;write"closepath fill"to.b...
l.23507 draw_downscrap
                      ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./mptextmp.mp) [5] )
 
Here is how much of MetaPost's memory you used:
 1151 strings out of 1162
 13347 string characters out of 20720
 716551 words of memory out of 1500000
 1391 symbolic tokens out of 16384
 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
_______________________________________________
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion