Closed FEA-eng closed 2 months ago
@PaddleStroke FYI
@maxwxyz Can you add the 1.0 label? The tool doesn't work properly.
I have tested and this is not specific to area dimension. It's a bug for all type of dimension. What happens is that when you selected the face, the object itself is still selected from when you created the view. So when you add the dimension the part ends up in 'reference 3d' :
Removing it and the dimension works.
@WandererFan can you please weight in what needs to be done here? Here's a video : https://github.com/FreeCAD/FreeCAD/assets/19984177/50f9c2fd-7370-406b-98b3-2f349f6e2ade
Ok so I checked it anyway. And so getReferencesFromSelection is putting the solid object (part in my case) into references3d. Which is not cleared and is added by setReferences3d.
Ok so the fix seems pretty simple (see https://github.com/FreeCAD/FreeCAD/pull/15084). Just add
else {
references3d.clear();
}
to the if :
if (geometryRefs2d == TechDraw::isViewReference && !references3d.empty()) {
...
}
else {
references3d.clear();
}
@WandererFan please check if this solution is OK.
@PaddleStroke Thanks for taking care of this. What do you think about the second part of the issue - duplicated icons/tools?
Removing stuff has proved to be tedious in the past so I prefered to just skip it. But I agree it makes not much sense keeping the annotation tool.
Removing stuff has proved to be tedious in the past so I prefered to just skip it. But I agree it makes not much sense keeping the annotation tool.
Maybe for now, they should at least have slightly different icons. It's confusing when they are identical.
Is there an existing issue for this?
Problem description
13525 introduced the great new smart dimension tool but also the individual area dimension tool. The former works perfectly but the latter fails the first time it's applied. Steps to reproduce:
It shows 0 mm^2 and the following error message:
<Exception> getGeomTypeFromName - empty geometry name
Just retrying should make it work then.
Btw. do we still need the area annotation? If yes, these 2 tools should have different icons:
Full version info
Subproject(s) affected?
Techdraw
Anything else?
No response
Code of Conduct