Search found 3064 matches

Go to advanced search

by ickby
Wed Jul 21, 2021 6:00 am
Forum: Developers corner
Topic: Core Objects: Inheritance vs ECS
Replies: 5
Views: 533

Re: Core Objects: Inheritance vs ECS

Extensions are designed to have certain functionalities addable to objects. It is deliberately a construction time mechanism, not a runtime one, as this is intended for more versatile type creation. For this is see no difference between multiple inheritance or ECS, just that inheritance fits better ...
by ickby
Wed Jul 14, 2021 7:19 am
Forum: Open discussion
Topic: Freecad->Blender Livelink (pure NURBS approach)
Replies: 5
Views: 569

Re: Freecad->Blender Livelink (pure NURBS approach)

It's just an alpha, so not ready for real use. But if you are interested in developing code for your idea we could check if my work could be a reasonable base.
by ickby
Tue Jul 13, 2021 3:20 pm
Forum: Open discussion
Topic: Freecad->Blender Livelink (pure NURBS approach)
Replies: 5
Views: 569

Re: Freecad->Blender Livelink (pure NURBS approach)

Do you intend a bidirectional live link, so also chaning the FreeCAD data when changes are done in blender? And is this intended on a single PC only, running both apps, or between different PC's? If bidirectional link and multiple PCs/Users working at the same time, you will face challenges in netwo...
by ickby
Fri Jul 09, 2021 4:58 pm
Forum: Python scripting and macros
Topic: [Bug] even if the Group property is set readonly, dragging is allowed
Replies: 3
Views: 373

Re: [Bug] even if the Group property is set readonly, dragging is allowed

Drag and drop is a universal implementarion, detailed by the document objects. It has no idea, what a group property is, or how it influences drag and drop. So it is understandable that it cannot react on the read only status.
by ickby
Fri Jul 09, 2021 4:38 am
Forum: Python scripting and macros
Topic: [Bug] even if the Group property is set readonly, dragging is allowed
Replies: 3
Views: 373

Re: [Bug] even if the Group property is set readonly, dragging is allowed

Read-only for a property does only apply for the property editor. It does not prevent any programmatic change of the property, neither by python, c++ or even other UI elements like Dialogs etc. Drag and drop as a UI feature is controlled by the viewprovider. There you can define if drag and drop is ...
by ickby
Fri Jul 02, 2021 7:05 pm
Forum: Python scripting and macros
Topic: Internal server for FreeCAD
Replies: 13
Views: 1246

Re: Internal server for FreeCAD

To run a server or client directly in freecad you need to make it asyncronous, as otherwise you would block FC with long running or even blocking network operations. This means you need an eventloop. The problem is, that freecad ui already has one, the Qt event loop, and you cannot run a second one....
by ickby
Fri Jul 02, 2021 11:47 am
Forum: Python scripting and macros
Topic: Strange behaviour, how to reset the "scripting engine"?
Replies: 3
Views: 321

Re: Strange behaviour, how to reset the "scripting engine"?

There is a preference setting which decides if scripts are executed in their separate environment. I don't recall the exact name, but you should be easily able to find it.

Imho I like this being a setting, as I use both behaviours depending on use case.
by ickby
Thu Jul 01, 2021 7:51 am
Forum: Developers corner
Topic: [Resolved] Problem in Extensions when adding multiple python ones
Replies: 11
Views: 1829

Re: [Resolved] Problem in Extensions when adding multiple python ones

I cannot check right now, but imho the extension have been Introduced in 0.18. Hence non of the prior FC versions can use them. So you would need to either raise the required minimum FC version or introduce some elaborate version checking ab provide the new functionality only for FC 0.18 or higher. ...
by ickby
Mon Jun 21, 2021 5:27 am
Forum: Developers corner
Topic: creating a new extension
Replies: 5
Views: 961

Re: creating a new extension

There is a detailed description in https://github.com/FreeCAD/FreeCAD/blob/471e143d0903b170701d142681d10ab148747d0c/src/App/Extension.h#L127 To have a look at a simple implementation I recommend the group extension https://github.com/FreeCAD/FreeCAD/blob/471e143d0903b170701d142681d10ab148747d0c/src/...
by ickby
Thu Jun 17, 2021 4:01 pm
Forum: Open discussion
Topic: pythonocc
Replies: 3
Views: 432

Re: pythonocc

To my knowledge pythonocc is a 1:1 wrapper of the opencascade API in python. So you can usually use the c++ documentation, which is somewhat extensive for occ, and figure the python API from it.

https://dev.opencascade.org/doc/overvie ... index.html does also have tutoris and samples.

Go to advanced search