Search found 70 matches

Go to advanced search

by Cyril
Tue Nov 12, 2019 10:54 am
Forum: Python scripting and macros
Topic: FreeCAD python type definitions, code documentation
Replies: 12
Views: 482

Re: FreeCAD python type definitions, code documentation

An exemple of stubs generated by community for Revit API as auto completion don't work natively : https://github.com/gtalarico/ironpython-stubs I would love to have something like this in FreeCAD. As project above works on any (.NET?) .dll and is based on another project adapting it for FreeCAD .so/...
by Cyril
Mon Nov 11, 2019 12:09 am
Forum: Open discussion
Topic: Please demonstrate using a remote text editor to substitute the Python editor in FreeCAD
Replies: 5
Views: 237

Re: Please demonstrate using a remote text editor to substitute the Python editor in FreeCAD

I am not sure that it is what you expected to see after I read your message again but here it is : https://youtu.be/1Pn2ok_22O8 Fact is that there is many discussion on this subject on this forum but none I found explains a way to catch and control a running FreeCAD instance as you can do with for e...
by Cyril
Wed Nov 06, 2019 7:12 pm
Forum: Open discussion
Topic: Please demonstrate using a remote text editor to substitute the Python editor in FreeCAD
Replies: 5
Views: 237

Re: Please demonstrate using a remote text editor to substitute the Python editor in FreeCAD

I will do one but I'm currently overflowed. Maybe a short one next week end.
by Cyril
Sun Oct 06, 2019 9:12 am
Forum: Python scripting and macros
Topic: Limited ways to sum areas
Replies: 0
Views: 224

Limited ways to sum areas

Hi, I did some experiments on ways to sum areas of different objects / shapes and I am a little disturbed by results : Context during my first attempt : def onChanged(self, obj, prop): super().onChanged(obj, prop) if prop == "InnerBoundaries": obj.AreaWithHosted = self.recompute_area_with_hosted(obj...
by Cyril
Fri Oct 04, 2019 3:35 pm
Forum: Python scripting and macros
Topic: App::PropertyLinkList cannot append / pop / clear etc…
Replies: 2
Views: 138

App::PropertyLinkList cannot append / pop / clear etc…

Hi, I wonder why it is not possible possible to use App::PropertyLinkList as a standard list. object_1.property.append(object_2) => No error but object_2 is not appended object_1.property.pop() => No error and it return an object but this object is not removed from the list object_1.property.clear()...
by Cyril
Fri Sep 20, 2019 5:24 pm
Forum: Wiki
Topic: FeaturePython : return obj vs fpo
Replies: 7
Views: 278

Re: FeaturePython : return obj vs fpo

I looked into modifications history and found an intriguing comment by tomkcook : (cur | prev) 11:40, 1 July 2019‎ Tomkcook (talk | contribs)‎ . . (18,461 bytes) (-183)‎ . . (Remove references to `self.Object`- it causes serialisation problems) (undo) Diff here Would you mind explaining a little mor...
by Cyril
Fri Sep 20, 2019 3:55 pm
Forum: Python scripting and macros
Topic: [Solved] Running FreeCAD in headless mode
Replies: 6
Views: 271

Re: Running FreeCAD in headless mode

Hi jeff,
Have you read this wiki page : Embedding FreeCAD
by Cyril
Fri Sep 20, 2019 3:31 pm
Forum: Wiki
Topic: FeaturePython : return obj vs fpo
Replies: 7
Views: 278

Re: FeaturePython : return obj vs fpo

For me, in my use cases, I need the FPO reference more than I need the obj reference. I would be interested to see some uses cases where you return fpo. In my understanding : If you return obj : you can still access fpo using obj.Proxy If you return fpo : you can use fpo methods but it is not a Fre...
by Cyril
Thu Sep 19, 2019 7:05 pm
Forum: Wiki
Topic: FeaturePython : return obj vs fpo
Replies: 7
Views: 278

FeaturePython : return obj vs fpo

I followed FeaturePython_Objects tutorial. In my opinion FeaturePython creation should return obj and not fpo in following context : def create(obj_name): """ Object creation method """ obj = App.ActiveDocument.addObject('App::FeaturePython', obj_name) fpo = box(obj) return fpo It sounds more logic ...

Go to advanced search