plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

SFSimsDev avatar image
SFSimsDev asked Boris_ commented

AttachModel SceneryObjects

The SDK documentation states that with <AttachModel> "The model attachment feature permits you to reference a model glTF and its corresponding XML file as an attachment to a main model."

With this can we attach SimObjects to SceneryObjects (and vice versa)?


Thanks,


SFSimsDev

aircraftscenerydocumentation
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
Boris_ avatar image
Boris_ answered Boris_ commented

Hello @SFSimsDev ,
Model Attachments feature only works for a simobject and not for several simobjects or scenery objects.
Of course, the xml you try to attach to your main model must be in the same project

Regards,
Boris


2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

SFSimsDev avatar image SFSimsDev commented ·

Thanks @Boris_ - In that case it sounds like there should be an edit/clarification in the documentation stating that it's only for SimObjects. I appreciate you explaining this and the quick response.

0 Likes 0 ·
Boris_ avatar image Boris_ ♦ SFSimsDev commented ·

@SFSimsDev

Of course, we are already in the process of adding additional information and more examples in the documentation ;)

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.