GithubHelp home page GithubHelp logo

Comments (3)

PaddleStroke avatar PaddleStroke commented on June 25, 2024

I can confirm. If the file is newly created then the name displayed is still 'Unnamed'. If you close the document and re-open it then it's correct.

This is a bug in core as the code in insert component is very simple:

        docList = App.listDocuments().values()

        for doc in docList:
            docItem = QtGui.QTreeWidgetItem()
            docItem.setText(0, doc.Name + ".FCStd")

With the python console some tests confirm that the 'Name' property is not updated after saving the file:

d = App.ActiveDocument
>>> d.Name
'Unnamed1'
>>> d.Label
'test2'

We can easily fix the issue in Assembly Insert component by using the Label instead of Name. But perhaps you want to tackle to underlying issue @wwmayer ?

from freecad.

krushia avatar krushia commented on June 25, 2024

This is one of the things discussed in my sloppy Heisenbug #13841

from freecad.

PaddleStroke avatar PaddleStroke commented on June 25, 2024

Indeed you are correct it seems to be a consequence of the bug you are describing.
For the bug in assembly I solve it by using the doc Label instead.

from freecad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.