Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export/Import models #787

Closed
Phrog30 opened this issue Dec 27, 2016 · 5 comments
Closed

Export/Import models #787

Phrog30 opened this issue Dec 27, 2016 · 5 comments

Comments

@Phrog30
Copy link

Phrog30 commented Dec 27, 2016

I exported a model with submodels (photo #1), then imported into a new config (photo #2). I noticed the order of submodels were different. When I looked at the order of the model file it was correct (photo #3), so it looks like it is getting jumbled on the import.
1
2
3

This is not a huge problem. Just thought I would point it out.

Thanks,
James

@AzGilrock
Copy link
Collaborator

Just looks reversed to me.

@Phrog30
Copy link
Author

Phrog30 commented May 5, 2017 via email

@AzGilrock
Copy link
Collaborator

I'm looking into it...I reproduced it.

@AzGilrock
Copy link
Collaborator

AzGilrock commented May 5, 2017

Ok I see why. Note to anyone working with the wxXmlNode class.

Using this form of the constructor it inserts child at the top:

    wxXmlNode *f = new wxXmlNode(ModelXml, wxXML_ELEMENT_NODE, "subModel");

So use this constructor and then the AddChild method to append it at the bottom:

    wxXmlNode *f = new wxXmlNode(wxXML_ELEMENT_NODE, "subModel");
    ModelXml->AddChild(f);

@AzGilrock
Copy link
Collaborator

Now I need to search whether this occurs in other places.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants