You've lost me. I am not trying to do anything just reiterate what I have seen in a youtube tutorial. Please "don't shoot the messenger"
Hi John:
No doubt some concepts in FS development discussions may be more challenging to comprehension than others.
I am trying to create a library containing a number of scenery objects I have created and have found that the tool fspackagetool is used (please advise if this is untrue).
I have also followed a YouTube video MSFS SDK Tutorial - How to build your packages outside of the sim. and I hope I am not wasting my time using this to learn how to create a library (.bgl) containing scenery objects.
I have used an existing 'ADE project' as the basis for this 'project' changing filenames, folder names and relevant data in the top .xml file however when I execute fspackagetool it results in error "provided project definition file does not exist".
I have checked everything but obviously missed something.
I have found samples in SDK but not sure if it is the SAMPLEMATERIALS or SIMPLESCENERY I should use as the 'bones' for my project (I think the SimpleScenery is that correct)?
Thanks
Your OP states "
I am trying to create a library containing a number of scenery objects I have created".
Your OP also states "
I hope I am not wasting my time using this to learn how to create a library (.bgl) containing scenery objects"
I am endeavoring to clarify for you- and others who may read this thread- that there is an important distinction to be made when you refer to a "library containing a number of scenery objects I have created", and "a library (.bgl) containing scenery object
s".
A 'library' may be interpreted by some as a general description of a compiled package folder chain path which may contain multiple BGLs that contain only (1) 3D model per each BGL.
A 'library' may also be interpreted by some as a general description of a PackageSources folder chain path which may contain either a single- or multiple- 3D models (...see discussions in MSFS forums about a dreaded "
ModelLib" folder name conflict

).
Unfortunately, depending on how a PackageSources folder chain path is named, it may cause a
ex: "
ModelLib" folder name conflict within the MSFS VFS ...that is inherited in the FSPackageTool's naming of compiled output BGL(s).
IMHO, it is best to refer to a
Scenery Object Library as a "library (.bgl) containing scenery object
s" ...
without placement code inside it.
This BGL type is distinct from a separate
Placement BGL containing code to 'place' 3D models from a
Scenery Object Library BGL
.
The Simple Scenery sample dumps the model as modelLib.BGL.
That (name ? ) -GGB has been proven to be a big No-No. They never corrected it.
It also has a placement BGL, which no one wants in a Library only package.
I am hopeful this might explain things a bit more clearly with regard to Scenery Object Library BGLs in a
Library only package versus 'Libraries' as folder chain path names, and/or Packages with BGLs containing (any) placement code.
BTW: Thanks for your explanation of a work-flow used with MSFS 2020 SDK FSPackageTool in the YouTube video cited above.
There have been a few threads which discuss the use of SDK FSPackageTool as a CMD mode excutable, and that video shows how one can perform a few additional useful tasks via (legacy DOS Command.com-compatible) Windows CMD mode batch command coding.
It will be interesting to see what additional ideas users of Windows' CMD mode batch commands may post here at FS Developer to perform additional tasks, as that CMD batch method has the potential to make many things possible that otherwise might require more complex coding in PowerShell or a Windows-compatible scripting or programming application.
GaryGB