Hi, After some tests and corrections I decided to put it on the open test. If anyone needs this program, I will repair the remaining errors and also change or add new features if needed.
Program to generate a vegetation by mask. It can:
1) Import object list from Terrain Builder.
2) Random place objects on area selected by color from sat. mask texture.
3) Generate object by defined random values of size, direction, pitch.
3) Export result as .txt back to TB.   Small manual: 1) Create new project.  2) Import mask image.  3) In upper menu select "objects database", and fill it with your objects. 
You can import them from TB project. Press import button and select .tml file from \TemplateLibs folder.  4) Create new color mapping (press button "New color mapping" and name it).  
Select created color mapping item, then double click on map cell (2d mode)), right click on tile and select color.  5) Add layers to created color mapping. 
Right click on mapped color item and add layers (like Forest), 
select % object fill on this layer.  6) Setup layer objects. 
On layer press on "0" button and select out objects for this layer.  7) Press "Generate placement".  
For all map object placement in map view or in 3d view for single tile generation (for quick TB import, testing).  8) Result for TB import will be generated as .txt in selected output folder.      Notes: "number of tiles" = basically copy this value from TB project.  color mapping =  color from mask, on with objects will be placed. go back to the full map view = press 'M' or Backspace   Tips: 1) You may need to setup drive path with more free space for ImageMagick cache files: Menu>AppSettings 2) For better performance us bigger number for "Tiles in row count" in project setup. Try to have < 512px tile resolution.  Example:  You have 36864px source image resolution and tiles in row count 96,  36864 / 96  = 384px.   .Net Framework 4.7 requeued.    Discord channel: https://discord.gg/rGTmrFU   Link: ver. 0.9.9.7c https://1drv.ms/u/s!Ao0Oj5mjcuAikf4dwNjkxNPQRquQqQ   Manual: https://1drv.ms/b/s!Ao0Oj5mjcuAikptxVeVTf9IzIgRfCA