This is only possible with C++ classes.Are these available in the Python API? A quick search shows that in src/mod there is no *.py file that calls these methods.
Search found 20152 matches
- Mon Apr 22, 2024 6:19 pm
- Forum: Open discussion
- Topic: Backport AttachmentSupport to 0.21?
- Replies: 7
- Views: 385
Re: Backport AttachmentSupport to 0.21?
- Mon Apr 22, 2024 3:21 pm
- Forum: Help on using FreeCAD
- Topic: Regression: Undocked Property View won't yield
- Replies: 2
- Views: 186
Re: Regression: Undocked Property View won't yield
With today's build Since which build number or commit do you see the regression? if changes are made to the undocked treeview What kind of changes? (with overlay system active) And if it's not active do you see the regression, too? then an undocked Property view no longer drops behind the current a...
- Mon Apr 22, 2024 3:13 pm
- Forum: Open discussion
- Topic: Backport AttachmentSupport to 0.21?
- Replies: 7
- Views: 385
Re: Backport AttachmentSupport to 0.21?
For reading an old project file the class PropertyContainer has two virtual methods handleChangedPropertyName and handleChangedPropertyType that are overridden for all feature classes where a property type or name has changed. To support to write as older version something similar is needed. It's ag...
- Mon Apr 22, 2024 2:34 pm
- Forum: Help on using FreeCAD
- Topic: what happened to the 3D view FC colors and shininess?
- Replies: 43
- Views: 3403
Re: what happened to the 3D view FC colors and shininess?
The problem was that previously, the program only used diffuse colors. Yes and no. The possibility to use emissive, specular and ambient color already exists for 15 years or more (see https://github.com/FreeCAD/FreeCAD/blob/c7985e5c06668ec11f60ed25f05b5d8d732ab7ed/src/Gui/ViewProviderGeometryObject...
- Mon Apr 22, 2024 2:22 pm
- Forum: Help on using FreeCAD
- Topic: what happened to the 3D view FC colors and shininess?
- Replies: 43
- Views: 3403
Re: what happened to the 3D view FC colors and shininess?
As said earlier in this thread the actual problem is caused by changing the default specular color from black to mid gray.
- Mon Apr 22, 2024 9:03 am
- Forum: Open discussion
- Topic: Backport AttachmentSupport to 0.21?
- Replies: 7
- Views: 385
Re: Backport AttachmentSupport to 0.21?
I also disagree to backport this change. The point is that you cannot expect to correctly load a file in an older version that was created with a newer version. Since this is a breaking change it may cause a big mess if some users have an older 0.21 version without that change and some other users a...
- Sat Apr 20, 2024 8:51 pm
- Forum: Help on using FreeCAD
- Topic: Tools|Customize segfaulting
- Replies: 7
- Views: 613
Re: Tools|Customize segfaulting
Of course because this version is too old. You need a build number >= 33835Still crashes
- Sat Apr 20, 2024 6:41 am
- Forum: Install / Compile
- Topic: crash switching work bench
- Replies: 63
- Views: 6382
Re: crash switching work bench
The workaround to use Webkit inside BitmapFactory was removed three years ago (git commit 50c7ee36bf5e956). The last remaining piece of code using webkit is in FreeCAD/src/Tools/plugins/imageformats/svg/ but that's not used any more. The whole directory can be removed.
- Fri Apr 19, 2024 12:23 pm
- Forum: Developers corner
- Topic: Change color of an edge
- Replies: 8
- Views: 1487
Re: Change color of an edge
Here a Python example. This will work in C++, too:
Code: Select all
doc = App.newDocument()
box = doc.addObject("Part::Box", "Box")
doc.recompute()
view = box.ViewObject
line_color = [view.LineColor] * len(box.Shape.Edges)
line_color[5] = (1.0,0.0,0.0,0.0)
view.LineColorArray = line_color
- Fri Apr 19, 2024 6:33 am
- Forum: Help on using FreeCAD
- Topic: KiCADStepup install via Addon manager resets configuration
- Replies: 7
- Views: 696
Re: KiCADStepup install via Addon manager resets configuration
The problem has also been discussed here: viewtopic.php?p=754051#p754051