• 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.

ReplacePolygonByrectangles problem

Sorry, it's me again...
I've got now similar problem with ScenProcV2...
I want to create the streetlights, but again now autogen objects get created...
Here is my script again:
Code:
ImportOGR|C:\Users\mknue\Desktop\DUS\OSM\Roads.shp|*|*|AUTODETECT
SplitGrid|AGN|*
PlacePointsAlongLine|*|SINGLE|100;100|7;7|0|String;obj|street|HDG
CreateAGNLibObject|obj=street|{1f414356-7436-4b12-95c7-ae2d49a2c226}
ExportAGN|P3D v2|C:\Users\mknue\Desktop\DUS\Autogen
And the logfile:
Code:
13:18    CreateAGNLibObject    Warning        Old filter synthax found, interpreting as: obj="street"
13:18    ImportOGR    Information    Reading file C:\Users\mknue\Desktop\DUS\OSM\Roads.shp
13:18    ImportOGR    Information    Read 2699 features from file
13:18    SplitGrid    Information    Splitting features in 0,0146484375 x 0,010986328125 grid...
13:18    SplitGrid    Information    Features divided in 720 cells
13:18    PlacePointsAlongLine    Information    Placing point features along lines with filter FTYPE="LINE"...
13:18    PlacePointsAlongLine    Information    Created 5653 point features
13:18    CreateAGNLibObject    Information    Creating autogen library objects with filter FTYPE=POLYGON;obj=street
13:18    CreateAGNLibObject    Information    Created 0 autogen objects
13:18    ExportAGN    Information    Writing AGN files to folder C:\Users\mknue\Desktop\DUS\Autogen
13:18    ExportAGN    Information    Written 0 autogen files
13:18    SceneryProcessor    Information    scenProc finished processing
13:18    SceneryProcessor    Information       0,23 seconds for IMPORTOGR
13:18    SceneryProcessor    Information       0,26 seconds for SPLITGRID
13:18    SceneryProcessor    Information       2,07 seconds for PLACEPOINTSALONGLINE
13:18    SceneryProcessor    Information       1,17 seconds for CREATEAGNLIBOBJECT
13:18    SceneryProcessor    Information       0,01 seconds for EXPORTAGN
13:18    SceneryProcessor    Information       3,74 seconds total

With version 1.1 this script worked without problems (but there I also added the hdg-value to the CreateAGNLibObj-command...)

Do you know what is going wrong there?
 
Hi,

In version 2 library objects are generated from polygons, not from points anymore. So you need to use the PointToPolygon step in between. Check the manual, it has a sample.
 
Back
Top