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

FSX Create identical XML LibObjects having individual friendly names ?

Messages
45
Country
france
Hello,

Found this very useful command for Scenproc to add several windmills to my scenery, with their actual heading and nearly real size :

“ Create library objects where
- the GUID is stored in an attribute named OBJGUID,
- the scale in an attribute SCALE
- the heading in an attribute HDG “


CreateXMLLibObj|OBJ="HOUSE" |{00000000-0000-0000-0000-000000000000}|HDG|0|0|SCALE|NONE |OBJGUID


Now, would it be possible to modify/extend this command to give each of these objects an explicit name also retrieved from an attribute ?

Thanks for your help
Chris
 
Do you mean the guid when you say name?
 
Hello Arno,

No, I did not mean the GUID. Sorry to have mislead you.

Maybe I should have described the global process I'm in.

1. My autogen data is managed with QGIS (created one project for each region).

2. Each project contains separate layers for vegetation, buildings, roads, waterways, and so on.

3. I use several layers (polygon, point) within each of these categories.

4. All this data is then processed with Scenproc to produce either pure autogen (AGN files) or Objects (BGL files)

Its for the numerous "windmills" placed as points in QGIS that I intend to use the above mentioned "CreateXMLliboj" command, to set the accurate heading and approx. height.
The "ExportBGL" command will then create one BGL file for each windmill : thereby using only a single name + a number.

What I would like to achieve in the end, is each BGL having a "friendly name" of its own, as defined within the pertaining attribute table in QGIS.

Would that be possible ? I hope it would :)

Chris
 
are you over complicating this?
you can easily rename files afterwards with external batch to whichever friendly name you like,
 
So you mean the name of the BGL file that is made? That can not be set from an attribute (how would that work, since the file is not related to one feature). So you need to set that file in your script.

The CreateXMLLibObj step has nothing to do with the name of the BGL file.
 
Back
Top