Comments (3)
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.
This is one of the things discussed in my sloppy Heisenbug #13841
from freecad.
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)
- macOS: Cannot select text with Shift+Arrow in tree view, rotates view instead
- FEM: Warnings about linked objects when meshing
- FreeCAD code is not authenticated HOT 8
- Subtractive helix sometimes adds intead of subtracting HOT 5
- Padding sketch around clone fails with "Bnd_Box is void" HOT 1
- Clipping view HOT 1
- Core: Selection of Part sub-object in tree highlight whole Part (Regression)
- Assembly: Link to external assembly are not recognize correctly when creating a joint
- Assembly: Link to External assembly fails to load properly HOT 1
- ToolBit Library: Unable to create a new Toolbit in the Toolbit Library editor
- FEM: Erase Elements tool requires changing the subject of the operation to keep hiding elements from the modified mesh
- FEM: Erase Elements tool should automatically unhide the original mesh when pressing Restore
- FEM: Erase Elements tool doesn't support individual element selection
- x-rotated section cuts in the wrong direction HOT 1
- Linter - GSL warnings
- FreeCAD supports both redundant functionality in pybind11 and boost-python.
- Preferences / User Parameters - defaults need to be duplicated
- Dart Theme interface problems HOT 2
- Help module: What's This? stopped working
- Fasteners inclusion distort Assembly WB joints LCS position
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad.