Search found 20080 matches

by wmayer
Fri Mar 29, 2024 9:52 am
Forum: Help on using FreeCAD
Topic: [ Fixed ] Can't create PD datums with a pre-selection?
Replies: 8
Views: 216

Re: [ Fixed ] Can't create PD datums with a pre-selection?

Issue was fixed a week ago with git commit 105c3363b
Be prepared then to face the issue to be not able to delete sketcher constraints then. (For me that would be even worse.)
A tmp. fix has been committed until the reason of the failure will be figured out.
by wmayer
Fri Mar 29, 2024 9:25 am
Forum: Open discussion
Topic: auto things making life "easier"
Replies: 17
Views: 810

Re: auto things making life "easier"

Preferences are stored in user.cfg, which I backup regularly. It is a text file, but as it seems to be reordered randomly, different versions are hard to compare. I once wrote a utility that loads a user.cfg, sorts all elements alphabetically and writes out the reordered structure. This way it will...
by wmayer
Thu Mar 28, 2024 12:37 pm
Forum: Assembly
Topic: Integrated Assembly workbench
Replies: 27
Views: 1487

Re: Integrated Assembly workbench

Is it possible to save in the document the object that is currently under edit, so that when the user open again the document the edit mode is automatically started? It's doable. The steps to achieve this are: Extend the ViewStatus enum defined in ViewProvider.h by a further item ActiveObject Exten...
by wmayer
Thu Mar 28, 2024 6:44 am
Forum: Install / Compile
Topic: Windows Visual Studio build fail
Replies: 4
Views: 219

Re: Windows Visual Studio build fail

That's fixed with git commit 360e280c64c56
by wmayer
Wed Mar 27, 2024 11:11 am
Forum: Open discussion
Topic: [REQ] This is a formal request to support the USD format
Replies: 16
Views: 669

Re: [REQ] This is a formal request to support the USD format

obelisk79 wrote: Wed Mar 27, 2024 10:53 am I'm not sure I understand why it's important.
Because
the USD format is the future of all things 3d.
:D
by wmayer
Wed Mar 27, 2024 10:01 am
Forum: Install / Compile
Topic: obsolete std::random_shuffle functional cause compile failure for FreeCAD 0.21
Replies: 2
Views: 132

Re: obsolete std::random_shuffle functional cause compile failure for FreeCAD 0.21

There is no other way than fixing the flann code. std::random_shuffle can be replaced with std::mt19937 and std::shuffle.

Since FreeCAD 0.21 C++17 is required as the minimum version.
by wmayer
Wed Mar 27, 2024 9:43 am
Forum: Install / Compile
Topic: Windows Visual Studio build fail
Replies: 4
Views: 219

Re: Windows Visual Studio build fail

Your posted compiler output doesn't mention the reason why this failed:

Code: Select all

Error	LNK1181	cannot open input file '..\App\Release\Fem.lib'	FemGui	F:\Build\src\Mod\Fem\Gui\LINK
With MSVC it happens from time to time that the object files get corrupted and you have to clean them and do a full rebuild
by wmayer
Tue Mar 26, 2024 1:25 pm
Forum: Developers corner
Topic: How to get cpp objects from python functions ?
Replies: 2
Views: 165

Re: How to get cpp objects from python functions ?

Code: Select all

if (PyObject_TypeCheck(pyResult.ptr(), &(Part::TopoShapePy::Type))) {
    const Part::TopoShapePy* shapepy = static_cast<Part::TopoShapePy*>(pyResult.ptr());
    const TopoDS_Shape& shape = shapepy->getTopoShapePtr()->getShape();
}