• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

BATCH and FROMFIILE

Messages
219
Country
italy
You can not use FROMFILE=xxxx@0@ in the CREATEXXXXXX lineS becasue it will create polygons for all the features found in all the imported files for ALL the agn type.

CREATEAGNPOLYVEG|FTYPE=POLYGON;FROMFILE=puget_@0@.shp|{GUID}
CREATEAGNGENBUILD|FTYPE=POLYGON;LAYER=Houses|{GUID}

the objects created in line 2 will have all the objects created also in line 1. Same story for the line 1
 
Last edited:
Hi,

Can you show an actual example of the line you used? I think it should work.
 
Let me check, but I would expect this to work.
 
Hi,

I can't reproduce your problem. It works fine for me with this configuration:

Code:
IMPORTOGR|natural_@0@.shp|*|*|NOREPROJ
IMPORTOGR|buildings_@0@.shp|*|*|NOREPROJ
#
SPLITGRID|AGN
#
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=buildings_@0@.shp|{1d9d68e8-e672-4de7-a848-a114c941d244}
CREATEAGNPOLYVEG|FTYPE=POLYGON;FROMFILE=natural_@0@.shp|{0053b63d-b2c0-4bd9-9853-d9d21c9ad1fa}
 
the file name must be the same to have that problem. All my shp files are named the same

IMPORTOGR|xxx_@0@.shp|*|*|NOREPROJ
IMPORTOGR|xxx_@0@.shp|*|*|NOREPROJ
 
But why would you import the same file twice? You only need to import a file once to have all its features.
 
Or are you loading them from different folders again (I can't see that from your sample). In that case it would be the same issue we discussed last time, you would need a FROMPATH. Maybe I should add that as a special attribute as well.
 
Yes the FROMPATH would solve it. I may have missed this when you wrote it the first time.

I process a big areas split in tiles not to overload ScenProc (RAM) and also to have photoshop deal with "small" size images.
 
Ok, I'll see if it doesn't cost too much memory to add another special attribute.

But your IMPORTOGR steps do have different files listed then, since they are in different folder.
 
Code:
# @0@= 3
IMPORTOGR|E:\Autogen\City-Trees\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Decidious-Forest\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Evergreen-Forest\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Grassland-Herbaceous\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Mixed-Forest\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Woody-Wetlands\shp\puget_@0@.shp|*|*|NOREPROJ
#
IMPORTOGR|E:\Autogen\Houses\shp\puget_@0@.shp|*|*|NOREPROJ
IMPORTOGR|E:\Autogen\Buildings-Flat-Roof\shp\puget_@0@.shp|*|*|NOREPROJ
#  
#IMPORTOGR|E:\Autogen\Highrise-buildings\shp\puget_@0@.shp|*|*|NOREPROJ
#IMPORTOGR|E:\Autogen\Highrise-small\shp\puget_@0@.shp|*|*|NOREPROJ
#
SPLITGRID|AGN
#
# VEGETATION - POLYGONS
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=City-Trees|{aedf6a47-3a98-4913-9538-bd4579d79594}
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Decidious-Forest|{0a7dd9ef-9e7f-4140-9ae8-5d1d5047176b}
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Evergreen-Forest|{618bfc6b-4642-4035-931e-a422ed357605}
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Grassland-Herbaceous|{2a917db0-e752-4431-9b55-26aabf75e53e}
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Mixed-Forest|{e1a6390c-2339-4baf-8a5a-53bde05d134a}
CREATEAGNPOLYVEG|FTYPE=POLYGON;LAYER=Woody-Wetlands|{e1a6390c-2339-4baf-8a5a-53bde05d134a}
#
# BUILDINGS - POLYGONS
CREATEAGNGENBUILD|FTYPE=POLYGON;LAYER=Houses|{214e9e1c-6f98-4ced-9667-0cd57592cea1}
CREATEAGNGENBUILD|FTYPE=POLYGON;LAYER=Buildings-Flat-Roof;FWIDTH>10|{b597ddc9-4aa1-4391-8383-231620161427}|MAXRATIO=6
#
# LIBRARY OBJECTS - POINTS
#CREATEAGNLIBOBJ|FTYPE=POINT;LAYER=Big|{c0fbb25b-4e06-d4dc-9bb4-9e884c01d5f7}|90|0|60;35
#CREATEAGNLIBOBJ|FTYPE=POINT;LAYER=Small|{a8fd351f-42b2-7936-1070-09baa9102e80}|90|0|35;35
#
WRITEAGNFILES|FSX|E:\Autogen\~Puget-Sound\texture

Replace the LAYER= with FROMFILE= and that config would cause the problem, as of now.
 
So why don't you use layer then? That bug is fixed if you download the current development release.
 
I don't need the fromfile since the LAYER thing is fixed. I opened this thread just as info.
 
Hi,

I have added a FROMPATH in the next development release as well. Just to prevent such confusion in the future.
 
Back
Top