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

Createagnlibobj

Messages
219
Country
italy
What are exactly the arguments to be used in the CREATEAGNLIBOBJ?

I'd like to add Urban Highrise from the library.

CREATEAGNLIBOBJ|FTYPE=POLYGON;FROMFILE=highrise-builds.SHP|{a8fd351f-42b2-7936-1070-09baa9102e80}|90|50|30;30

Created 0 autogen objects

what am I doing wrong?

What are the possible values for the last 3 attributes?

thanks
 
Hi Gabriele,

Usually you would place library objects from point features, not from polygons. Although with polygons you should still get one object at the first vertex of the polygon.

Be aware that the GUID here is not the GUID of a library object, but of the autogen class defined in the default.xml file.

The last three arguments are:

  • The attribute of your vector data that holds the heading value (or if you type a value they all get this fixed heading)
  • An additional heading offset. To be used if the heading attribute does not give the right orientation. For example because the library object is oriented differently. I would first try a 0 offset and see if that works.
  • The size of the library class. This is specified in the default.xml as well, so usually you can just copy this value from the tooltip help. scenProc needs it to calculate the right size for the library object and the center location.
 
Are u saying that the guuid that pops up automatically in SP is not correct?

I can't find the CLASS GUID in the default.xml files.

Code:
 <CLASS>
      <NAME>Urban Highrise 35x35 16-20 stories</NAME>
      <GUID>a8fd351f793642b2ba097010802e10a9</GUID>
      <WIDTH>35</WIDTH>
      <DEPTH>35</DEPTH>
      <LIBRARYOBJECT>
        <NAME>AG_EurCondo02</NAME>
        <GUID>98b477ca4d0ff7333a999e9ce8284b57</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>AG_EurCondo03</NAME>
        <GUID>1b066a17439d801a2c32d8805d65613a</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>agn_Highrise01</NAME>
        <GUID>c053116e42924a9fed2bdab992379cb0</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>agn_Highrise02</NAME>
        <GUID>765080804d2315a94b190a944c835389</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>agn_Highrise03</NAME>
        <GUID>7afb08e14b2ee270710acc9050a2499e</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>agn_Highrise04</NAME>
        <GUID>8538883b41510e6eca1b3c9ed24516b4</GUID>
      </LIBRARYOBJECT>
      <LIBRARYOBJECT>
        <NAME>agn_Highrise05</NAME>
        <GUID>3236ee794d52bee65b9d26b0a6080d12</GUID>
      </LIBRARYOBJECT>
    </CLASS>


2) I made those vector shp from Photoshop, randomly placed in very high population density urban areas. So my shp files don't have a specific value for the heading of those polygons. Do you know where I can find (or do you have one to share) a vector file with polygons or point with heading values embedded in? So I can see how it works.

Thanks Arno!
 
OK I converted the polygons into points in Global Mapper. Now I have a shp file with all the points where the highrise buildings should be placed by SP.

I run SP but I get zero agn file created.

CREATEAGNLIBOBJ|FTYPE=POINT;FROMFILE=highrise-points.shp|{a8fd351f-42b2-7936-1070-09baa9102e80}|90|0|35;35

Zero autogen created. :(

Maybe the problem is in the GUID
 
No, the guid will not prevent autogen from being made. Most likely the filter has a mistake.
 
The filename in the filter is case sensitive, did you write it the same in the import step?
 
Can you show the total config, maybe I can spot something from it.
 
Code:
IMPORTOGR|E:\Autogen\TESTS\highrise-points2.shp|*|*|NOREPROJ
#
SPLITGRID|AGN
#
CREATEAGNLIBOBJ|FTYPE=POINT;FROMFILE=highrise-points2.shp|{a8fd351f-42b2-7936-1070-09baa9102e80}|90|0|35;35
#
WRITEAGNFILES|FSX|texture/

I have also attached the SHP file

thanks Arno!
 

Attachments

Let me check, but maybe the IMPORTOGR step has a bug and doesn't set the FROMFILE attribute correctly.

Does it work if you use IMPORTSHP?
 
Hi,

It was indeed a bug, I have fixed that now. So from the next release the FROMFILE will work with IMPORTOGR as well.
 
Morning Arno!

Before I try...

can we use the file mask @0@ in the FROMFILE like

FROMFILE=prefix@0@

?
 
Hi,

Yes, you can. You can use it in any step, the @0@ (or @1@, @2@, etc) will be substituted the provided text and then scenProc just works as if that text was typed in.
 
Back
Top